Artifacts Associated With Ticket 816641ffffffffff
Ticket change [1160780ebc] (rid 95131) by davidw on 2003-10-02 16:09:11:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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'. - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "davidw"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "proc f {args} { f bee bop } ; f crashes tcl"
- type initialized to: "Bug"
Ticket change [797abeac60] (rid 90139) by davidw on 2003-10-02 23:10:01:
- priority changed to: "8"
Ticket change [eff36ee1ea] (rid 109087) by hobbs on 2003-10-03 00:33:54:
- icomment:
Logged In: YES user_id=72656 Note this is only in the head - not 8.4. Tested on Linux.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [6ec5a5360f] (rid 100196) by hobbs on 2003-10-03 00:34:26:
- foundin changed to: "obsolete: 8.5a0"
Ticket change [e029d864d9] (rid 115146) by mistachkin on 2003-10-03 14:34:12:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [50469a7d48] (rid 125935) by dkf on 2003-10-03 17:04:59:
- priority changed to: "9 Immediate"
Ticket change [cd7feeb393] (rid 95900) by nobody on 2003-10-03 17:42:13:
- 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.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [896e746729] (rid 132024) by msofer on 2003-10-03 20:56:28:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [6be685d5d5] (rid 128405) by msofer on 2003-10-03 22:00:15:
- assignee changed to: "hobbs"
- 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. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [3bd30e9c4a] (rid 112812) by msofer on 2003-10-03 22:05:53:
- icomment:
Logged In: YES user_id=148712 can't repro with core-8-4-branch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [eb2b72e1b9] (rid 103489) by msofer on 2003-10-04 23:14:08:
- closedate changed to: "2003-10-04T16:14:08"
- closer changed to: "msofer"
- foundin changed to: "obsolete: 8.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.
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- status changed to: "Closed"
- username: "msofer"
Ticket change [6ec3440c64] (rid 100195) by msofer on 2003-10-05 01:31:30:
- closedate changed to: "2003-10-04T18:31:30"
- closer changed to: "msofer"
- 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
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"