Artifacts Associated With Ticket 439843ffffffffffffffffffffffffffffffffff
Ticket change [b28b6bce1b] (rid 98351) by jstrot on 2001-07-09 21:03:18:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl Version: ActiveTcl v8.3.3 OS: Windows 2000 Pro SP2 Problem Behaviour: The following code causes a crash: namespace eval ::crashTcl { while {1} { set b [break] } } I know it doesn't make sense to take the return value of break... This is the simplified version of one of my scripts that calls a procedure (instead of break) which could return a value or force a break (return - code break) It doesn't happen if the whole thing is not with a namespace eval. this piece of code crashes with: TclExecuteByteCode: done instruction at pc 14: stack top 0 != entry stack top -1 TclExecuteByteCode execution failure: end stack top != start stack top Expected Behaviour: b should not be assigned any value break should work as expected, breaking out of the while - foundin initialized to: "obsolete: 8.3.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jstrot"
- subsystem initialized to: "None"
- title initialized to: "crash when getting the return value of b"
- type initialized to: "Bug"
Ticket change [7f54f71b5d] (rid 97547) by dkf on 2001-07-10 15:42:29:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=79902 I think this is a duplicate of a known problem...
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "47. Bytecode Compiler"
- username: "dkf"
Ticket change [4cc1c32350] (rid 126944) by msofer on 2001-07-10 19:28:12:
- icomment:
Logged In: YES user_id=148712 This is indeed the same as [Bug 406709], which is already solved in current sources (Tcl8.4a3). The fix didn't make it in time for 8.3.3. You can avoid the crash and obtain your desired behaviour by bypassing the bytecode engine via [eval]: namespace eval ::thisWillNotCrashTcl { set cmd [list while {1} {set b [break]}] eval $cmd } 'cmd' can also be safely be defined as a string instead of a list. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [946684d463] (rid 105973) by msofer on 2001-07-10 19:30:22:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=148712 I'm leaving the bug open and assigning it to the 8.3.3 release manager - should this be fixed in the 8.3.3 branch?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [cf25cbd719] (rid 112919) by hobbs on 2001-08-07 06:17:21:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=72656 Miguel, please apply to core-8-3-1-branch as well.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [1be06407df] (rid 123222) by msofer on 2001-08-07 22:50:26:
- closedate changed to: "2001-08-07T15:50:26"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Patch #414470 applied to core-8-3-1-branch.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"