[Pdx-pm] segfault: Carp::Heavy's fault?

Randall Hansen randall at sonofhans.net
Tue Apr 22 13:25:53 PDT 2008

On Apr 17, 2008, at 10:29 AM, Eric Wilhelm wrote:

> If you write your own sub, does it still segfault?  If not, it  
> probably involves uplevel.
>  sub my_eval (&) {
>    my $sub = shift;
>    eval {$sub->()};
>  }
>  my_eval { $one->process_remittance_advice };

ooh, that's a nice test.  thanks!  as you suspected, it works fine.

i still don't know why this is happening (been digging around in  
Test::Exception, Sub::Uplevel, etc).  what i did find is an apparent  
solution:  removing the custom die handler in the parent Test object:

     $SIG{__DIE__} = sub {
         confess @_


More information about the Pdx-pm-list mailing list