Skip to content
Tcl Source Code Artifact [d345fab351]
Login

Artifact [d345fab351]

Artifact d345fab3517da7d49c70a7b005cc5044896fcdb5:

Ticket change [d345fab351] - Ticket [873294ffffffffff|873294ffff] <i>script crashes Tcl 8.4.X on Solaris (verified by J. Hobbs)</i> status still Open with 5 other changes by kennykb on 2004-01-10 01:35:06.
D 2004-01-10T01:35:06
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\nSimpler\sexample:\n\s\s\sbinary\sscan\s\\000\\001\\000\sa\sa\sb;\sputs\s$b\n\nThe\sfirst\sbyte\sis\sscanned\sinto\s'a'\s-\sand\sstored\sin\sthe\sscan\ncache.\s\sThe\sreference\sin\sthe\sscan\scache\sisn't\scounted\s\sin\nthe\sref\scount.\n\nThe\ssecond\sbyte\sis\sstored\sinto\s'a'\sas\swell,\sdecrementing\sthe\nrefcount\sof\sthe\sfirst\sobj\sand\sfreeing\sit.\n\nThe\sthird\sbyte\spulls\sthe\sfirst\sobj\s(now\sa\sfree\sobject)\sback\nfrom\sthe\sscan\scache\sand\sstores\sit\sin\sb.\s\sNow\sthe\sfree\sobj\nlist\sis\scorrupt.\n\nThe\sfix\sis\sto\sdo\srefcounting\saround\sTcl_SetHashValue\s-\sand\nthen\sdecrement\sall\sthe\sref\scounts\sprior\sto\seach\sof\sthe\scalls\nto\sTcl_DeleteHashTable\s(replace\sthem\sall\swith\sa\scall\sto\sa\nstatic\sfn\sthat\sdoes\sit,\sI\sguess).\n\nA\stemporary\swork-around\swould\sbe\sto\smake\ssure\sthat\sno\svariable\nname\sis\srepeated\sin\s\s[binary\sscan].\s\sUsing\sthe\s@\sformat\ngroup\smight\sbe\shelpful.\n
J login kennykb
J mimetype text/plain
J priority 8
J username kennykb
K 873294ffffffffffffffffffffffffffffffffff
U kennykb
Z 89d4ca870d969948607888360d3eb960