Overview
| Artifact ID: | da7d92bda723bf6279fb95747cc692e46f922a0c |
|---|---|
| Ticket: | 1119369fffffffffffffffffffffffffffffffff
segfault in Tcl_EvalObjv (from Tcl_EvalObjEx call) |
| User & Date: | msofer on 2005-02-10 02:19:17 |
Changes
- icomment:
Logged In: YES user_id=148712 IIUC, what is happening is: (1) Tcl_EvalObjEx (TEOE) is called with TCL_EVAL_DIRECT and a pure list objPtr (2) TEOE takes the pure-list branch and calls Tcl_EvalObjv (TEOV) with objv pointing to the elements of the list rep of objPtr (3) objPtr shimmers away from its listRep before TEOV returns an error (4) TEOE error handling tries to read the list elements -> crash Note that his could well happen even before the actual command is called by TEOVI - if the shimmering is caused by a trace. At first sight, the clean solution is to let Tcl_EvalObjEx (pure-list branch) do an incrRefCount on the list elements before calling TEOV. We do assume that the objv pointers remain valid throughout a call.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"