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 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




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 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. :(