Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 75001d1f373914b0e3dd8c733e223140e2b16654
Ticket: 1379349fffffffffffffffffffffffffffffffff
missing "copy on write" in [dict for..] loop
User & Date: uring on 2005-12-13 09:24:41
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "uring"
  9. subsystem changed to: "15. Dict Object"
  10. title changed to: "missing "copy on write" in [dict for..] loop"
  11. type changed to: "Bug"