Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 27a738820e528fed11ca45fd16bc5913f6b6af6b
Ticket: 0ef291c1c287e325a8e5d17c1390e5a733c12fc9
memory corruption with trace + transchan
User & Date: ferrieux on 2016-09-20 12:42:26
Changes

  1. comment changed to:
    Test script:
    ~~~
    proc trans args {list initialize finalize write}
    chan push stdout trans#11 0x00007ffff7b162d0 in Tcl_PopCallFrame (interp=0x6305b0) at /home/aspect/Tcl/Env/src/tcl/generic/tclNamesp.c:404
    
    proc trans args {list}  ;# optional - cleans up output
    
    proc foo {} {puts okay}
    trace add execution foo enterstep {puts X; list}
    foo
    ~~~
    
    aborts with:
    ~~~
    file = /home/aspect/Tcl/Env/src/tcl/generic/tclListObj.c, line = 124
    incrementing refCount of previously disposed object
    ~~~
    
    valgrind, memtrace, gdb backtrace attached.
    
  2. icomment:
    Unless I'm mistaken, the gdb bt ends in a different panic:
    "invalid block: 0x7ffff7a0d9af: 2d ff"
    
    Does it mean there is an heisenbug touch to it ?
    Or that when compiling with -g, the behavior differs ?
    
  3. login: "ferrieux"
  4. mimetype: "text/plain"