Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e28699a805163fc685a8cfd36a0ac5af688073c5
Ticket: d553228d9fcbd1722a85d6fc99dbbfb60176480f
lassign + dict update == segmentation fault
User & Date: anonymous on 2016-05-01 02:15:58
Changes

  1. icomment:
    Slightly simpler test script:
    
        proc t {} {lassign {} item; dict update item item item two two {}}
        t
    
    My suspicion is that the initial loop in INST_DICT_UPDATE_START isn't robust against dictPtr being free()d while it's looping, and [lassign] contributes by only by putting a value in $item with low refcount.
    
    The attached patch eliminates the segfault with this test script, but I haven't tested it any further:
    
  2. login: "anonymous"
  3. mimetype: "text/plain"
  4. username: "aspect"