in reply to Perl Profilers - ERROR: Segmentation Fault (core dumped)
Do you get the segfault also for a "dummy script", such as
$ sudo perl -d:DProf -e1
If so, maybe an incompatible DProf.so is being loaded (for example due to some inappropriate PERL5LIB setting, or some such). You can check with
$ sudo strace -eopen perl -d:DProf -e1 ... open("/usr/local/perl/5.12.2/lib/5.12.2/x86_64-linux-thread-multi/Deve +l/DProf.pm", O_RDONLY) = 4 open("/usr/local/perl/5.12.2/lib/5.12.2/XSLoader.pm", O_RDONLY) = 5 open("/usr/local/perl/5.12.2/lib/5.12.2/x86_64-linux-thread-multi/auto +/Devel/DProf/DProf.so", O_RDONLY) = 4 open("tmon.out", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
The path the module is being loaded from should match the version of the perl binary you're using (what 'sudo which perl' says).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Profilers - ERROR: Segmentation Fault (core dumped)
by kiran146179 (Initiate) on Apr 14, 2011 at 08:17 UTC |