Overview
| Artifact ID: | 38544d245b3d401f6311e190ea4727de20c3b7e0 |
|---|---|
| Ticket: | 550142ffffffffffffffffffffffffffffffffff
Tcl_ExprObj -> abort |
| User & Date: | chrishall on 2002-04-29 12:57:41 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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). - foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "chrishall"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "Tcl_ExprObj -> abort"
- type changed to: "Bug"