in reply to panic: leave_scope inconsistency
You should never be able to get Perl to issue a Panic message using pure-Perl. What XS code is involved?
(That's not to say it is impossible, but it would indicate a Perl bug. My bet is XS modules.)
Dave