.
D 2013-09-01T00:56:32.647
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Commit\s[30b7b8d858]\s"Fix\sbug\s#2438181:\sIncorrect\serror\sreporting\sin\straces"\sleads\sto\sthe\sfollowing\s"stammering\serrorstack",\swhere\san\sEnter-traced\sproc\sfails\sto\sappear\sas\sa\sCALL\slevel;\sinstead,\sits\scaller's\slevel\sis\srepeated:\r\n\r\n\s\sproc\sfoo\sargs\s{}\r\n\s\sproc\sgoo\s{}\sfoo\r\n\s\strace\sadd\sexecution\sfoo\senter\s{error\sbar;#}\r\n\s\scatch\sgoo\sm\sd\r\n\s\sputs\s[dict\sget\s$d\s-errorstack]\r\n\r\n=>\r\n\r\n\s\sINNER\s{error\sbar}\sCALL\sgoo\sCALL\sgoo\r\n\r\nPrior\sto\sthis\scommit\sone\swould\sget\r\n\r\n\s\sINNER\s{invokeStk1\sfoo}\sCALL\sgoo\r\n\r\nwhich\savoided\sthe\sproblem\sby\scompletely\shiding\sthe\strace's\serror.\r\n\r\nThe\sproblem\shere\sis\sthat\sTclLogCommandInfo\s(which\spowers\sthe\sconstruction\sof\sthe\serror\sstack),\scalled\sin\sTEBC\safter\seach\serror,\sis\snow\salso\scalled\sfor\sthe\strace's\serror,\sthus\sadding\sa\slevel;\sbut\ssince\swe\sare\sin\san\sEnter\strace,\swe\shave\snot\syet\supdated\sthe\sinterp,\swhich\sis\sstill\sessentially\sin\s"goo".\r\n\r\nNote\sthat\sthe\scommand\sstring\spassed\sto\sTclLogCommandInfo\sdoes\scontain\s"foo",\shence\s::errorInfo\sin\sthis\scase\sis\s(accidentally)\smore\saccurate:\r\n\r\n\s\sbar\r\n\s\s\s\swhile\sexecuting\r\n\s\s"error\sbar"\r\n\s\s\s\sinvoked\sfrom\swithin\r\n\s\s"foo"\r\n\s\s\s\s(procedure\s"goo"\sline\s1)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n\s\s"goo"\r\n\r\n\r\nBottom\sline:\swe'd\sneed\sto\r\n\r\n\s-\seither\sgive\sa\sbetter\ssync\sof\scommand\sstring\sand\sinterp\sstate\r\n\r\n\s-\sor\sprovide\sTclLogCommandInfo\swith\sa\sway\sof\sdetecting\sthis\ssituation\sto\sskip\sthe\sextra\slevel
J foundin 30b7b8d858
J is_private 0
J login ferrieux
J priority 5\sMedium
J private_contact 052878a4be90f52d390c8022e271c0c1885d5c80
J resolution None
J severity Severe
J status Open
J submitter ferrieux
J subsystem 46.\sTraces
J title Restored\strace\serrors\s=>\sstammering\serrorstacks
J type Bug
K 010f4162efb3bb6546ef904784a13c3c1a615228
U ferrieux
Z 99898355b6c776a47b936c93855f1bd3