Artifacts Associated With Ticket 1379349fff
Ticket change [75001d1f37] (rid 105320) by uring on 2005-12-13 09:24:41:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
reproduced with tcl from nightly-cvs: tcl-20051205 running this example: #--- proc dict_set {} { set data [string trim {A 1}] dict for {key value} $data { dict set data $key 0 } } dict_set #--- ..I get the panic message: "concurrent dictionary modification and search" This happens only (a) if $data has reference count 1 (hence the [string trim command]) (b) if the code is bytecompiled (i.e. within a proc) (thanks to Tobias Hippler, which reported this to me after playing with a fresh snapshot). - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "uring"
- subsystem initialized to: "15. Dict Object"
- title initialized to: "missing "copy on write" in [dict for..] loop"
- type initialized to: "Bug"
Ticket change [63727d5119] (rid 92579) by dkf on 2005-12-13 17:19:36:
- priority changed to: "9 Immediate"
- subsystem changed to: "47. Bytecode Compiler"
Ticket change [38adbbdd11] (rid 112253) by dkf on 2005-12-13 20:47:51:
- closedate changed to: "2005-12-13T13:47:51"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Ick. I'd forgotten that the non-compiled version of [dict for] relies on the retention of a normal Tcl_Obj reference as well as the internal rep reference. (test dict-14.17 captures the bug report)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"