[ expat-Bugs-408156 ] XML::Parser::parse() segfaults mod_perl

noreply@sourceforge.net noreply@sourceforge.net
Mon, 23 Apr 2001 09:15:23 -0700


Bugs item #408156, was updated on 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
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: 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