Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-03-21
16:42 • Closed ticket [2699087fff]: eval list tailcall ... causes a panic plus 7 o... artifact: fc50642d00 user: msofer
01:28 • New ticket [2699087fff]. artifact: a3079e2a8a user: msofer

eval [list tailcall ...] causes a panic

Closed / Fixed2699087fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-03-21 01:28:06
Test tailcall-10a (marked as knownBug) cause a panic due to incorrect stack management:

$ TESTFLAGS='-f tailcall.test -c knownBug' make test
....
Test file error: TclStackFree: incorrect freePtr. Call out of sequence?
msoferplain2009-03-21 16:42:57
allow_comments - 1

Fixed in commit with Changelog entry

* generic/tclBasic.c:   Fix for (among others) [Bug 2699087]
* generic/tclCmdAH.c:   Tailcalls now perform properly even from 
* generic/tclExecute.c: within [eval]ed scripts.
* generic/tclInt.h:     More tests missing, as well as proper
exploration and testing of the interaction with "redirectors" like 
interp-alias (suspect that it does not happen in constant space)
and pure-eval commands.
Log in (anonymous is fine) to add a comment.