petdance/scratch — Issue #133: Parrot goes into infinite loop when attempting to test exceptions with throws_like()
Author: petdance
Created: 2011-11-01 04:24:58+00:00
State: open

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.