petdance/scratch — Issue #133: Parrot goes into infinite loop when attempting to test exceptions with throws_like()
Author: petdance
Created: 2011-11-14 05:55:01+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.

Originally http://trac.parrot.org/parrot/ticket/1078