Skip to content
Tcl Source Code History Of Ticket 1379349fffffffff
Login

History Of Ticket 1379349fffffffff

Artifacts Associated With Ticket 1379349fffffffff

  1. Ticket change [75001d1f37] (rid 105320) by uring on 2005-12-13 09:24:41:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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).
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "uring"
    9. subsystem initialized to: "15. Dict Object"
    10. title initialized to: "missing "copy on write" in [dict for..] loop"
    11. type initialized to: "Bug"
  2. Ticket change [63727d5119] (rid 92579) by dkf on 2005-12-13 17:19:36:

    1. priority changed to: "9 Immediate"
    2. subsystem changed to: "47. Bytecode Compiler"
  3. Ticket change [38adbbdd11] (rid 112253) by dkf on 2005-12-13 20:47:51:

    1. closedate changed to: "2005-12-13T13:47:51"
    2. closer changed to: "dkf"
    3. 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)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"