XML::Parser Expat cause segfaults

2001-05-02 Thread Oskari 'Okko' Ojala


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


I compiled mod_perl with

perl Makefile.PL APACHE_SRC=../apache_1.3.19/src DO_HTTPD=1 USE_APACI=1
PREP_HTTPD=1 EVERYTHING=1

and Apache with

./configure --disable-rule=EXPAT
--activate-module=src/modules/perl/libperl.a --enable-module=so
--enable-module=unique_id --enable-module=rewrite --enable-module=info
--enable-module=usertrack --enable-module=expires
--prefix=/usr/local/apache


All tips appreciated!

Oskari Ojala
Frantic Media




Re: XML::Parser Expat cause segfaults

2001-05-02 Thread Matt Sergeant

On Wed, 2 May 2001, Oskari 'Okko' Ojala wrote:

 I compiled mod_perl with

 perl Makefile.PL APACHE_SRC=../apache_1.3.19/src DO_HTTPD=1 USE_APACI=1
 PREP_HTTPD=1 EVERYTHING=1

Try changing PREP_HTTPD=1 to APACHE_PREFIX=/usr/local/apache, and add
APACI_ARGS='...' where ... are your --enable-module bits. Then mod_perl
will compile and install Apache for you. That's the way I've found works
best.

-- 
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: XML::Parser Expat cause segfaults

2001-05-02 Thread Oskari 'Okko' Ojala

On Wed, 2 May 2001, Matt Sergeant wrote:

 Try changing PREP_HTTPD=1 to APACHE_PREFIX=/usr/local/apache, and add
 APACI_ARGS='...' where ... are your --enable-module bits.

Tried that too, but it doesn't seem to help. Still segfaults. :(