.
D 2015-06-01T17:23:43.369
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\s"expr"\scommand\scrashes\stclsh\swhen\sit\sis\sbeing\straced\swhile\sevaluating\sa\sbuilt-in\sfunction\swith\sa\scommand\sargument.\sThis\scan\sbe\sreproduced\swith\sthe\sfollowing\sscript:\r\n\r\n\s\s\s\sproc\szero\s{}\s{\r\n\s\s\s\s\s\s\s\sreturn\s0\r\n\s\s\s\s}\r\n\s\s\s\s\r\n\s\s\s\sproc\scrash\s{}\s{\r\n\s\s\s\s\s\s\s\sexpr\s{abs([zero])}\s;#\s<===\sCrashes\r\n\s\s\s\s}\r\n\s\s\s\s\r\n\s\s\s\sproc\straceProc\s{args}\s{\r\n\s\s\s\s}\r\n\s\s\s\s\r\n\s\s\s\strace\sadd\sexecution\scrash\senterstep\straceProc\r\n\s\s\s\s\r\n\s\s\s\scrash\r\n\r\nSome\sobservations:\r\n\r\n\s\s\s\s-\sThe\s"leavestep"\strace\salso\scrashes,\sbut\s"enter"\sand\s"leave"\sdo\snot.\r\n\s\s\s\s-\sAll\s"expr"\sfunctions\sseem\sto\scrash,\snot\sjust\s"abs".\r\n\s\s\s\s-\sFor\sthe\scrash\sto\soccur,\sthe\sargument\sto\sthe\sfunction\smust\sbe\sa\scommand,\se.g.\s"[zero]".\sPassing\s"0",\s"[return\s0]",\sor\sa\svariable\swill\snot\scrash.\r\n\s\s\s\s-\sRemoving\sthe\sbraces\swill\sprevent\sthe\scrash.\r\n\s\s\s\s-\sRemoving\sthe\strace\swill\sprevent\sthe\scrash.\r\n\r\nThe\sworkaround\sis\sto\sset\sthe\scommand's\sresult\sto\sa\svariable\sfirst\sand\sthen\spass\sthe\svariable\sto\sthe\s"abs"\sfunction.
J foundin 8.6.4
J is_private 0
J login tomkiti
J priority 5\sMedium
J private_contact 1c57e67924247fd7926e89348f266c081ec57db2
J resolution None
J severity Minor
J status Open
J submitter tomkiti
J subsystem 16.\sCommands\sA-H
J title expr\sCrashes\sWhen\sTraced
J type Bug
K 268b23df11916a9da17742ce2595d0634f5a0960
U tomkiti
Z 382ed98d01da5560257609cada56ae24