Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ac023d159fcb37d7ca9ed4d4d6e2c408d98a6c1d
Ticket: 16828b3744521541660af48501fa06e63e564ad3
TclOO segmentation fault
User & Date: dgp on 2016-06-16 15:59:59
Changes

  1. icomment:
    
    The re-appearing segfault is again an exposure
    of the problem, not the cause of it.  It's a 
    matter of whether the memory corruption of writing
    to *donePtr causes crashing damage or not as to
    whether we segfault.  The error is still present
    if luck leads to no crash.
    
    So the patch doesn't (really) fix the submitted
    demo script.  Because the additional Tcl_UntraceVar()
    call doesn't untrace the variable.  The variable name
    'continue' doesn't resolve, so the Var isn't found so
    it's trace cannot be found and removed.  Since it's
    not removed, the unset trace fires later when *donePtr
    writing is damaging.
    
  2. login: "dgp"
  3. mimetype: "text/plain"