Skip to content
Tcl Source Code Artifact [41d6102128]
Login

Artifact [41d6102128]

Artifact 41d61021282c3cab5b1bd238beed1735d3420f06:

Ticket change [41d6102128] - New ticket [3154ea27591de162|3154ea2759] <i>Repeat catch six times and get core dump</i>. by anonymous on 2016-05-04 14:12:05.
D 2016-05-04T14:12:05.289
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Here\sis\sthe\scode:\r\n\r\n\s\s\s\sproc\s__BEGIN\s{}\s{\r\n\s\s\s\s::tcl::unsupported::assemble\s{\r\n\s\s\s\s\s\s\s\sbeginCatch\s@badLabel\r\n\s\s\s\s\s\s\s\spush\serror\r\n\s\s\s\s\s\s\s\spush\stesting\r\n\s\s\s\s\s\s\s\sinvokeStk\s2\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s\s\s\s\spush\s0\r\n\s\s\s\s\s\s\s\sjump\s@okLabel\r\n\s\s\s\s\s\s\s\slabel\s@badLabel\r\n\s\s\s\s\s\s\s\spush\s1;\s#\sshould\sbe\spushReturnCode\r\n\s\s\s\s\s\s\s\slabel\s@okLabel\r\n\s\s\s\s\s\s\s\sendCatch\r\n\s\s\s\s\s\s\s\spop\r\n\r\n\s\s\s\s\s\s\s\sbeginCatch\s@badLabel2\r\n\s\s\s\s\s\s\s\spush\serror\r\n\s\s\s\s\s\s\s\spush\stesting\r\n\s\s\s\s\s\s\s\sinvokeStk\s2\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s\s\s\s\spush\s0\r\n\s\s\s\s\s\s\s\sjump\s@okLabel2\r\n\s\s\s\s\s\s\s\slabel\s@badLabel2\r\n\s\s\s\s\s\s\s\spush\s1;\s#\sshould\sbe\spushReturnCode\r\n\s\s\s\s\s\s\s\slabel\s@okLabel2\r\n\s\s\s\s\s\s\s\sendCatch\r\n\s\s\s\s\s\s\s\spop\r\n\r\n\s\s\s\s\s\s\s\sbeginCatch\s@badLabel3\r\n\s\s\s\s\s\s\s\spush\serror\r\n\s\s\s\s\s\s\s\spush\stesting\r\n\s\s\s\s\s\s\s\sinvokeStk\s2\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s\s\s\s\spush\s0\r\n\s\s\s\s\s\s\s\sjump\s@okLabel3\r\n\s\s\s\s\s\s\s\slabel\s@badLabel3\r\n\s\s\s\s\s\s\s\spush\s1;\s#\sshould\sbe\spushReturnCode\r\n\s\s\s\s\s\s\s\slabel\s@okLabel3\r\n\s\s\s\s\s\s\s\sendCatch\r\n\s\s\s\s\s\s\s\spop\r\n\r\n\s\s\s\s\s\s\s\sbeginCatch\s@badLabel4\r\n\s\s\s\s\s\s\s\spush\serror\r\n\s\s\s\s\s\s\s\spush\stesting\r\n\s\s\s\s\s\s\s\sinvokeStk\s2\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s\s\s\s\spush\s0\r\n\s\s\s\s\s\s\s\sjump\s@okLabel4\r\n\s\s\s\s\s\s\s\slabel\s@badLabel4\r\n\s\s\s\s\s\s\s\spush\s1;\s#\sshould\sbe\spushReturnCode\r\n\s\s\s\s\s\s\s\slabel\s@okLabel4\r\n\s\s\s\s\s\s\s\sendCatch\r\n\s\s\s\s\s\s\s\spop\r\n\r\n\s\s\s\s\s\s\s\sbeginCatch\s@badLabel5\r\n\s\s\s\s\s\s\s\spush\serror\r\n\s\s\s\s\s\s\s\spush\stesting\r\n\s\s\s\s\s\s\s\sinvokeStk\s2\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s\s\s\s\spush\s0\r\n\s\s\s\s\s\s\s\sjump\s@okLabel5\r\n\s\s\s\s\s\s\s\slabel\s@badLabel5\r\n\s\s\s\s\s\s\s\spush\s1;\s#\sshould\sbe\spushReturnCode\r\n\s\s\s\s\s\s\s\slabel\s@okLabel5\r\n\s\s\s\s\s\s\s\sendCatch\r\n\s\s\s\s\s\s\s\spop\r\n\r\n\s\s\s\s\s\s\s\sbeginCatch\s@badLabel6\r\n\s\s\s\s\s\s\s\spush\serror\r\n\s\s\s\s\s\s\s\spush\stesting\r\n\s\s\s\s\s\s\s\sinvokeStk\s2\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s\s\s\s\spush\s0\r\n\s\s\s\s\s\s\s\sjump\s@okLabel6\r\n\s\s\s\s\s\s\s\slabel\s@badLabel6\r\n\s\s\s\s\s\s\s\spush\s1;\s#\sshould\sbe\spushReturnCode\r\n\s\s\s\s\s\s\s\slabel\s@okLabel6\r\n\s\s\s\s\s\s\s\sendCatch\r\n\s\s\s\s\s\s\s\spop\r\n\s\s\s\s}}\r\n\s\s\s\s__BEGIN\r\n\r\nWhen\sI\srun\sthis\scode,\sI\sget\score\sdump:\r\n\r\n\s\s\s\s$\s~/tcl8.6.5/bin/tclsh8.6\s/tmp/add.tcl\r\n\s\s\s\salloc:\sinvalid\sblock:\s0xb2dde0:\s77\s0\r\n\s\s\s\sAborted\s(core\sdumped)\r\n\r\nIf\sthe\snumber\sof\sbeginCatch/endCatch\spairs\sis\sless\sthan\s6,\sthe\sprogram\ssucceeds.
J foundin 8.6.5
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 1fa85a7a8cf201549ab887413ec59508d86baa00
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 47.\sBytecode\sCompiler
J title Repeat\scatch\ssix\stimes\sand\sget\score\sdump
J type Bug
K 3154ea27591de16257a7b8b8d361514b004e527f
U anonymous
Z 389683f20c7626dfe7aae597be8017c7