Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 38544d245b3d401f6311e190ea4727de20c3b7e0
Ticket: 550142ffffffffffffffffffffffffffffffffff
Tcl_ExprObj -> abort
User & Date: chrishall on 2002-04-29 12:57:41
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Calling Tcl_Expr... with an invalid expression causes
    the following error:
    
       Tcl_AppendStringsToObj called with shared object
       Abort (core dumped)
     
    when there is already a shared result object in the
    interpreter's result object.
    
    The program below reproduces the fault:
    
    ----- CUT HERE -----
    #include <tcl.h>
    
    char* expr = "$A == B";
    
    main(int argc, char** argv)
    {
    int ret;
    Tcl_Interp* interp = Tcl_CreateInterp();
    Tcl_Obj* obj;
    
    obj = Tcl_NewStringObj("Hello", -1);
    
    Tcl_IncrRefCount(obj);
    
    Tcl_SetObjResult(interp, obj);
    
    Tcl_ExprBoolean(interp, expr, &ret);
    }
    ----- CUT HERE -----
    
    Superficially, this seems similar to bug #456892 which
    I submitted last year.
    
    The problem exists in 8.3.4 and 8.4a4 (both built from
    source, today, on Solaris 7).
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "chrishall"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "Tcl_ExprObj -> abort"
  11. type changed to: "Bug"