Skip to content
Tcl Source Code History Of Ticket 597728ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 597728ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 597728ffffffffffffffffffffffffffffffffff

  1. Ticket change [895208ffb2] (rid 132007) by vasiljevic on 2002-08-20 12:09:43:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Sun Solaris (2.5.1+) build gets configured 
      with undefined HAVE_TZSET *and* undefined
      HAVE_TM_ZONE. 
      This leads to multiple threads calling the
      MT-unsafe tzset() function in tclClock.c
      which brings MT-enabled Tcl shell to core.
      
      This happens for at least Tcl8.3.4 
      (and maybe lower) and for Tcl8.4a4
      and (probably) others as well.
      
      The wording from FormatClock() function
      in tclClock.c:272 says:
      
          /*
           * Some systems forgot to call tzset in localtime, make 
      sure its done.
           */
      
      So I think, the Sun Solaris should also
      be included in this list. This should
      be changed in the tcl.m4 which already
      covers this case for ULTRIX-4-* and 
      OSF1-V* systems.
      
      
    4. foundin initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "7 High"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vasiljevic"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "mt-unsafe tzset() gets called improperly"
    11. type initialized to: "Bug"
  2. Ticket change [72c14c5641] (rid 104914) by vasiljevic on 2002-08-20 19:31:58:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Attached is a cvs diff between the original and 
      my patched version. The diff is taken against
      Tcl8.3.4 core distro.
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  3. Ticket change [edaf3b4c00] (rid 103930) by vasiljevic on 2002-08-20 19:32:45:

    1. icomment:
      
      
      File Added - 29418: tclClock.c.diff
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  4. Add attachment "tclClock.c.diff" [d522704f39] (rid 123567) by vasiljevic on 2002-08-20 19:32:45.

  5. Ticket change [654e0ebfa3] (rid 102518) by hobbs on 2002-09-03 02:23:03:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      I can't make this match any code in 8.3.4-cvs or 8.4.  Could
      you please make a -u diff out of it, preferrably on the head?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [67cf1221f8] (rid 102956) by vasiljevic on 2002-09-04 00:27:43:

    1. icomment:
      
      
      File Added - 30364: tclClock.c.diff
      
      Logged In: YES 
      user_id=95086
      
      Please take a look at attached diff.
      This is output of "diff -u" and is done 
      on the current HEAD.
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  7. Add attachment "tclClock.c.diff" [c1bbee90b8] (rid 111371) by vasiljevic on 2002-09-04 00:27:43.

  8. Ticket change [e0bed3fc17] (rid 87332) by hobbs on 2002-09-04 02:27:53:

    1. assignee changed to: "vasiljevic"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      This patch looks suspicious.  First, it is a reverse patch.
       But the problem is that it adds a mutex lock around an
      existing one, without handling the existing case.  It also
      uses 'format' in the TclpStrftime where a dstring was used
      before.  It looks perhaps like this wasn't exactly diffed
      against the 8.4 (or 8.3) cvs head.  Or am I missing something?
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  9. Ticket change [0f480f4548] (rid 94761) by vasiljevic on 2002-09-04 03:00:15:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Sorry. You are right. I think I was still sleeping      
      when I did this. Please ignore.       
            
      The whole point can be simplified as this:      
      For platforms having *both*  HAVE_TM_ZONE and     
       HAVE_TZSET *not* defined, the code enters the     
      tzset()function unprotected. This results in subtle and     
      difficult to find bugs which again result in core.    
      It is pretty clear from the code that tzset will be entered   
      twice for the  !defined(HAVE_TM_ZONE) && !defined(WIN32) 
      platforms, with Sun Solaris being one of them. 
       
      It is pretty late here and I have no 8.4 patch ready. 
      I did the change in my 8.3.4 copy and did not  
      correctly moved it to 8.4 in the file I've posted. 
      If you can wait until tomorrow I will prepare new one, 
      otherwise you can just lock this part yourself. It is 
      really trivial. 
       
       
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  10. Ticket change [4927c08638] (rid 100012) by kennykb on 2002-10-31 01:19:32:

    1. assignee changed to: "kennykb"
    2. priority changed to: "8"
    3. subsystem changed to: "06. Time Measurement"
  11. Ticket change [ecd1f1a274] (rid 103771) by kennykb on 2003-02-04 03:30:22:

    1. closedate changed to: "2003-02-03T20:30:22"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Hmm, I thought I closed this one when I committed the change.
      Anyway, I did commit the change. Really.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"