#5248 bad stack top in nested [dict for]

current: 8.6.0
open
5
2013-06-06
2013-06-06
Don Porter
No

Using a --enable-symbols=all build of either the trunk,
or the 8.6.0 release:

$ cat demo.tcl
apply {{} {
dict for {a b} {c d} {
dict for {e f} {g h} {
return 5
}
}
}}
$ make shell SCRIPT=demo.tcl
...
Bad stack top 4 at pc 104 in TclNRExecuteByteCode (min 0, max 3)
executing dict for {e f} {g h} {
return 5
}
TclNRExecuteByteCode execution failure: bad stack top
make: *** [shell] Abort trap

Discussion

  • Don Porter

    Don Porter - 2013-06-06
    • summary: bad stack top in nested [dict for] --> bad stack top in nested [dict for]
     
  • Don Porter

    Don Porter - 2013-06-06

    Here's another demo of the issue without the complication
    of nesting loops:

    apply {{} {
    dict for {a b} {c d} {
    apply {{} {return -level 2 5}}
    }
    }}

     
  • Don Porter

    Don Porter - 2013-06-06
    • assigned_to: msofer --> msofer
    • status: open --> open
     
  • Don Porter

    Don Porter - 2013-06-06

    Moving the BEGIN_CATCH before the DICT_FIRST appears
    to be an effective fix. Committing to trunk.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks