Hi!
some boilerplate:
NYTProf-4.03
mod_perl 2.04
Archive::Zip 1.30
DBD::Pg 2.17.1
perl v5.12.1
linux x86_64
First off it seems to work if I run it from the command line: "perl
-d:NYTProf -T index.cgi".
When I Add "PerlModule Devel::NYTProf::Apache" to my conf I get the
below segfault:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3059c1c in resolve_sub_to_cv (sv=0x93800384b454552,
subname_gv_ptr=0x7fffffffe088) at NYTProf.xs:2046
2046 switch (SvTYPE(sv)) {
(gdb)
(gdb) bt
#0 0x00007ffff3059c1c in resolve_sub_to_cv (sv=0x93800384b454552,
subname_gv_ptr=0x7fffffffe088) at NYTProf.xs:2046
#1 0x00007ffff305a37f in subr_entry_setup (prev_cop=0x7ffff4083740,
clone_subr_entry=0x0, op_type=173, subr_sv=0x93800384b454552) at
NYTProf.xs:2188
#2 0x00007ffff305b243 in pp_subcall_profiler (is_slowop=0) at NYTProf.xs:2447
#3 0x00007ffff305b056 in pp_entersub_profiler () at NYTProf.xs:2373
#4 0x00007ffff3d9a602 in Perl_call_sv () from
/usr/lib/perl5/core_perl/CORE/libperl.so
#5 0x00007ffff409e24a in modperl_perl_call_list () from
/usr/lib/httpd/modules/mod_perl.so
#6 0x00007ffff40a7a13 in modperl_perl_destruct () from
/usr/lib/httpd/modules/mod_perl.so
#7 0x00007ffff40a7a82 in modperl_shutdown.2753 () from
/usr/lib/httpd/modules/mod_perl.so
#8 0x00007ffff770fb1d in run_cleanups () from /usr/lib/libapr-1.so.0
#9 0x00007ffff7710687 in apr_pool_destroy () from /usr/lib/libapr-1.so.0
#10 0x00007ffff77108ad in apr_pool_clear () from /usr/lib/libapr-1.so.0
#11 0x00007ffff7fc3f0d in main ()
Ok lets try disabling some things:
# NYTPROF="subs=0:blocks=0:stmts=0:savesrc=0" httpd
Segmentation fault
OK so I thought what happens if I try start=no:
# NYTPROF="start=no" httpd
Undefined subroutine &main::1 called.
END failed--call queue aborted.
If I take out my preloading of modules in my startup file it seems to
work. So I tried figuring out if there was a single module that was
bad... after much sweating (It preloads ~900 modules). I found this
simple test case to demonstrate the problem:
PerlPassEnv NYTPROF
PerlModule Devel::NYTProf::Apache
PerlRequire empty.pm
<FilesMatch ".cgi">
SetHandler perl-script
PerlResponseHandler empty
PerlSendHeader On
</FilesMatch>
empty.pm:
package empty;
use Archive::Zip();
use DBD::Pg();
sub handler
{
print "Content-type: text/plain\n\nhi\n";
return 0;
}
1;
Basically I can use Archive::Zip or DBD::Pg, but not both at the same
time :-) Any Ideas?
--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]