RE: :Parser Expat cause segfaults

2001-05-03 Thread Stephen Anderson



 -Original Message-
 From: Oskari 'Okko' Ojala [mailto:[EMAIL PROTECTED]]

 Got a problem: About 250 of 1000 requests cause a segfault 
 (11) when using
 XML::Parser::parse() under mod_perl. In FAQs it is stated that this is
 because of the bundled Expat in Apache.
 
 I've tried disabling Apache's Expat with --disable-rule=EXPAT, but it
 doesn't help.
 
 Have you found any workarounds or patches, or is the reason to my
 segfaults somewhere else?
 
 Platform:
 
 Red Hat 7.0
 Apache 1.3.19
 mod_perl 1.25
 perl 5.6.0
 expat 1.95.1
 HTML::Mason 1.02
 XML::Parser 2.30

There's (apparently) a known symbol conflict between XML::Parser 2.30 and
Apache (which I only know because it happened to someone here just the other
day). Drop down to 2.29 and it should work fine.

Stephen.



RE: :Parser Expat cause segfaults

2001-05-03 Thread Oskari 'Okko' Ojala

On Thu, 3 May 2001, Stephen Anderson wrote:

  Got a problem: About 250 of 1000 requests cause a segfault
  (11) when using XML::Parser::parse() under mod_perl.

 There's (apparently) a known symbol conflict between XML::Parser 2.30 and
 Apache (which I only know because it happened to someone here just the other
 day). Drop down to 2.29 and it should work fine.

No success, I tried dropping the version down to 2.25, one by one.

I also tried completely removing the expat from the apache source tree.
The script still core dumps, but I found out that the same code as a
mod_perl .cgi does not - it happens only when done under Mason.

Someone reported to me that he has the same behaviour with Solaris
2.8 x86. He gets core dumps with XML::Parser::parse() under Mason, too,
but not without it.

I'll mail to Mason's developer about this. I'll let you know if the
problem gets solved.

Oskari Ojala




RE: :Parser Expat cause segfaults

2001-05-03 Thread Matt Sergeant

On Thu, 3 May 2001, Oskari 'Okko' Ojala wrote:

 On Thu, 3 May 2001, Stephen Anderson wrote:
 
   Got a problem: About 250 of 1000 requests cause a segfault
   (11) when using XML::Parser::parse() under mod_perl.
 
  There's (apparently) a known symbol conflict between XML::Parser 2.30 and
  Apache (which I only know because it happened to someone here just the other
  day). Drop down to 2.29 and it should work fine.
 
 No success, I tried dropping the version down to 2.25, one by one.
 
 I also tried completely removing the expat from the apache source tree.
 The script still core dumps, but I found out that the same code as a
 mod_perl .cgi does not - it happens only when done under Mason.

Make sure you comletely remove the old apache installation before your
recompile. This has caught me once.

-- 
Matt/

/||** Founder and CTO  **  **   http://axkit.com/ **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
 \\//
 //\\
//  \\




RE: :Parser Expat cause segfaults

2001-05-03 Thread Oskari 'Okko' Ojala

On Thu, 3 May 2001, Oskari 'Okko' Ojala wrote:

 I'll let you know if the problem gets solved.

Upgrading to Perl 5.6.1 seems to do the job. Thanks to all who helped!

Oskari Ojala




RE: :Parser Expat cause segfaults

2001-05-03 Thread Lakshmanan, Srikrishnan

Reg this problem , Paul Kulchenko ( Soap::Lite wizard ) helped me with a
solution given below, back last Fall . I used it with immediate success ,
and I hope it is applicable:

** SOLUTION **
If using SOAP::Lite (or XML::Parser::Expat) in combination with
mod_perl
causes random segmentation faults in httpd processes try to configure
Apache with:

RULE_EXPAT=no

**

Sri Lakshmanan
Market Data Services 
Koch Petroleum Group
Tel   (316) 828-3820
Fax  (316) 828-4151
[EMAIL PROTECTED]





 -Original Message-
 From: Matt Sergeant [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday,May 03,2001 3:27 AM
 To:   Oskari 'Okko' Ojala
 Cc:   [EMAIL PROTECTED]
 Subject:  RE: :Parser  Expat cause segfaults
 
 On Thu, 3 May 2001, Oskari 'Okko' Ojala wrote:
 
  On Thu, 3 May 2001, Stephen Anderson wrote:
  
Got a problem: About 250 of 1000 requests cause a segfault
(11) when using XML::Parser::parse() under mod_perl.
  
   There's (apparently) a known symbol conflict between XML::Parser 2.30
 and
   Apache (which I only know because it happened to someone here just the
 other
   day). Drop down to 2.29 and it should work fine.
  
  No success, I tried dropping the version down to 2.25, one by one.
  
  I also tried completely removing the expat from the apache source tree.
  The script still core dumps, but I found out that the same code as a
  mod_perl .cgi does not - it happens only when done under Mason.
 
 Make sure you comletely remove the old apache installation before your
 recompile. This has caught me once.
 
 -- 
 Matt/
 
 /||** Founder and CTO  **  **   http://axkit.com/ **
//||**  AxKit.com Ltd   **  ** XML Application Serving **
   // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
  // \\| // ** mod_perl news and resources: http://take23.org  **
  \\//
  //\\
 //  \\