Keep It Simple, Stupid | |
PerlMonks |
Re: segmentation faultby jbert (Priest) |
on Aug 27, 2008 at 13:04 UTC ( [id://707148]=note: print w/replies, xml ) | Need Help?? |
The suggestion elsewhere to use Devel::Trace is a good one. Otherwise, you need to isolate what is causing the segmentation fault. You might get some useful information by running perl under gdb and getting a backtrace:
the displayed backtrace is perl's call stack, it might give some information as to where perl is dying. You might also have success by trying to find the minimum amount of code needed to cause the segfault. Try commenting out about 1/2 of the module loads (you can use =pod and =cut to comment out a block of code) and do a binary search. Even with a thousand modules, that would only take approx 10 steps.
In Section
Seekers of Perl Wisdom
|
|