Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 88adf6aaae397ea69a066f87cbf117e0b18931f6
Ticket: 1382528fffffffffffffffffffffffffffffffff
dict for {k v} $emptyDict crashes
User & Date: a_kovalenko on 2005-12-16 15:55:16
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "a_kovalenko"
  9. subsystem changed to: "15. Dict Object"
  10. title changed to: "dict for {k v} $emptyDict crashes"
  11. type changed to: "Bug"