Skip to content
Tcl Source Code Artifact [0035ed70ec]
Login

Artifact [0035ed70ec]

Artifact 0035ed70ec17dc30823891b147272751a66a68f6:

Ticket change [0035ed70ec] - Ticket [3037525fffffffff|3037525fff] <i>crash when freeing locals hashtable</i> status still Open with 4 other changes by msofer on 2010-07-31 20:58:09.
D 2010-07-31T20:58:09
J icomment Description\sof\sthe\searly-freeing\sscenario:\n\s\s*\stwo\slocals\sa\sand\sb\sdefined\sat\sruntime\s-\sie,\sin\sthe\shashtable\sand\snot\sthe\slocals\sarray\n\s\s*\supvar\s0\sa\sb\n\s\s*\sthe\sONLY\sreference\sto\sa\sis\sby\sthe\supvar,\sand\sit\sremains\sundefined\n\s\s*\sthe\shashtable\straversal\sreaches\sb\sbefore\sa\n\nIn\sthis\scase,\swhen\sb\sis\sfreed\sa\sis\seliminated\sfrom\sthe\shashtable\sand\sis\sfreed\stoo:\sthere\sare\sonly\stwo\srefcounts\sto\sthis\svar,\sone\sfrom\sthe\shash\sentry\sand\sone\sfrom\sthe\supvar.\sWhen\sthe\supvar\sgoes\saway,\sthe\sundef'ed\svar\sis\sseen\sas\sbeing\skept\salive\sonly\sby\sthe\sentry,\sand\sthe\slot\sis\sfreed\sto\seliminate\sthe\s"circular\sref".\n\nLater,\swhen\sTcl_NextHashEntry\stries\sto\sread\sa's\sentry\swe\saccess\sfreed\smemory.\n
J login msofer
J mimetype text/plain
J username msofer
K 3037525fffffffffffffffffffffffffffffffff
U msofer
Z fd5a1da5789237e73db857a1d5ec83a9