You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Adam Sussman <ad...@ticketmaster.com> on 2002/03/07 05:43:52 UTC

Working Apache::Peek

Has anyone gotten Apache::Peek under Apache::Status to work with perl 5.6.1
and mod_perl 1.26?

The stock module from CPAN won't even compile (version 0.9501...is there a
newer one out there somewhere?).

I tried applying Doug's patch to the Devel::Peek that comes with perl 5.6.1
and (after some fiddling), got
it to compile and autoload correctly.  Unfortunatly, this module just seg
faults every time DUMP is called.

Does anyone have a working Apache::Peek for the latest Perl and mod_perl?

I'll include the backtrace on the frankensteined Devel::Peek for 5.6.1 in
case anyone can make something
out of it.

-adam

Starting program: /usr/local/app/apache/bin/httpd -X
[New Thread 1024 (LWP 17984)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 17984)]
0x00000005 in __strtol_internal (nptr=0x900b82c "\004¸", endptr=0x81642c1,
base=-1073746328, group=135323038) at eval.c:36
36  eval.c: No such file or directory.
in eval.c
(gdb) where
#0  0x00000005 in __strtol_internal (nptr=0x900b82c "\004¸",
endptr=0x81642c1, base=-1073746328, group=135323038) at eval.c:36
#1  0x401385b7 in fprintf (stream=0x900b82c, format=0x81642c1 "%*s") at
fprintf.c:32
#2  0x080f004e in Perl_dump_vindent () at eval.c:41
#3  0x080f0012 in Perl_dump_indent () at eval.c:41
#4  0x080f23c4 in Perl_do_sv_dump () at eval.c:41
#5  0x407f9bf5 in XS_Apache__Peek_Dump (cv=0x8feb7ec) at Peek.xs:357
#6  0x0810595c in Perl_pp_entersub () at eval.c:41
#7  0x080ffd68 in Perl_runops_standard () at eval.c:41
#8  0x080bec84 in perl_call_sv () at eval.c:41
#9  0x080bea61 in perl_call_sv () at eval.c:41
#10 0x08075542 in perl_call_handler () at eval.c:41
#11 0x08074e49 in perl_run_stacked_handlers () at eval.c:41
#12 0x080738f9 in perl_handler () at eval.c:41
#13 0x08091fe3 in ap_invoke_handler () at eval.c:41
#14 0x080a68e7 in ap_some_auth_required () at eval.c:41
#15 0x080a6948 in ap_process_request () at eval.c:41
#16 0x0809db41 in ap_child_terminate () at eval.c:41
#17 0x0809dcec in ap_child_terminate () at eval.c:41
#18 0x0809de60 in ap_child_terminate () at eval.c:41
#19 0x0809e4dc in ap_child_terminate () at eval.c:41
#20 0x0809ed3b in main () at eval.c:41
#21 0x400f5177 in __libc_start_main (main=0x809e99c <main>, argc=2,
ubp_av=0xbffff74c, init=0x80627e8 <_init>, fini=0x81465c0 <_fini>, 
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff73c) at
../sysdeps/generic/libc-start.c:129

(gdb) up 5
#5  0x407f9bf5 in XS_Apache__Peek_Dump (cv=0x8feb7ec) at Peek.xs:357
357     do_sv_dump(0, Perl_debug_log, sv, 0, lim, dumpop && SvTRUE(dumpop),
pv_lim);