Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7569dda3561accde235be32f1d105f1ecf0ef665
Ticket: bc1a96407a7f73024c2238a747b428ec1145ae19
segfault in compiled [array set] of array-traced variable
User & Date: dgp on 2014-09-08 17:17:28
Changes

  1. icomment:
    This looks to be hard.  The revised [array set] bytecode
    is creating a nameless local variable that's an upvar link
    to a named variable in the same local frame.  When traces
    are in place, a NULL value is passed to the tracing machinery
    for the name of the traced variable, and trace cannot accept
    that.  The trace mechanism fundamentally requires that the
    traced variable has a name.  (it's going to pass that name
    on to the trace handler procs).
    
    In this situation, it *might* be good enough to pass the
    name of the link target, since its in the same frame.  I
    don't quickly see how to achieve that, though.
    
  2. login: "dgp"
  3. mimetype: "text/plain"