Artifacts Associated With Ticket 2102930
Ticket change [a82b862080] (rid 98931) by tallniel on 2008-09-10 01:43:20:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The [catch] command seems to return the wrong return code when a pure list is passed as the script: % catch break 3 % catch { break } 3 % catch [list break] 1 % set errorInfo invoked "break" outside of a loop ... Correct return should be 3 (TCL_BREAK) in all cases. Bug seems specific to 8.6. Neil - foundin initialized to: "obsolete: 8.6a3"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tallniel"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "Wrong return code from catch with pure list"
- type initialized to: "Bug"
Ticket change [827f27240f] (rid 117244) by dkf on 2008-09-10 17:37:12:
- assignee changed to: "msofer"
- priority changed to: "9 Immediate"
- subsystem changed to: "45. Parsing and Eval"
Ticket change [1ac41329ab] (rid 123038) by msofer on 2008-09-10 18:20:24:
- icomment:
Problem seems to be that the bytecompiling INST_EVALSTK does not manage iPtr->numLevels
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [ce215f4d11] (rid 96008) by msofer on 2008-09-10 20:25:19:
- closedate changed to: "2008-09-10T13:25:19"
- closer changed to: "msofer"
- icomment:
The bug can only happen at the console (where bytecodes can run at level 0) and is triggered by INST_EVAL_STK neither upping the level nor setting TCL_EVAL_NOERR. We normally do not care much about numLevels, except for checking the recursion level and converting some codes to TCL_ERROR at level 0. TEBC is particularly lax about setting numLevels for scripts embedded in it (no deep recursion is possible, it would have blown the compiler first), but in the case of INST_EVAL_STK at level 0 it seems to be important. It only happens for canonical lists because the other case is handled within TEBC itself and the level check is omitted.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"