Artifacts Associated With Ticket 3614102fff
Ticket change [cb0d059923] (rid 95460) by dgp on 2013-05-29 15:43:56:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% proc foo {} { list [append ::dgp a b c] } % foo bad stack adjustment when compiling list (was 2 instead of 1) - foundin initialized to: "current: 8.6.0"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "stack imbalance panic from [list]"
- type initialized to: "Bug"
Ticket change [f24a9fb828] (rid 109510) by dgp on 2013-05-29 22:50:09:
- icomment:
Still investigating, but I think the trouble is that TclCompileScript() is failing to clean up the record of stack usage when a compileProc fails.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e9068605c8] (rid 104742) by dgp on 2013-05-29 22:53:19:
- icomment:
8.6.0 release will not show the failure. The new [list] compiler is needed to demonstrate. I think it's exposing, rather than creating the flaw, though.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2c8d1643b9] (rid 118923) by dgp on 2013-05-29 23:20:22:
- icomment:
Checkin [efa1b5bb6b] is where the debug panic starts.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [097af7002f] (rid 113663) by dgp on 2013-05-29 23:22:22:
- icomment:
Oh, I missed that the "append multiple" compiler was new in that checkin too.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [98bebdf5cc] (rid 110662) by dgp on 2013-05-29 23:29:15:
- icomment:
Here's one that fails in 8.6.0: % proc foo {} { list [array exists ::foo(bar)] } % foo bad stack adjustment when compiling list (was 3 instead of 1) - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [64fae2758b] (rid 92868) by dgp on 2013-05-29 23:32:31:
- icomment:
And strangely enough, that one is fixed on the trunk.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [79b4a1591c] (rid 90177) by dgp on 2013-05-29 23:50:43:
- icomment:
But this one isn't: % proc foo {} { list [::tcl::array::exists ::foo(bar)] } % foo bad stack adjustment when compiling list (was 2 instead of 1) make: *** [shell] Aborted - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [32359d6679] (rid 93573) by dgp on 2013-05-30 00:09:32:
- icomment:
...because CompileToCompiledCommand() gets this right where TclCompileScript() fails. Here's a stable test case I will commit: test compile-19.0 {Bug 3614102: reset stack housekeeping} -body { # This will panic in a --enable-symbols=compile build, unless bug is fixed. apply {{} {list [if 1]}} } -returnCodes error -match glob -result * - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c684633e6a] (rid 121784) by dgp on 2013-05-30 00:20:55:
- assignee changed to: "dgp"
- closedate changed to: "2013-05-29T17:20:55"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 fix committed.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"