Artifacts Associated With Ticket 1382528fffffffff
Ticket change [88adf6aaae] (rid 131907) by a_kovalenko on 2005-12-16 15:55:16:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Test case: proc bad {} { dict for {k v} {} {} catch {whoops} } bad causes segfault (linux), access violation (windows). The crash itself appears in TclStackFree (when decrementing refcount), but seems to be related with Tcl_DictObjFirst / Tcl_DictObjDone behavior with empty values. - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "a_kovalenko"
- subsystem initialized to: "15. Dict Object"
- title initialized to: "dict for {k v} $emptyDict crashes"
- type initialized to: "Bug"
Ticket change [fce90f4ff3] (rid 108316) by dkf on 2005-12-16 23:00:14:
- foundin changed to: "obsolete: 8.5a4"
- subsystem changed to: "47. Bytecode Compiler"
Ticket change [9be5991004] (rid 111195) by dkf on 2005-12-16 23:00:15:
- icomment:
Logged In: YES user_id=79902 Only happens in compiled [dict for].
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dkf"
- icomment:
Ticket change [a89962b712] (rid 99024) by a_kovalenko on 2005-12-16 23:48:18:
- icomment:
Logged In: YES user_id=241496 I know. The problem is in exception ranges: beginCatch bytecode is not reached with empty dicts, but endCatch is.
- login: "a_kovalenko"
- mimetype: "text/plain"
- username: "a_kovalenko"
- icomment:
Ticket change [52458a3c81] (rid 126287) by a_kovalenko on 2005-12-16 23:58:54:
- icomment:
Logged In: YES user_id=241496 The patch solving this problem is attached. beginCatch is now emitted before the first JumpTrue.
- login: "a_kovalenko"
- mimetype: "text/plain"
- username: "a_kovalenko"
- icomment:
Add attachment "dict-for.patch" [96524ce8cf] (rid 106303) by a_kovalenko on 2005-12-16 23:58:55.
Ticket change [35b839f83d] (rid 106988) by a_kovalenko on 2005-12-16 23:58:55:
- icomment:
File Added - 160100: dict-for.patch
- login: "a_kovalenko"
- mimetype: "text/plain"
- username: "a_kovalenko"
- icomment:
Ticket change [5c1d197f17] (rid 118442) by dkf on 2005-12-19 05:42:40:
- closedate changed to: "2005-12-18T22:42:40"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 I'm not going with that because it is likely to inhibit future bytecode optimizations. Instead, I've split the code so that the handling of loop-exit is different from the handling of loop-never-entered. This is a few instructions longer, but probably faster. BTW, thanks for spotting that it was a problem with the management of the catch stack; I was stumped!
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"