You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Ruslan U. Zakirov" <cu...@miee.ru> on 2003/07/02 10:36:21 UTC

segmentation fault under mod_perl+XML::XPath

	Hello.
I've tried to use XML::XPath under mod_perl 1.27 and Apache 1.3.27, but
got segmentation fault with this peace of code:
use XML::XPath;

my $mfname='/proj/optolink/html/.meta.xml';
my $xp = XML::XPath->new(filename => $mfname);
my $ns = $xp->find('//document[@default="yes"]');
________________________________________
Perl 5.8.0, Apache - with so, unique_id, no expat
mod_perl with everything as DSO
----------------------------------------
Under command line it's working fine and all tests during installation of
XML::XPath were fine, but the same code crush apache+mod_perl.
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x80711c5 in poolCopyString ()
(gdb) bt
#0  0x80711c5 in poolCopyString ()
#1  0x806cf71 in XML_SetBase ()
#2  0x28cfcc92 in XS_XML__Parser__Expat_SetBase ()
   from
/usr/local/lib/perl5/site_perl/5.8.0/i386-freebsd/auto/XML/Parser/Expat/Expat.so
#3  0x28c398fb in Perl_pp_entersub () from
/usr/local/libexec/apache/libperl.so
#4  0x28c33c28 in Perl_runops_standard ()
   from /usr/local/libexec/apache/libperl.so
#5  0x28bf2f36 in S_call_body () from /usr/local/libexec/apache/libperl.so
#6  0x28bf2d16 in Perl_call_sv () from
/usr/local/libexec/apache/libperl.so
#7  0x28bd3d56 in perl_call_handler ()
   from /usr/local/libexec/apache/libperl.so
#8  0x28bd359e in perl_run_stacked_handlers ()
   from /usr/local/libexec/apache/libperl.so
#9  0x28bd1d64 in perl_handler () from
/usr/local/libexec/apache/libperl.so
#10 0x8052595 in ap_invoke_handler ()
#11 0x806225c in process_request_internal ()
#12 0x80622bd in ap_process_request ()
#13 0x805b52e in child_main ()
#14 0x805b6a0 in make_child ()
#15 0x805b7bd in startup_children ()
#16 0x805bcb4 in standalone_main ()
#17 0x805c397 in main ()
#18 0x804ebe1 in _start ()

	Any help would be good.
			Ruslan.