.
D 2003-03-18T05:20:04
J assignee msofer
J cmimetype text/plain
J comment \nAssigned\sto\sGroup\s8.4b1\sbecause\sthat's\swhere\sthis\nfirst\sappeared.\s\sThis\sbug\sis\sstill\spresent\sin\s8.4.2\sand\nthe\sHEAD.\s\sI\ssuspect\sthe\sbroken\scommit\swas:\n\n2002-07-03\s\sMiguel\sSofer\s\s<[email protected]>\n\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompCmds.c\s(TclCompileCatchCmd):\nreturn\n\s\s\s\s\s\s\s\s\s\sTCL_OUT_LINE_COMPILE\sinstead\sof\sTCL_ERROR:\nlet\sthe\sfailure\n\s\s\s\s\s\s\s\s\s\shappen\sat\sruntime\sso\sthat\sit\scan\sbe\scaught\n[Bug\s577015].\n\nHere's\sa\ssample\ssession\sto\sdemo\sthe\sproblem:\n\n%\sproc\sfoo\s{}\s{catch\s{if\s1\s{set\sa\s[b];\sif\s{a}\s{}}}}\n%\sfoo\nGetCmdLocEncodingSize:\sbad\scode\slength\nAbort\n\nKey\selements:\n\n1)\sa\s[proc]\sso\sthat\swe\sget\sthe\sbytecode\scompiler\sinvolved.\n2)\sa\s[catch]\sas\sthe\sfirst\scommand\sin\sthe\sproc.\n3)\swithin\sthe\sfirst\scommand\sin\sthe\s[catch],...\n4)\sfirst\sthere\sis\sa\s[command\ssubstitution],....\n5)\sthen\sthere\sis\sa\sparsing\ssyntax\serror\n\nSeems\sthat\sthe\spartial\scompiles\sdon't\sget\sproperly\ncleaned\sup,\swhen\sthe\scompile\sof\s[catch]\sgets\nabandoned\sdue\sto\sthe\ssyntax\serror,\sleading\sto\nthe\spanic.\n\nAnother\sexample:\n\n%\sproc\sfoo\s{}\s{catch\s{if\s{[a]}\s{if\sb\s{}}}}\n%\sfoo\nGetCmdLocEncodingSize:\sbad\scode\slength\nAbort
J foundin obsolete:\s8.4b1
J priority 8
J resolution None
J status Open
J submitter dgp
J subsystem 47.\sBytecode\sCompiler
J title panic\swhen\scompiling\s[catch]
J type Bug
K 705406ffffffffffffffffffffffffffffffffff
U dgp
Z e2ce3a1d2f4ccc5ab4d80123ea4215a2