Skip to content
Tcl Source Code History Of Ticket 816641ffffffffff
Login

History Of Ticket 816641ffffffffff

Artifacts Associated With Ticket 816641ffffffffff

  1. Ticket change [1160780ebc] (rid 95131) by davidw on 2003-10-02 16:09:11:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      proc f {args} { f bee bop } ; f
      
      will crash Tcl with the following error:
      
      TclExecuteByteCode: abnormal return at pc 6: stack top
      -38780 < entry stack top 1991
      TclExecuteByteCode execution failure: end stack top <
      start stack top
      Aborted (core dumped)
      
      lowering the recursion levels permitted with 'interp
      recursionlimit' makes the bug 'go away'.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "davidw"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "proc f {args} { f bee bop } ; f crashes tcl"
    11. type initialized to: "Bug"
  2. Ticket change [797abeac60] (rid 90139) by davidw on 2003-10-02 23:10:01:

    1. priority changed to: "8"
  3. Ticket change [eff36ee1ea] (rid 109087) by hobbs on 2003-10-03 00:33:54:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Note this is only in the head - not 8.4.  Tested on Linux.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [6ec5a5360f] (rid 100196) by hobbs on 2003-10-03 00:34:26:

    1. foundin changed to: "obsolete: 8.5a0"
  5. Ticket change [e029d864d9] (rid 115146) by mistachkin on 2003-10-03 14:34:12:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Note that with my unix stack checking patch (#746378), 
      things like this bug would be far less likely to happen, unless I 
      am misunderstanding the bug report.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  6. Ticket change [50469a7d48] (rid 125935) by dkf on 2003-10-03 17:04:59:

    1. priority changed to: "9 Immediate"
  7. Ticket change [cd7feeb393] (rid 95900) by nobody on 2003-10-03 17:42:13:

    1. icomment:
      Logged In: NO 
      
      I do not think this is a running out of C stack, it is a
      tcle valuation stack issue. My latest commit to TEBC seems
      to be mishandling the evaluation stack growth mechanism.
      How do I know? I happen to have a modified tree with a
      different approach to the evaluation stack, and it doesn't bomb.
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  8. Ticket change [896e746729] (rid 132024) by msofer on 2003-10-03 20:56:28:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Doh - my bad. The catchStackPtr is not being updated when
      the stack grows. One symptom is this bug, as catchStackPtr
      is used to update eePtr->tosPtr on exit. But the corruption
      runs deeper ...
      Fix forthcoming.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [6be685d5d5] (rid 128405) by msofer on 2003-10-03 22:00:15:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Jeff: could you confirm (or not) that the following bombs in
      AS's 8.4.4 too? You can then reassign the bug to me.
      
      I added the following test to tests/execute.test:
      
      test execute-8.2 {Stack restoration} {
          # Test for [Bug #816641], correct restoration
          # of the stack top after the stack is grown
           proc f {args} { f bee bop }
           catch f msg
           set msg
       } {too many nested evaluations (infinite loop?)}
      
      and now I get a segfault in 8.4.4 too
      
      % info patch
      8.4.4
      % package require tcltest
      2.2.4
      % namespace import ::tcltest::*
      % source ../tests/execute.test
      Segmentation fault (core dumped)
      
      This could not be reproduced on 8.4.4 by Don Porter.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  10. Ticket change [3bd30e9c4a] (rid 112812) by msofer on 2003-10-03 22:05:53:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      can't repro with core-8-4-branch
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [eb2b72e1b9] (rid 103489) by msofer on 2003-10-04 23:14:08:

    1. closedate changed to: "2003-10-04T16:14:08"
    2. closer changed to: "msofer"
    3. foundin changed to: "obsolete: 8.4.4"
    4. icomment:
      Logged In: YES 
      user_id=148712
      
      Bug fixed in HEAD.
      Cannot confirm the segfault in core-8-4-branch, but still
      getting a segfault in AS-Tcl8.4.4 on linux: leaving open for
      confirmation.
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. priority changed to: "5 Medium"
    8. status changed to: "Closed"
    9. username: "msofer"
  12. Ticket change [6ec3440c64] (rid 100195) by msofer on 2003-10-05 01:31:30:

    1. closedate changed to: "2003-10-04T18:31:30"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      The segfault in 8.4.4 seems to be something completely
      different:
      (a) the bug I fixed in HEAD was due to a bug in a
      modification to TEBC that was never applied in the 8.4 branch
      (b) the stack trace of the 8.4 segfault suggests something
      different (although you necer know in mem corruption cases,
      do you?):
      
      #0  0x00000000 in ?? ()
      #1  0x40082cbc in SetStringFromAny ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #2  0x400825b8 in Tcl_AppendObjToObj ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #3  0x40088420 in TclPtrSetVar () from
      /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #4  0x400881c0 in Tcl_ObjSetVar2 () from
      /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #5  0x40035558 in Tcl_AddObjErrorInfo ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #6  0x40033a14 in Tcl_LogCommandInfo ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #7  0x40058d2e in TclExecuteByteCode ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #8  0x40053c34 in TclCompEvalObj () from
      /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #9  0x4007e242 in TclObjInterpProc ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #10 0x4003368d in TclEvalObjvInternal ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      #11 0x4005476a in TclExecuteByteCode ()
         from /.hda3/.SYSTEM/opt/ActiveTcl-8.4.4.0/lib/libtcl8.4.so
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"