petdance/scratch — Issue #471: Parrot goes into infinite loop when attempting to test exceptions with throws_like()
Author: petdance
Created: 2011-11-01 05:34:52+00:00
State: open
Labels: bug, Pri-normal, Sev-high, testing

This code causes Parrot to sing the never ending story:

{{{
throws_like(<<'CODE','blah','invalid attr')
.sub main
$P0 = new 'ExceptionHandler'
set_addr $P0, _handler
push_eh $P0
throw $P0
_handler:
get_results "0", $P0
getattribute $P5, $P0, 'foo'
.end
CODE
}}}

I ran into this while attempting to convert the exceptions tests to PIR.
Trac ID #1078