Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56542a4f249d22063197791a429737835a7f0ff1
Ticket: bc1a96407a7f73024c2238a747b428ec1145ae19
segfault in compiled [array set] of array-traced variable
User & Date: msofer on 2014-09-09 01:15:21
Changes

  1. icomment:
    Something is wrong: when tracing a variable that is upvared, normally it is the link TARGET that gets the trace. Witness:
    
    % proc foo {} {
    upvar 1 a b
    trace add variable b write {puts hit;#}
    set ::a 1
    set b 1
    }
    % foo
    hit
    hit
    1
    % set a 2
    hit
    2
    
    So this may be a problem with the way vwait creates the trace?
    
  2. login: "msofer"
  3. mimetype: "text/plain"