#1078: Parrot goes into infinite loop when attempting to test exceptions with
throws_like()
----------------------+-----------------------------------------------------
Reporter: dukeleto | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: testing | Version: 1.6.0
Severity: high | Keywords:
Lang: | Patch:
Platform: all |
----------------------+-----------------------------------------------------
Comment(by pmichaud):
Note that the original code itself has a bug -- after catching the
exception, it doesn't remove the exception handler with pop_eh. Thus the
fetch for the non-existent attribute re-triggers the top exception
handler.
I would personally prefer that we find a way to treat this the same as
other "recursion limit" code. I'm opposed to keeping a counter in the
exception handler itself, because a single handler really ought to be able
to handle an infinite number of (non-recursive) exceptions thrown to it.
(Summary: I vote against the patch and hope for something better.)
Pm
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1078#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets