Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e2351b7d68e9e335c9d87bf86b2f1f2e5a211ee8
Ticket: 550142ffffffffffffffffffffffffffffffffff
Tcl_ExprObj -> abort
User & Date: jenglish on 2002-06-22 04:17:54
Changes

  1. closedate changed to: "2002-06-21T21:17:54"
  2. closer changed to: "jenglish"
  3. icomment:
    Logged In: YES 
    user_id=68433
    
    Fixed now.
    
    The culprit here is LogSyntaxError(), which was calling:
    Tcl_AppendStringsToObj(Tcl_GetObjResult(infoPtr->parsePtr->interp),
    ...),
    without first checking to ensure that the object result is
    not shared.
    
    Actually, since LogSyntaxError is an "error originator", it
    should be overwriting the result instead of appending to
    it.  Fix: added a call to Tcl_ResetResult() (tclParseExpr.c,
    identical fix in tclCompExpr.c).
    
    NOTE: there are several other places in the core where  the
    idiom Tcl_AppendStringsToObj(Tcl_GetObjResult(interp), ...)
    appears; these should either be replaced with
    Tcl_AppendResult(infoPtr->parsePtr->interp, ...),  or
    preceded by Tcl_ResetResult() as appropriate. 
    
    
    
  4. login: "jenglish"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "jenglish"