Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 83450 invoked from network); 30 Mar 2006 01:22:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2006 01:22:59 -0000 Received: (qmail 12844 invoked by uid 500); 30 Mar 2006 01:22:52 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 12824 invoked by uid 500); 30 Mar 2006 01:22:52 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 12813 invoked by uid 99); 30 Mar 2006 01:22:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2006 17:22:52 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of coryomand@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO pproxy.gmail.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2006 17:22:49 -0800 Received: by pproxy.gmail.com with SMTP id i49so260962pye for ; Wed, 29 Mar 2006 17:22:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=K9IvYhgqX9Rzs8KJYc2r+BZJEhK3O6bcb4xmzvakATy/3v0cK7oo8NLye5J9BUbODyFm/z9WjvpJvwZgiGqjqdTAHwD921wMr/P7ELEv6BaWWxivWr6KNOQoPdv0B12dPTwo2UmnxFXCp/I2R5WsRjWwU9SHAziWwebYhrx7/pw= Received: by 10.35.36.13 with SMTP id o13mr428893pyj; Wed, 29 Mar 2006 17:22:28 -0800 (PST) Received: by 10.35.123.17 with HTTP; Wed, 29 Mar 2006 17:22:27 -0800 (PST) Message-ID: Date: Wed, 29 Mar 2006 17:22:27 -0800 From: "Cory Omand" Sender: coryomand@gmail.com To: "Philip M. Gollucci" Subject: Re: Apache 2.2 and libapreq2 2.0.7 segfault Cc: modperl In-Reply-To: <442B25D4.8040203@p6m7g8.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13260_25354900.1143681747815" References: <442B25D4.8040203@p6m7g8.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_13260_25354900.1143681747815 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D Apache2::Request->new($r) > > I don't recall if we support both (as you can tell I've been out of it fo= r 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 startup.pl 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: -Duselargefiles -Duseshrplib -Dusesitecustomize -Dusethreads (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 mod_apreq2.so) Attached: httpd-2.2-config.nice > Makefile.PL line for mod_perl and httpd-apreq mod_perl: perl Makefile.PL \ MP_APXS=3D/path/to/apache2/sbin/apxs \ MP_PROMPT_DEFAULT=3D1 \ MP_DEBUG=3D1 httpd-apreq2: perl Makefile.PL \ --enable-perl-glue --with-perl=3D/opt/csw/bin/perl --with-apache2-apxs=3D/opt/csw/apache2/sbin/apxs --with-apr-config=3D/opt/csw/apache2/bin/apr-config --with-apu-config=3D/opt/csw/apache2/bin/apu-config --with-expat=3D/opt/csw --with-mm-opts=3D"INSTALLDIRS=3Dvendor" Thanks, Cory. ------=_Part_13260_25354900.1143681747815 Content-Type: application/octet-stream; name=httpd-2.2.0-config.nice Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eleegnb7 Content-Disposition: attachment; filename="httpd-2.2.0-config.nice" #! /bin/sh # # Created by configure CC="cc"; export CC CFLAGS="-xO3 -xarch=v8 -xspace -xildoff -I/tmp/a/opt/csw/include -I/opt/csw/bdb43/include -I/opt/csw/include "; export CFLAGS CPPFLAGS=" -I/tmp/a/opt/csw/include -I/opt/csw/bdb43/include -I/opt/csw/include"; export CPPFLAGS LDFLAGS=" -xarch=v8 -L/tmp/a/opt/csw/lib -L/opt/csw/bdb43/lib -L/opt/csw/lib "; export LDFLAGS LIBS="-lnsl"; export LIBS "./configure" \ "--enable-layout=csw" \ "--enable-ssl" \ "--enable-mods-shared=most" \ "--enable-authn-alias" \ "--enable-authnz-ldap" \ "--enable-file-cache" \ "--enable-cache" \ "--enable-disk-cache" \ "--enable-mem-cache" \ "--enable-bucketeer" \ "--enable-charset-lite" \ "--enable-ldap" \ "--enable-log-forensic" \ "--enable-mime-magic" \ "--enable-cern-meta" \ "--enable-usertrack" \ "--enable-unique-id" \ "--enable-version" \ "--enable-proxy" \ "--enable-proxy-connect" \ "--enable-proxy-ftp" \ "--enable-proxy-http" \ "--enable-proxy-ajp" \ "--enable-proxy-balancer" \ "--enable-ssl" \ "--enable-cgid" \ "--enable-dav-lock" \ "--with-z=/opt/csw" \ "--with-ssl=/opt/csw" \ "--with-ldap" \ "--with-dbm=db43" \ "--with-berkeley-db=/opt/csw/bdb43" \ "--with-pgsql=/opt/csw/postgresql" \ "--with-sqlite2=no" \ "--with-expat=/opt/csw" \ "--with-iconv=/opt/csw" \ "--with-mpm=prefork" \ "--enable-suexec" \ "--with-suexec-caller=nobody" \ "--with-suexec-docroot=/opt/csw/apache2/share/htdocs" \ "--with-suexec-userdir=public_html" \ "--with-suexec-uidmin=100" \ "--with-suexec-gidmin=100" \ "--with-suexec-logfile=/opt/csw/apache2/var/log/suexec_log" \ "--with-suexec-bin=/opt/csw/apache2/sbin/suexec" \ "$@" ------=_Part_13260_25354900.1143681747815 Content-Type: text/plain; name=perl.V.txt; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eleeh3go Content-Disposition: attachment; filename="perl.V.txt" Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris-thread-multi uname='sunos ra 5.8 generic_117350-28 sun4u sparc' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff -I/opt/csw/bdb43/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-xO3 -xarch=v8 -xspace -xildoff', cppflags='-D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff -I/opt/csw/bdb43/include -I/opt/csw/include' ccversion='Sun C 5.7 2005/01/07', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags ='-xarch=v8 -L/opt/csw/bdb43/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib' libpth=/usr/lib /usr/ccs/lib /lib /opt/csw/lib libs=-lsocket -lnsl -lgdbm -ldb-4.3 -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldb-4.3 -ldl -lm -lpthread -lc libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /opt/csw/lib' cccdlflags='-KPIC', lddlflags='-G -L/opt/csw/bdb43/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE Built under solaris Compiled at Mar 8 2006 12:17:12 @INC: /opt/csw/lib/perl/5.8.8 /opt/csw/share/perl/5.8.8 /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw /opt/csw/share/perl/csw . ------=_Part_13260_25354900.1143681747815--