Skip to content
Tcl Source Code Artifact [2cedf0a235]
Login

Artifact [2cedf0a235]

Artifact 2cedf0a235dab139488782d8d9197cfffa9d79cb:

Ticket change [2cedf0a235] - Ticket [2629338fffffffff|2629338fff] <i>segfault on traced vars in TclCallVarTraces</i> status still Open with 4 other changes by dgp on 2009-11-06 05:52:29.
D 2009-11-06T05:52:29
J icomment \nI'm\svery\suneasy\sabout\sthis\spatch,\ssince\sI\sstill\nhave\sno\sunderstanding\sabout\swhat\sbug\sit\sis\nfixing,\snor\sany\stest\scase\sto\sconfirm\sthat\sit\sactually\nfixes\sanything.\n\nThe\soriginal\sdescription\ssays\s"The\score\sissue\sis\sessentially\sthat\sTclUnsetVarStruct\scalls\sall\sthe\sunset\ntraces\son\sthe\svariable,\sthen\ssets\sabout\sdeleting\sthe\straces.\sThe\sproblem\nis,\sthe\straces\smay\shave\salready\sdeleted\sthemselves\swhen\sthey\swere\scalled.\n(which\stdom's\salways\sdo.)\sIn\sparticular,\sthe\s'head'\sof\sthe\slist\smay\shave\nremoved\sitself."\n\nHowever,\sUnsetVarStruct\smoves\sall\strace\soperations\nover\sto\sa\sdummy\scopy\sthat\sought\sto\sbe\sout\sof\sreach.\ntdom\sdoes\smake\scalls\sto\sTcl_UntraceVar(),\strue,\sbut\nthose\sare\sno-ops,\ssince\sthey\slookup\sthe\soriginal\ntraced\svariable,\swhich\sno\slonger\shas\sany\straces\nto\sremove\ssince\sthey've\sall\sbeen\smoved\sover\sto\nthe\sdummy.\n
J login dgp
J mimetype text/plain
J username dgp
K 2629338fffffffffffffffffffffffffffffffff
U dgp
Z 2fff7ec8b2c2e9bb663f91ed5fd3fcf1