Overview
| Artifact ID: | b0f9f31562d1f3884d7bb998838da1f5bf2ee113 |
|---|---|
| Ticket: | 1119369fffffffffffffffffffffffffffffffff
segfault in Tcl_EvalObjv (from Tcl_EvalObjEx call) |
| User & Date: | pcmacdon on 2005-02-11 10:12:48 |
Changes
- icomment:
Logged In: YES user_id=190660 Maybe there's a simpler solution. As I mentioned, namespace eval seems to be the trigger for the crash. Comparing Tcl_UplevelObjCmd and NamespaceEvalCmd, I note that uplevel uses the TCL_EVAL_DIRECT flag in calls to Tcl_EvalObjEx for all values of objc, but namespace eval uses it only for objc>4. Otherwise, the code is identical. Changing namespace eval to use the TCL_EVAL_DIRECT flag resolves my crash. Is there a good reason for this seeming inconsistency? I've run a very large Tcl application with it and notice no appreciable difference in execution time, either way. Anyways, good luck with it, whatever you decide. BTW: This bug was particularly vexing because it was being triggered, not by some exotic code, but rather by simply using an autoloaded command where a recursive error occurs in 8.4.+.
- login: "pcmacdon"
- mimetype: "text/plain"
- username: "pcmacdon"