[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  signal handler called
#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]   #
##
**



Re: [QUESTION][BUG] apache dies with SIGSEGV

2002-02-26 Thread Mark P. Fister

On Tue, Feb 26, 2002 at 11:36:39AM +0100, gaston wrote:
 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:

Scope this:

http://groups.yahoo.com/group/modperl/message/39557

So try switching to Apache 1.3.23 (the latest)?

Hope this helps! :)

-- 
\_/} Mark P. Fister Java, Java, everywhere, and all\_/}
\_/} eBay, Inc. the cups did shrink; Java, Java\_/}
\_/} Austin, TX everywhere, nor any drop to drink! \_/}