Skip to content
Tcl Source Code Artifact [26e2d2adbf]
Login

Artifact [26e2d2adbf]

Artifact 26e2d2adbf1928d07f0455ab066e06f881f05a17:

Ticket change [26e2d2adbf] - Ticket [1909647fffffffff|1909647fff] <i>TclStackFree: incorrect freePtr. Call out of sequence?</i> status still Open with 4 other changes by msofer on 2008-03-11 20:30:33.
D 2008-03-11T20:30:33
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sNO\n\nOn\sthe\stiming\sissue:\sTclStackAlloc/TclStackFree\sis\sa\svery\sspecialised\sinternal\sallocator,\sit\sreserves\smemory\sin\sTcl's\sinternal\sstack.\sIt\sis\sof\sthe\sutmost\simportance\sfor\sits\sproper\sfunctioning\sthat\sfrees\soccur\sin\sthe\sprecise\sreverse\ssequence\sof\sallocs\s(*),\sor\selse\sget\sa\spanic.\sWhat\syou\sare\sseeing\sis\sa\sviolation\sof\sthis\stiming\sprinciple.\n\nHad\sthis\shappened\sin\sa\ssingle\sthread,\sthe\scrash\swould\sbe\sdeterministic\s-\san\sobvious\sbug\swith\sa\sslim\schance\sof\smaking\sit\spast\sthe\stesting\sphase.\sHowever,\sif\sdifferent\sthreads\sare\sallocing/freeing\sfrom\sthe\ssame\sinterp's\sstack\s(shouldn't\shappen\sas\sthe\sstack\sis\sinterp-specific),\sthread\scoordination\sissues\scould\scause\sthe\sobserved\sbehaviour.\sThis\sis\swhat\sI\ssuspect.\sNot\smuch\sof\sa\sclue\sbeyond\sthat\syet.\n\n(*)\sThey\sshould\salso\sbe\sprecisely\scoordinated\swith\sthe\sbytecode\sengine's\sown\susage\sof\sthe\sstack.\sThis\sis\san\sinternal\sallocator\sthat\sis\snot\smeant\sto\sbe\sused\sby\sextensions.\n
J login msofer
J mimetype text/plain
J username msofer
K 1909647fffffffffffffffffffffffffffffffff
U msofer
Z 0539de63f9cedeeb09558d2578830abc