Skip to content
Tcl Source Code Artifact [47267eaedd]
Login

Artifact [47267eaedd]

Artifact 47267eaedd75cd5e7ff7ec474f96e812c119154d:

Ticket change [47267eaedd] - Ticket [1482718fffffffff|1482718fff] <i>crash after removing trace in recursive call</i> status still Open with 4 other changes by dgp on 2006-05-09 11:21:42.
D 2006-05-09T11:21:42
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nI\sadded\sa\stest\sthat\sthe\stwo\nnumCompiledLocals\svalues\swere\nthe\ssame,\sand\sa\sTcl_Panic()\nwhen\sthey\sare\snot.\s\sThis\nlet\sme\sdetect\sthe\sproblem\sdirectly\nwithout\sneeding\slots\sof\sother\nthings\s"just\sso"\sto\sforce\sa\nsegfault.\n\nThis\slet\sme\ssimplify\sthe\sdemo\nscript\sto:\n\nload\slibtrace.so\nproc\sConsole:Eval\s{cmd}\s{\n\s\s\s\sset\senterx\s0\n\s\s\s\sset\sret\s[uplevel\s#0\s$cmd]\n\s\s\s\sif\s{$enterx}\s{}\n\s\s\s\sreturn\s$ret\n}\nConsole:Eval\s{\n\s\s\s\scloseTrace\n\s\s\s\sConsole:Eval\s{}\n}\n\nThe\svalue\smismatch\nhappens\sbecause\s[closeTrace]\ncalls\sTcl_DeleteTrace()\nwhich\sadvances\sthe\sbytecode\ncompile\sepoch\s(line\s5208\nof\stclBasic.c).\n\nThis\smeans\sthe\snested\n[Console:Eval]\scall\sis\na\sdifferent\scompile\sfrom\nthe\souter\sone,\sand\sthe\stwo\ncompiles\sare\sdone\sunder\ndifferent\ssettings\sof\sthe\nDONT_COMPILE_CMDS_INLINE\nflag.\s\sThe\sdifferent\scompile\nrules\smay\swell\sexplain\sthe\ndifferent\snumber\sof\scompiledLocals.\n\nThe\sremaining\sbug\shere\sappears\nto\sbe\sthat\sthe\sCallFrame\sof\nthe\souter\scall\snow\shas\sa\sprocPtr\nfield\spointing\sto\sa\sProc\scorresponding\nto\sthe\sre-compile?\n\nEither\sthat\sshould\snot\shappen,\sor\nif\sit's\sok\sfor\sthat\sto\shappen,\sthen\nthe\sTclLookupSimpleVar\sneeds\sa\srewrite\nto\snot\sassume\sthe\sCallFrame\sand\sProc\nagree\sabout\stheir\scompiledLocals\slists.\n
J login dgp
J mimetype text/plain
J username dgp
K 1482718fffffffffffffffffffffffffffffffff
U dgp
Z 52b44f9c2bc2bcce6485ab523c29fe1a