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

Randall Hansen randall at sonofhans.net
Thu Apr 17 08:37:28 PDT 2008


hi folks ~

i have a segfault; i think it's related to Carp.  in the test file:

     throws_ok{ $one->process_remittance_advice } qr/required/;

that gives me this:

# found: Modification of a read-only value attempted at /opt/local/lib/ 
perl5/5.8.8/Carp/Heavy.pm line 51.

and a couple lines later it segfaults.  the segfault is in vanilla  
perl, between the time sub A `return`s a value and Sub B sees it.

if i replace "throws_ok" with "eval" the segfault does not occur.

i've googled this and not found much; it seems rare, but people have  
been talking about it since at least 2004.  i haven't narrowed it down  
to the simplest repeatable case yet.

has anyone else seen this?  any ideas?  tia,

r

----

i'm running leopard, with MacPort's perl:

08:27 banana-9000 |> port installed | ack perl
   mod_perl2 @2.0.3_0 (active)
   perl5.8 @5.8.8_2 (active)
   vim @7.1.270_0+perl (active)
08:28 banana-9000 |> perl -v

This is perl, v5.8.8 built for darwin-2level

Carp::Heavy is the same version as Carp, which is 1.04.


More information about the Pdx-pm-list mailing list