Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 51086884495ca487510331401020e47aa2b8bed6
Ticket: 402501ffffffffffffffffffffffffffffffffff
Fix for Bug 119393 ([trace remove] & Tcl_Preserve)
User & Date: dgp on 2000-11-28 03:51:53
Changes

  1. icomment:
    Looks like the whole TraceVarInfo() routine needs a
    rewrite.  By the requirements of Tcl_TraceVar(),
    TraceVarInfo() is supposed to return NULL on success,
    or a pointer to a *static* character string containing
    an error message on failure.  When the trace script
    returns an error, though, TraceVarInfo is returning the
    pointer tvarPtr->errMsg, which is dynamically allocated
    and which assumes the structure *tvarPtr still exists.
    This means TraceVarInfo() is incapable of properly handling
    a trace script that both returns an error and deletes
    the trace, because then there's nowhere for the error
    message to live.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"