Problems with APACHE::SSI

2002-02-28 Thread gaston

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]   #
##
**



[QUESTION][BUG] apache dies with SIGSEGV

2002-02-26 Thread gaston

Hi list

I wrote a small perl module using perl/Expat for parsing XML-files. 
With apache 1.3.19 and perl 5.6.0 and Expat 2.27 it works fine. 
In my new configuration (apache 1.3.20, perl 5.6.1 and Expat 2.30) 
apache dies with an SIGSEGV on loading.

The error occured during the function call ParseStream() in Expat.pm.
When i checked the core file with gdb i get this:

#0  0x4012d861 in kill () from /lib/libc.so.6
#1  0x4041a65e in Perl_apply () from /usr/lib/apache/libperl.so
#2  0x40412f38 in Perl_pp_kill () from /usr/lib/apache/libperl.so
#3  0x403e1730 in Perl_runops_standard () from
/usr/lib/apache/libperl.so
#4  0x403a210a in S_call_body () from /usr/lib/apache/libperl.so
#5  0x403a1cb1 in perl_call_sv () from /usr/lib/apache/libperl.so
#6  0x403dd9ac in Perl_sighandler () from /usr/lib/apache/libperl.so
#7  
#8  0x4017a06d in memmove () from /lib/libc.so.6
#9  0x08075f49 in XML_GetBuffer ()
#10 0x40e33570 in parse_stream ()
   from
/usr/lib/perl5/site_perl/5.6.1/i586-linux/auto/XML/Parser/Expat/Expat.so
#11 0x40e3707c in XS_XML__Parser__Expat_ParseStream ()
   from
/usr/lib/perl5/site_perl/5.6.1/i586-linux/auto/XML/Parser/Expat/Expat.so
#12 0x403e6f8d in Perl_pp_entersub () from /usr/lib/apache/libperl.so
#13 0x403e1730 in Perl_runops_standard () from
/usr/lib/apache/libperl.so
#14 0x403a210a in S_call_body () from /usr/lib/apache/libperl.so
#15 0x403a2261 in perl_eval_sv () from /usr/lib/apache/libperl.so
#16 0x40389827 in perl_do_file () from /usr/lib/apache/libperl.so
#17 0x40389883 in perl_load_startup_script () from
/usr/lib/apache/libperl.so
#18 0x40384dc6 in perl_cmd_require () from /usr/lib/apache/libperl.so
#19 0x08055e57 in ap_clear_module_list ()
#20 0x0805626b in ap_handle_command ()
#21 0x080562d1 in ap_srm_command_loop ()
#22 0x080568f6 in ap_process_resource_config ()
#23 0x08057112 in ap_read_config ()
#24 0x08060f42 in main ()
#25 0x4011c7ee in __libc_start_main () from /lib/libc.so.6 

When i'm running the program in perl (standalone) it works 
fine. 
 
-- 
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]   #
##
**