.
D 2010-05-26T14:00:05
J assignee dkf
J cmimetype text/plain
J comment In\scurrent\sCVS\s(2010-05-26\s15:30)\son\sUbuntu\s9.10\samd64,\sbytecode\scompiled\stry\scommands\sthat\suse\schained\shandlers\s(with\s"-")\ssegfault\swhen\sthe\shandler\sgiven\sas\s"-"\sis\shit\s_after_\sthe\shandler\sscript\sexecutes,\sbut\sbefore\sthe\sfinally\sclause.\n\nThe\sfollowing\scode\sreproduces\sthe\sproblem\sfor\sme:\n\ntry\s{\nreturn\s[list\sfoo1\sbar1]\n}\son\sreturn\s{res}\s-\son\sok\s{res}\s{\nputs\s"1\sResult\sok:\s($res)"\n}\sfinally\s{\nputs\s"1\sIn\sfinally"\n}\n\napply\s{\n{}\s{\ntry\s{\nreturn\s[list\sfoo2\sbar2]\n}\son\sreturn\s{res}\s-\son\sok\s{res}\s{\nputs\s"2\sResult\sok:\s($res)"\n}\sfinally\s{\nputs\s"2\sIn\sfinally"\n}\n}\n}\n\n\nExpected\soutput:\n\n1\sResult\sok:\s(foo1\sbar1)\n1\sIn\sfinally\n2\sResult\sok:\s(foo2\sbar2)\n2\sIn\sfinally\n\nGot\soutput:\n\n1\sResult\sok:\s(foo1\sbar1)\n1\sIn\sfinally\n2\sResult\sok:\s(foo2\sbar2)\nzsh:\ssegmentation\sfault\s(core\sdumped)\s\s./ok_result.tcl\n\n
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter cyan
J subsystem 18.\sCommands\sM-Z
J title Segfault\sin\sbytecode\scompiled\stry\swith\schained\shandler
J type Bug
K 3007374fffffffffffffffffffffffffffffffff
U cyan
Z 18130090f2ccd1d1df8d76175b03743d