You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by gaston <ga...@octo-soft.de> on 2002/02/28 10:04:33 UTC
Problems with APACHE::SSI
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
<Files *.dhtml>
SetHandler perl-script
PerlHandler Apache::SSI
</Files>
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, 0xbffff890, WNOHANG, NULL) = 0
32598 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
32598 time(NULL) = 1014803873
32598 wait4(-1, 0xbffff890, 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, 90000}) = 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, 0xbffff890, WNOHANG, NULL) = 0
32598 select(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
428 rt_sigaction(SIGHUP, {0x8077700, [], SA_INTERRUPT|0x4000000},
{0x80777d0, [HUP USR1], 0x4000000}, 8) = 0
428 rt_sigaction(SIGUSR1, {0x8077700, [], SA_INTERRUPT|0x4000000},
{0x80777d0, [HUP USR1], 0x4000000}, 8) = 0
428 rt_sigaction(SIGTERM, {0x8077700, [], SA_INTERRUPT|0x4000000},
{0x80777c0, [], 0x4000000}, 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
eax 0x0 0
ecx 0x887fa74 143129204
edx 0x13 19
ebx 0x402cbde4 1076674020
esp 0xbffff644 0xbffff644
ebp 0xbffff66c 0xbffff66c
esi 0x40014ce4 1073827044
edi 0x83c673c 138176316
eip 0x402159d1 0x402159d1
eflags 0x10216 66070
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x0 0
fctrl 0x37f 895
fstat 0x20 32
ftag 0x55555 349525
fiseg 0x23 35
fioff 0x40271b62 1076304738
foseg 0x2b 43
fooff 0x81f5128 136270120
fop 0x55a 1370
xmm0 0x00000000000000000000000000000000
xmm1 0x00000000000000000000000000000000
xmm2 0x00000000000000000000000000000000
xmm3 0x00000000000000000000000000000000
xmm4 0x00000000000000000000000000000000
xmm5 0x00000000000000000000000000000000
xmm6 0x00000000000000000000000000000000
xmm7 0x00000000000000000000000000000000
mxcsr 0x1f80 8064
(gdb) x/10i $eip
0x402159d1 <perl_handler+49>: mov (%eax,%edx,4),%eax
0x402159d4 <perl_handler+52>: mov %eax,0xfffffff8(%ebp)
0x402159d7 <perl_handler+55>: mov 0x158(%edi),%eax
0x402159dd <perl_handler+61>: add $0xfffffffc,%esp
0x402159e0 <perl_handler+64>: mov (%eax,%edx,4),%edx
0x402159e3 <perl_handler+67>: mov %edx,0xfffffff0(%ebp)
0x402159e6 <perl_handler+70>: push $0xb
0x402159e8 <perl_handler+72>: push $0x1
0x402159ea <perl_handler+74>: lea 0xfffe38a5(%ebx),%eax
0x402159f0 <perl_handler+80>: 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 : gaston@octo-soft.de #
# #
**************************************************************