Sander Temme wrote:
The following invocations:
% perl Makefile.PL httpd /tmp/apache2/bin/httpd apxs /tmp/apache2/bin/apxs % t/TEST
Give me the following crash dump of httpd:
Date/Time: 2001-10-17 20:52:32 -0700 OS Version: 10.1 (Build 5G64)
Command: httpd PID: 15743
Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0004567c
Thread 0: #0 0x0001e1a0 in load_module #1 0x00030590 in invoke_cmd #2 0x00031758 in execute_now #3 0x00030e50 in ap_build_config_sub #4 0x0003135c in ap_build_config #5 0x00031bfc in ap_process_resource_config #6 0x00032354 in ap_read_config #7 0x000207a4 in main #8 0x000024ac in _start #9 0x000022dc in start
PPC Thread State: srr0: 0x0001e1a0 srr1: 0x0000f030 vrsave: 0x00000000 xer: 0x00000020 lr: 0x0001e144 ctr: 0x41112bbc mq: 0x00000000 r0: 0x41503230 r1: 0xbfffd360 r2: 0x001edbc0 r3: 0x00000000 r4: 0x00000000 r5: 0x00000000 r6: 0x00000005 r7: 0x0038f268 r8: 0x0038f2ec r9: 0x00236278 r10: 0x0038f2d4 r11: 0x00000078 r12: 0x4114b230 r13: 0x00000000 r14: 0x00000036 r15: 0x0004a010 r16: 0xbfffee70 r17: 0x00000000 r18: 0x00000014 r19: 0x00004007 r20: 0x00000000 r21: 0x0000001c r22: 0x70004bc4 r23: 0x70004c58 r24: 0x00000001 r25: 0x0004b060 r26: 0x00000000 r27: 0x003b2b60 r28: 0x00000000 r29: 0xbfffef00 r30: 0x00000000 r31: 0x00000001
**********
On the following system:
[monalisa:~] sctemme% uname -a Darwin MonaLisa 1.4 Darwin Kernel Version 1.4: Sun Sep 9 15:39:59 PDT 2001; root:xnu/xnu-201.obj~1/RELEASE_PPC Power Macintosh powerpc
And with Apache thusly configured:
# ./configure --prefix=/tmp/apache2 --enable-so
Where should I look to debug this? By itself, the server starts and has been seen to serve pages. Oh,
Try running in debug mode:
=head2 'make test' Debug
mod_perl-2.0 provides built in 'make test' debug facility. So in case you get a core dump during make test, or just for fun, run in one shell:
% ./t/TEST -debug
in another shell:
% ./t/TEST -run
then the I<-debug> shell will have a (gdb) prompt, type 'where' for stacktrace.
You can change the default debugger by supplying the name of the debugger as an argument to I<-debug>. E.g. to run the server under C<ddd>:
% ./t/TEST -debug=ddd
the whole docs is here (or get it from modperl-2.0 rep): http://cvs.apache.org/viewcvs.cgi/modperl-2.0/pod/modperl_dev.pod?rev=1.41&content-type=text/vnd.viewcvs-markup
[monalisa:~/projects/httpd-test/perl-framework] sctemme% echo \
$DYLD_LIBRARY_PATH /tmp/apache2/lib
...or Apache will not start for lack of apr and apr-util.
The perl-framework works fine with Apache 1.3 on the same system.
Any pointers?
--
_____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
