[ expat-Bugs-408156 ] XML::Parser::parse() segfaults mod_perl
noreply@sourceforge.net
noreply@sourceforge.net
Wed Oct 17 10:17:21 2001
Bugs item #408156, was opened at 2001-03-12 23:47
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=408156&group_id=10127
Category: XML::Parser (Perl module)
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Clark Cooper (coopercc)
Summary: XML::Parser::parse() segfaults mod_perl
Initial Comment:
Versions:
FreeBSD 4.2-STABLE
Apache 1.3.17
mod_perl 1.25
perl 5.00503
XML::Parser 2.30
expat 1.95.1
opensrs-client 2.3.2
When used under mod_perl in the environment described, a call to the parse() method in an
XML::Parser object causes the Apache instance to segfault. This is in context of the OpenSRS
client communication library, which uses XML for its protocol. Everything is fine when the same
code is used as a standalone CGI.
----------------------------------------------------------------------
Comment By: Patrick Mackinlay (patrick73)
Date: 2001-10-17 10:16
Message:
Logged In: YES
user_id=352037
This bug has been fixed in apache 1.3.21, since this release
apache is built using the local expat libraries, if they are
present, instead of apaches in-built libraries. I have
tested apache 1.3.22, with expat 1.95.2 and mod_perl 1.26
and it appears to work fine.
----------------------------------------------------------------------
Comment By: Ron Theis (justron)
Date: 2001-05-05 01:19
Message:
Logged In: YES
user_id=212228
I ran into this same problem on Linux. By compiling Apache
without expat, parse() now runs fine in XML::Parser. I ran
Apache's configure with the
--disable-rule=EXPAT
option.
Of course, the implicit assumption here is that other parts
of Apache are OK not having expat-lite installed.....
----------------------------------------------------------------------
Comment By: Randy Wright (rw26)
Date: 2001-04-23 09:15
Message:
Logged In: YES
user_id=202926
I have the same problem on a solaris box. I think fdrake has
made a correct diagnosis. Apache contains 'expat-lite' and
there seems to be a namespace collision when you load expate
via Perl::XML under mod_perl.
I am not sure what the solution is.
--randy wright
rw26@acf3.nyu.edu
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-04-04 18:25
Message:
Logged In: YES
user_id=3066
I *think* you're getting two copies of Expat linked in, but I'm not sure. Essentially, Apache/mod_perl might have one, and XML::Parser can also have one.
I'm assigning this to Clark since the Perl bindings are his baby.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=408156&group_id=10127