Tcl Source Code

View Ticket
Login
Ticket UUID: 33b7abb8a26d2da2d1bbb6a2fef8cc751b0048dc
Title: compiled [throw] uses more stack than it claims
Type: Bug Created on: 2013-06-11 13:41:24
Submitter: dgp Assigned to: dgp
Subsystem: 47. Bytecode Compiler Severity: Important
Priority: 9 Immediate Last modified: 2013-06-11 16:47:25
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2013-06-11 16:47:25
Version: trunk
Description:
In a --enable-symbols=all build of the trunk:

$ cat demo.tcl
apply {code {
    throw $code foo
}} {}
$ make shell SCRIPT=demo.tcl
...
Bad stack top 5 at pc 33 in TclNRExecuteByteCode (min 0, max 4)
 executing throw $code foo
TclNRExecuteByteCode execution failure: bad stack top
make: *** [shell] Abort trap
User Comments:
dgp added on 2013-06-11 16:47:25:
Fixed in [f51d308790] .