>> Ok lets try disabling some things:
>> # NYTPROF="subs=0:blocks=0:stmts=0:savesrc=0" httpd
>> Segmentation fault
> Um. With subs=0 the resolve_sub_to_cv() shouldn't be called so I suspect
> this is a different problem.
# NYTPROF="subs=0:blocks=0:stmts=0:savesrc=0" gdb --args httpd -X
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/sbin/httpd -X
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3e17e81 in Perl_pp_entersub () from
/usr/lib/perl5/core_perl/CORE/libperl.so
(gdb) bt
#0 0x00007ffff3e17e81 in Perl_pp_entersub () from
/usr/lib/perl5/core_perl/CORE/libperl.so
#1 0x00007ffff305b1bf in pp_subcall_profiler (is_slowop=0) at NYTProf.xs:2416
#2 0x00007ffff305b056 in pp_entersub_profiler () at NYTProf.xs:2373
#3 0x00007ffff3d9a602 in Perl_call_sv () from
/usr/lib/perl5/core_perl/CORE/libperl.so
#4 0x00007ffff409e24a in modperl_perl_call_list () from
/usr/lib/httpd/modules/mod_perl.so
#5 0x00007ffff40a7a13 in modperl_perl_destruct () from
/usr/lib/httpd/modules/mod_perl.so
#6 0x00007ffff40a7a82 in modperl_shutdown.2753 () from
/usr/lib/httpd/modules/mod_perl.so
#7 0x00007ffff770fb1d in run_cleanups () from /usr/lib/libapr-1.so.0
#8 0x00007ffff7710687 in apr_pool_destroy () from /usr/lib/libapr-1.so.0
#9 0x00007ffff77108ad in apr_pool_clear () from /usr/lib/libapr-1.so.0
#10 0x00007ffff7fc3f0d in main ()
I tried with trace=99 but I just have a zero length log file :-( I
think ill need a debug enable perl to get anywhere with this one. BTW
this problem and the strange "Undefined subroutine &main:: with
start=no" go away when im not using Archive::Zip.
> I tried with trace=99 but I just have a zero length log file :-( I
> think ill need a debug enable perl to get anywhere with this one. BTW
> this problem and the strange "Undefined subroutine &main:: with
> start=no" go away when im not using Archive::Zip.
Yay! I traced it from Archive::Zip to File::Temp to this bit of perl:
{
...
# Set up an end block to use these arrays
END {
local($., $@, $!, $^E, $?);
cleanup();
}
}
If I comment out the local and clean() and have everything else in the
starting block commented out, it still segfaults. If I comment out
just the END it works. Then I verified If I stuck { END { } } instead
of using File::Temp it still broke