Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92b005ee0d7485914729faa9f6abc1f0afe08398
Ticket: 3062331fffffffffffffffffffffffffffffffff
segfault in variable traces with ttk::* widgets
User & Date: jenglish on 2011-06-15 05:20:35
Changes

  1. icomment:
    I don't think the second fix (fossil e9e6f67c5b) fixes it either (check under valgrind) -- calling Tcl_Preserve()/Tcl_Release() in VarTraceProc() is too late, since tracePtr (VarTraceProc's clientData) has already been EventuallyFree()d by the time it gets there.
    
    Timeline is:
    script-level unset trace calls [destroy .b]
    .b's cleanup code calls Ttk_UntraceVariable, which frees the trace handle and (attempts to) remove the trace hook;
    trace hook gets called anyway, accessing freed memory.
    
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"