Skip to content
Tcl Source Code Artifact [b17506689d]
Login

Artifact [b17506689d]

Artifact b17506689d3a0318cfa12979f4d66ecb905a0502:

Ticket change [b17506689d] - New ticket [1224553fffffffff|1224553fff] <i>Active*Trace inadequate?</i>. by dgp on 2005-06-21 01:41:32.
D 2005-06-21T01:41:32
J assignee dgp
J cmimetype text/plain
J comment \ndgp...\sActiveVarTrace\susage?\n\n[21:17]dgpit's\sa\spattern\sused\sin\straces\sto\sallow\sfor\ntrace\sdeletion\sduring\strace\sexecution\n[21:18]dgpa\ssimple\sfor\sloop\swould\sfail.\n[21:20]miguelI\sdid\snot\sunderstand\sthat\slast\ssentence\n[21:20]dgpfor\s(t=varPtr->tracePtr;\st!=NULL;\nt=t->nextPtr)\s{\n\s\s\s\sruntrace(t)\n}\n[21:20]dgpthat's\sa\ssimple\s(and\swrong)\sstrategy\sfor\nstepping\sthrough\sthe\straces\son\sa\svariable.\n[21:21]dgpwrong\sbecause\sruntrace()\scan\sdestroy\st,\nleaving\st->nextPtr\sas\san\sinvalid\soperation.\n[21:22]miguelok\n[21:22]dgpso\sActiveVarTrace\svalues\sare\sused\sto\sbridge\nthe\sgap\n[21:22]dgpoversimplified:\n[21:23]dgpfor\s(t=varPtr->tracePtr;\st!=NULL;\st=a)\s{\n\s\s\s\sa\s=\st->nextPtr;\n\s\s\s\sruntrace(t)\n}\n[21:23]dgpbut\sI'm\swondering\swhy\sthat's\snot\salso\nwrong,\sjust\sunder\sdifferent\scircumstances.\n[21:24]miguelyou\smean:\sif\sruntrace(t)\sdestroys\nt->nextPtr\sdirectly,\sfor\sinstance?\n[21:24]dgpand\s1201035\sis\sapparently\sdue\sto\sthe\ndifficulty\sin\sapplying\sthe\ssame\strick\swhen\sstepping\nbackward\sthrough\sthe\slist.\n[21:24]dgpyes.\n[21:26]miguelmmhhh\s....\n[21:26]dgpI\ssuppose\sits\smuch\sless\slikely\n[21:28]miguelmaybe\sstruct\sVarTrace\sshould\sbe\sricher\s-\nsome\srefCount,\ssome\s"deleted"\svalue\sto\sits\sflags\scould\nhelp\smanaging\sthese\slifetime\sissues?\n[21:28]miguelalthough\s"deleted"\scould\sbe\ssignalled\sby\nhaving\straceProc==NULL\stoo\n\n
J foundin obsolete:\s8.5a4
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 46.\sTraces
J title Active*Trace\sinadequate?
J type Bug
K 1224553fffffffffffffffffffffffffffffffff
U dgp
Z d85bd3b60e9d7572365fd1589c7b9e71