Skip to content
Tcl Source Code History Of Ticket 1783443
Login

History Of Ticket 1783443

Artifacts Associated With Ticket 1783443

  1. Ticket change [169468903d] (rid 124738) by nobody on 2007-08-28 14:41:09:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Tcl 8.4.15 
      Windows 2003 Service Pack 1 
      Apache: 2.2.4 
      Tcl: 8.4.15 
      Websh: Websh 3.6.b4 (2006-03-05) 
      
      I have a simple test that bring the server time and date the page is refreshed every 3 second (just testing). 
      
      After opening 20 pages the web server is crash. 
      
      [Sun Aug 26 13:33:25 2007] [notice] Child 448: Starting thread to 
      listen on port 2080. 
      alloc: invalid block: 008ED5B0: f8 0 0 
      
      
      This application has requested the Runtime to terminate it in an 
      unusual way. 
      Please contact the application's support team for more information. 
      [Sun Aug 26 13:37:11 2007] [crit] Parent: child process exited with 
      status 3 -- Aborting. 
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "None"
    11. title initialized to: "apache and websh"
    12. type initialized to: "Bug"
  2. Ticket change [f0373614e3] (rid 109149) by msofer on 2007-08-28 22:02:33:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      This seems to be the issue discussed on clt at
      http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/ae1d5f9d3c4e25bd/a73b0ca5e0298b04#a73b0ca5e0298b04
      
      There it is reported that the failure occurs with both 8.4.15 with
         alloc: invalid block: 008ED5B0: f8 0 0
      and under 8.5 (version 8.5b8??) with
         TclStackFree: incorrect freePtr.  Call out of sequence?
      It is reported that the crash occurs under Win2003, but not with XP.
      
      This looks like a buffer overrun (someone stomping over allocation block info, either zippy's or TclStackAlloc's). But it could be mem corruption of some other type, or who knows what.
      
      Not much chance to progress without a stack trace - not even to determine if this is a websh or tclsh problem. Any other suspects around - ie, binary extensions loaded? Requesting further assistance from reporter on clt
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. subsystem changed to: "41. Memory Allocation"
    5. username: "msofer"
  3. Ticket change [392b13b546] (rid 112344) by zackya on 2007-08-29 15:30:46:

    1. icomment:
      Logged In: YES 
      user_id=1878237
      Originator: NO
      
      Hi, 
      
      I don't know if this is relative but I got the following results: 
      
      I compile tcl 8.4.15 on windows xp and 2003 run the Tcl's 
      testsuite. 
      
      Window XP Service Pack 2 
      Tcl 8.4.15 
      Compile and Test are ok 
      Tests ended at Mon Aug 27 09:05:14 Jerusalem Daylight Time 2007 
      all.tcl:        Total   10920   Passed  10139   Skipped 781 
      Failed  0 
      
      
      Windows 2003 Service Pack 1 
      Tcl 8.4.15 
      Compile Pass 
      Test Failed 
      
      
      httpold.test 
      
      
      ==== httpold-4.12 httpEvent FAILED 
      ==== Contents of test case: 
      
      
          update 
          set x {} 
          after 500 {lappend x ok} 
          set token [http_get $url -timeout 1 -command {lappend x fail}] 
          vwait x 
          list [http_status $token] $x 
      
      
      ---- Result was: 
      ok ok 
      ---- Result should have been (exact matching): 
      timeout ok 
      ==== httpold-4.12 FAILED 
      
      
      Tests ended at Mon Aug 27 11:42:05 AM Jerusalem Daylight Time 2007 
      all.tcl:        Total   10920   Passed  10145   Skipped 774 
      Failed  1 
      
      
      I run also run the httpold.test test 20 time with the same result 
      Windows xp 20 pass 
      Windows 2003 20 fail 
      
      
      I copy 2003 compilation result to XP run the httpold.test test and it 
      pass 
      I copy XP compilation result to 2003 run the httpold.test test and it 
      fail 
      
      
      Regards Zacky 
      
      
      
      
      
    2. login: "zackya"
    3. mimetype: "text/plain"
    4. username: "zackya"
  4. Ticket change [a04455d77b] (rid 96771) by rbrunner on 2007-09-04 19:40:04:

    1. icomment:
      Logged In: YES 
      user_id=205230
      Originator: NO
      
      I found a potential problem in Websh on Server 2003 (don't ask me why it should be different on that platform...)
      
      Is the following code correct (it's Websh code, not Tcl code)?
      
          Tcl_Obj *tmp = NULL;   
          tmp = Tcl_NewStringObj(source, length);
          var = Tcl_ObjSetVar2(interp, varname,
                   NULL,
                   tmp,
                   TCL_GLOBAL_ONLY | TCL_APPEND_VALUE |
                   TCL_LEAVE_ERR_MSG);
      
          Tcl_DecrRefCount(tmp);
      
      Note that there is no Tcl_IncrRefCount(tmp) before the call to Tcl_ObjSetVar2(). I thought this should work, but it crashes on Win Server 2003...
      
      If I indeed need to fix this, I'll send a patched version to the OP (assuming it was zackya) so he can check if the error still occurs.
      
      Please advise...
      
      
    2. login: "rbrunner"
    3. mimetype: "text/plain"
    4. username: "rbrunner"
  5. Ticket change [3ca6fd02fc] (rid 120949) by msofer on 2007-09-04 20:20:49:

    1. closedate changed to: "2007-09-04T13:20:49"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      No, that is wrong: you should Tcl_IncrRefCount(tmp) before calling Tcl_ObjSetVar2(). See http://wiki.tcl.tk/14880 for guidance on these issues.
      
      Why the problem is only apparent on Server 2003: a mystery. It is always wrong, $varname will be just about anything after this: the obj has been freed, it will be reused for something else (assuming a standard Tcl compilation).
      
      [*] If the refCount is not incr/decr, Tcl (pre 8.5, not anymore in HEAD) will leak the Tcl_Obj whenever a variable called 'varname' cannot be set - for instance, if it refers to a non-existing namespace.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Pending"
    8. username: "msofer"
  6. Ticket change [09c8fee404] (rid 113713) by sf-robot on 2007-09-19 09:20:03:

    1. closedate changed to: "2007-09-19T02:20:03"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"