perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Omand" <>
Subject Re: Apache 2.2 and libapreq2 2.0.7 segfault
Date Thu, 30 Mar 2006 01:22:27 GMT
On 3/29/06, Philip M. Gollucci <> wrote:
> I hope this isn't whats causing it, but you're missing
> use Apache2::Const -compile qw(OK);
> I know we prefer the other way of new() so try doing this
> my $apr = Apache2::Request->new($r)
> I don't recall if we support both (as you can tell I've been out of it for a
> while).

The new Obj vs. Obj->new doesn't require any support from the module
itself, but I tried it just to be sure, and still get the same
segfault.  Also, I do compile constants in the script, and
when I remove the call to Apache2::Request in my sample handler, the
segfault goes away.

> If that doesn't work,
> perl -V

Attached: perl.V.txt

> ./configure for PERL, httpd,

For perl, the non-path/compiler flag defines passed to Configure are:


(Note: when I comment out the call to Apache2::Request in my example,
mod_perl happilly handles the request, so I think the perl/mod_perl
path is working fine.  The stack trace shows the segfault in

Attached: httpd-2.2-config.nice

> Makefile.PL line for mod_perl and httpd-apreq


perl Makefile.PL \
    MP_APXS=/path/to/apache2/sbin/apxs \


perl Makefile.PL \


View raw message