On Fri, Jun 25, 2010 at 10:02:29AM -0600, Alex Hunsaker wrote: > On Fri, Jun 25, 2010 at 04:47, Tim Bunce <[email protected]> wrote: > > Hrm seems to be null on this setup: > > Program received signal SIGSEGV, Segmentation fault. > 0xb761f136 in resolve_sub_to_cv (my_perl=0x81ad2c0, sv=0x0, > subname_gv_ptr=0xbfffeed8) at NYTProf.xs:2046 > 2046 switch (SvTYPE(sv)) { > (gdb) p sv > $1 = (SV *) 0x0
NYTProf's pp_entersub_profiler() gets called instead of perl's pp_entersub(). The first thing pp_entersub() does is call SvTYPE(sv) on the value on the top of the stack. pp_entersub_profiler() is just taking that value and passing it to subr_entry_setup() which passes it to resolve_sub_to_cv() which calls SvTYPE(sv). So I can't see an obvious reason for this. > > Please also try NYTPROF=stmts=0:trace=99:log=/tmp/nytprof.log > > to get a detailed log (without statement profiler noise). > > Here are the last lines: [ find the whole thing attached ] Sadly that's not much help - other than reminding me that NYTProf doesn't flush it's logs! I've fixed that now in r1318. Please rerun with that and send the log to me (only, no point in troubling the list with it - anyone interested can just ask). Thanks. Tim -- 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]
