Skip to content
Tcl Source Code Artifact [dd3439f1b7]
Login

Artifact [dd3439f1b7]

Artifact dd3439f1b70265540938750f20d67d0bdf20d768:

Ticket change [dd3439f1b7] - Ticket [1119369fffffffff|1119369fff] <i>segfault in Tcl_EvalObjv (from Tcl_EvalObjEx call)</i> status still Open with 4 other changes by msofer on 2005-02-11 18:18:14.
D 2005-02-11T18:18:14
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nThe\sroot\sof\sthe\sproblem\sis:\sTEOE\sis\susing\s(in\sthe\spure-list\nbranch)\sthe\slist\sinternal\srep\sof\sobjPtr\sas\sthe\sobjv\sargument\nto\sTEOV;\sif\sobjPtr\shappens\sto\sshimmer\saway\sto\sanother\ninternal\srep\sbefore\sTEOV\sreturns,\sobjv\sis\sfreed.\sIf\sTEOV\s(or\none\sof\sits\scallees!)\stries\sto\saccess\sobjv\safter\sthat,\swe\sget\na\ssmash.\n\nThe\scorrect\sfix\shas\sto\sbe\sone\sof:\sdo\snot\suse\sthe\spure-list\nbranch,\sor\selse\sinsure\sthat\sobjv\sremains\svalid\seven\sif\sthe\nlist\sshimmers\saway\s(as\sthe\spatch\sdoes).\s\n\nSetting\sTCL_EVAL_DIRECT\sin\sthe\s[ns\seval]\scode\sjust\savoids\nthe\sshimmering\sin\sthis\sparticular\scase,\sbut\sdoes\snot\sfix\sthe\nroot\sproblem.\sIn\sparticular,\sthe\sversion\sincluded\sin\sthe\snew\ntest\swould\sstill\sbomb:\n\n\s\s\s\sset\sSRC\s[list\sfoo\s1]\s;#\spure-list\scommand\s\n\s\s\s\sproc\sfoo\sstr\s{\n#\sShimmer\spure-list\sto\scmdName\sand\serror\nproc\s$::SRC\s{}\s{};\s$::SRC\nerror\s"BAD\sCALL"\n\s\s\s\s}\n\s\s\s\seval\s$SRC\n\nIn\syou\sscenario:\n1.\sthe\sshimmering\swas\scaused\sby\scompilation\sin\s[namespace\neval\s::],\swhich\syou\scan\sindeed\savoid\sby\smaking\sit\suse\nTCL_EVAL_DIRECT\n2.\sthe\sobjv\saccess\swas\shappening\sin\serror\shandling\sin\sTEOV\n(in\strace\shandlers,\sfor\syour\ssecond\sexample)\n\n\n
J login msofer
J mimetype text/plain
J username msofer
K 1119369fffffffffffffffffffffffffffffffff
U msofer
Z 7d73024cd9e352da5b57e3a206b1dc21