.
D 2001-02-28T13:22:37
J assignee dkf
J cmimetype text/plain
J comment (I\scould\s*not*\strigger\sthis\srare\sevent,\sbut\sI'm\ssure\nfrom\sthe\scode\sthat\sthe\sbug\sis\sthere)\nInfoLevelCmd\suses\s"iPtr->varFramePtr->objv"\s-\sas\sfar\sas\nI\scan\stell,\sit\sis\sthe\sonly\suser.\nNow\s"iPtr->varFramePtr->objv"\sis\sa\spointer\sinto\sthe\nevaluation\sstack:\sit\sis\sset\sin\sTclObjInterpProc\n(tclProc.c),\swhich\sgets\sit\sfrom\sTclExecuteByteCode\n(tclExecute.c)\s[see\sINST_INVOKE]\nThe\strouble\sis\sthat\sthe\sevaluation\sstack\smay\sgrow\s(and\nmove),\sso\sthat\ssome\scombination\sof\sevents\swill\sleave\niPtr->varFramePtr->objv\spointing\sto\sckfreed\smemory.\nThe\scombination\sof\sevents\scould\sbe:\n\s-\sproc\sA\sinvokes\sproc\sB;\sproc\sB\sgrows\sthe\sstack\n\s-\safter\sreturning\sfrom\sB,\sproc\sa\srequests\s"info\slevel"\n\nI\sdo\snot\ssee\syet\sany\snice\s&\ssimple\ssolution.\sAmong\sthe\nclumsy\sand/or\scomplicated\ssolutions:\n\s-\sstore\sinstead\sa\sstack\soffset\sinto\sthe\sCallFrame;\slet\nInfoLevelCmd\sknow\sabout\sthe\sexecution\sstack\s(to\smy\neyes,\sa\svery\sbad\sthing)\n\s\s-\sdo\snot\sfree\sthe\sold\sstack\smemory\suntil\sexecution\sis\nback\sat\slevel\s0,\sthereby\skeeping\sthe\spointers\svalid\n\nRemark\salso\sthat\sfixing\smatters\sin\sthe\sfirst\smanner\nwill\swork\sfor\sbytecodes,\sbut\smay\sbreak\s"info\slevel"\sfor\nnon-compiled\sscripts!\sThe\ssecond\sone\smay\sbe\svery\scostly\nin\smemory.\n\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 17.\sCommands\sI-L
J title rare\sbug\sin\sInfoLevelCmd
J type Bug
K 404865ffffffffffffffffffffffffffffffffff
U msofer
Z d50bcca463640fb8c5a57d2297ff88b9