hi list
I'm using apache 1.3.23, mod_perl 1.26 (perl 5.6.1) and APACHE::SSI. In
a older
version (apache 1.3.19-6 & mod_perl 1.24.99 (perl 5.6.0)) it works fine.
In httpd.conf i made a entry like
SetHandler perl-script
PerlHandler Apache::SSI
When i call a file test.dhtml (it should be empty or with SSI comands),
i got
a entry in error_log like
[Thu Feb 28 09:07:58 2002] [notice] child pid 5305 exit signal
Segmentation fault (11)
and by tracing the process i got
...
32598 wait4(-1, 0xb890, WNOHANG, NULL) = 0
32598 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
32598 time(NULL)= 1014803873
32598 wait4(-1, 0xb890, WNOHANG, NULL) = 0
32598 select(0, NULL, NULL, NULL, {1, 0}) = ? ERESTARTNOHAND (To be
restarted)
32598 --- SIGCHLD (Child exited) ---
32598 select(0, NULL, NULL, NULL, {0, 9}) = 0 (Timeout)
32598 time(NULL)= 1014803874
32598 fork()= 428
32598 wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG,
NULL) = 420
32598 time(NULL)= 1014803874
32598 write(15, "[Wed Feb 27 10:57:54 2002] [noti"..., 86) = 86
32598 wait4(-1, 0xb890, WNOHANG, NULL) = 0
32598 select(0, NULL, NULL, NULL, {1, 0}
428 rt_sigaction(SIGHUP, {0x8077700, [], SA_INTERRUPT|0x400},
{0x80777d0, [HUP USR1], 0x400}, 8) = 0
428 rt_sigaction(SIGUSR1, {0x8077700, [], SA_INTERRUPT|0x400},
{0x80777d0, [HUP USR1], 0x400}, 8) = 0
428 rt_sigaction(SIGTERM, {0x8077700, [], SA_INTERRUPT|0x400},
{0x80777c0, [], 0x400}, 8) = 0
...
In gdb i can see that the process dies in perl_handler() (modperl.c)
on offset 80.
#0 0x402159d1 in perl_handler () from
/usr/local/apache/libexec/libperl.so
#1 0x0806c439 in ap_invoke_handler ()
#2 0x0808254f in process_request_internal ()
#3 0x080825c2 in ap_process_request ()
#4 0x08078f86 in child_main ()
#5 0x0807920a in make_child ()
#6 0x080795b8 in perform_idle_server_maintenance ()
#7 0x08079b8c in standalone_main ()
#8 0x0807a1cc in main ()
#9 0x400b67ee in __libc_start_main () from /lib/libc.so.6
(gdb) info reg
eax0x0 0
ecx0x887fa74143129204
edx0x13 19
ebx0x402cbde4 1076674020
esp0xb644 0xb644
ebp0xb66c 0xb66c
esi0x40014ce4 1073827044
edi0x83c673c138176316
eip0x402159d1 0x402159d1
eflags 0x10216 66070
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x0 0
fctrl 0x37f895
fstat 0x20 32
ftag 0x5 349525
fiseg 0x23 35
fioff 0x40271b62 1076304738
foseg 0x2b 43
fooff 0x81f5128136270120
fop0x55a1370
xmm0 0x
xmm1 0x
xmm2 0x
xmm3 0x
xmm4 0x
xmm5 0x
xmm6 0x
xmm7 0x
mxcsr 0x1f80 8064
(gdb) x/10i $eip
0x402159d1 : mov(%eax,%edx,4),%eax
0x402159d4 : mov%eax,0xfff8(%ebp)
0x402159d7 : mov0x158(%edi),%eax
0x402159dd : add$0xfffc,%esp
0x402159e0 : mov(%eax,%edx,4),%edx
0x402159e3 : mov%edx,0xfff0(%ebp)
0x402159e6 : push $0xb
0x402159e8 : push $0x1
0x402159ea : lea0xfffe38a5(%ebx),%eax
0x402159f0 : push %eax
Nevertheless i don't know what can i do any more. I tried several
configurations on compiling apache and mod_perl (-> INSTALL docu), but
it crashed every time in the same way. What's wrong?
Any help will be apriciate.
--
Mit freundlichen Grüßen
Jürgen Magin
**
##
# OCTOSOFT GmbH Mannheim http://www.octo-soft.de#
##
# Jürgen Magin. Einsteinstr. 11, D 68519 Viernheim #
##
# Tel : +49 6204/914874 #
# Fax : +49 6204/914875 #
# EMail : [EMAIL PROTECTED] #
##
**