Skip to content
Tcl Source Code Artifact [216bf93c3d]
Login

Artifact [216bf93c3d]

Artifact 216bf93c3d54d9d544042e690574a5e5de9e6e8f:

Ticket change [216bf93c3d] - Ticket [3006741fffffffff|3006741fff] <i>SIGSEGV in Tcl_LogCommandInfo</i> status still Open with 4 other changes by coldstore on 2010-05-25 20:15:53.
D 2010-05-25T20:15:53
J icomment I\sspent\sapproximately\s4\shours\stoday\slooking\sfor\sways\sto\strap\sthis\sbug\sunder\sgdb\sand\svalgrind,\sand\stracing\sthe\sfault\sto\sthese\spatches.\n\nThe\sproblem\sis\sthat\sin\ssome\scircumstances\sthe\sinterp->framePtr->callerVarPtr\schain\sis\sbroken.\n\nIs\sthere\sa\scase\sin\swhich\sa\sframe\scan\sbe\screated\scontaining\san\suninitialized\scallerVarPtr?\s\sI\scertainly\scould\snot\sobserve\scallerVarPtr\sbeing\sexplicitly\sset\sto\sthe\svalue\swhich\sI\sconsistently\sobserved\sto\sbe\sthe\sbogus\spointer.\n\nGiven\sthe\scontext\swithin\swhich\sthe\ssegv\soccurred,\sI\ssuggest\sthat\sthese\scases\smay\sbe\sassociated\swith\s::apply\sor\swith\s::coroutine,\sbut\sdefer\sto\sAlexandre's\sspecific\sknowledge\sof\sthe\spatches\sand\swhat\sthey\sseek\sto\sachieve.\n\nI\savoided\sthe\scrash\sby\stesting\sfor\sthe\scondition\s'iPtr->varFramePtr\s!=\siPtr->rootFramePtr'\sin\saddition\sto\sthe\sexisting\stest\s'iPtr->varFramePtr\s!=\siPtr->framePtr'.\s\sI\snote\sthat\sthis\scondition\snormally\sterminates\sthe\sfunction\sin\swhich\sthe\scrash\soccurs,\sexcept\sin\sthe\scase\sthat\svarFramePtr\s!=\srootFramePtr,\swhich\sis\s(I\sbelieve\sincorrectly)\sinterpreted\sby\sthe\scode\sas\smeaning\sthat\sthere's\san\suplevel\sin\splay.\s\sI\sdo\snot\sknow\sunder\swhich\sconditions\sboth\sof\sthese\spredicates\smight\sbe\strue,\snor\sthe\saccurate\sand\scomplete\sinterpretation\sof\svarFramePtr\s!=\sframePtr,\sbut\ssomething\ssmells\swrong\sabout\sthe\sinterpretation\sbeing\splaced\supon\sit,\sand\sI\ssuspect\sthe\sassumption\sthat\sit\sstrongly\simplies\s[uplevel]\sis\sfalse\sin\sthe\scase\sof\seither\s::coroutine\sor\s::apply,\sor\sboth.\n\n
J login coldstore
J mimetype text/plain
J username coldstore
K 3006741fffffffffffffffffffffffffffffffff
U coldstore
Z 1877e098016489b3f1a0215d0ca57b76