You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Titus Brown <ti...@caltech.edu> on 2001/12/10 09:56:38 UTC

Apache crashing on mod_perl installation.

Hi all,

I'm having a frustrating time with mod_perl...

Configuration:
	-- apache 1.3.22
	-- mod_perl 1.26

Static configuration & installation all goes fine, and when I run httpd
(w/o modification, off of a straight install) the child pids crash when
loading /.  (Loading /index.html works fine.  Perl files do not.)

The specific error messages is this:

[Mon Dec 10 00:46:01 2001] [notice] child pid 31524 exit signal Segmentation fault (11), possible coredump in /disk/u/t/software/try2/ap-install

When I do a gdb on the resulting core dump, I find that it's crashing in
perl_handler().

Any ideas?

thanks,
--titus

Re: Apache crashing on mod_perl installation.

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi again,

On Mon, 10 Dec 2001, Titus Brown wrote:

> Bear in mind these are in the instructions for installation for mod_perl ;).

:)

> I don't want it to install in the default place.

The only time I've had real grief with building was when I did that.
One of the problems is that it's difficult to make sure that all the
permissions are right if you move away from the 'standard' layout, and
if you meddle with that and the makefiles then it's near impossible.
Still, a lot of people do it and manage OK.  I really just wanted to
know if you can get things working OK without moving too far off the
beaten path.  If you can, then it's generally easier to trace where it
all goes wrogn when you start changing things.

> People have had problems with mod_perl and child pids core dumping, at least;

Core dumps and segfaults are common enough, I meant that I hadn't seen
it happen for the reason you gave.

>    http://aspn.activestate.com/ASPN/Mail/Message/modperl/784385
> 
> is another one, to which you responded, in fact ;).  I don't see any
> followups from the original person tho.

No, no reply.  It happens.

Really must hit the sack now...

73,
Ged.


Re: Apache crashing on mod_perl installation.

Posted by Titus Brown <ti...@caltech.edu>.
-> > EXTRA_CFLAGS1=`$(SRCDIR)/apaci`
-> > EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts`
-> > EXTRA_CFLAGS=$(EXTRA_CFLAGS1) `perl -MExtUtils::Embed -e ccopts`
-> 
-> Hmmmm.  Have you tried building without all this messing about with
-> the Makefile?

Bear in mind these are in the instructions for installation for mod_perl ;).

But no, I haven't, because I haven't figured out how to have it (mod_perl)
specify a different path in configuring apache, and I don't want it to
install in the default place.

-> > did make & make install.
-> 
-> make install as root?

yep.

-> > crashes on first connection attempt to 'localhost:8080/', although
-> > 'localhost:8080/index.html' works fine.
-> [snip]
-> > People have had this error before, to judge from the mailing list
-> 
-> Can you point me to examples?  I don't recall seeing anything quite
-> like this before.

People have had problems with mod_perl and child pids core dumping, at least;

   http://www.mail-archive.com/modperl@apache.org/msg21703.html

is one of the (~6) messages I found dealing with black-box seg faults...

   http://aspn.activestate.com/ASPN/Mail/Message/modperl/784385

is another one, to which you responded, in fact ;).  I don't see any
followups from the original person tho.

cheers,
--titus

Re: Apache crashing on mod_perl installation.

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi again,

On Mon, 10 Dec 2001, Titus Brown wrote:

> EXTRA_CFLAGS1=`$(SRCDIR)/apaci`
> EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts`
> EXTRA_CFLAGS=$(EXTRA_CFLAGS1) `perl -MExtUtils::Embed -e ccopts`

Hmmmm.  Have you tried building without all this messing about with
the Makefile?

> did make & make install.

make install as root?

> crashes on first connection attempt to 'localhost:8080/', although
> 'localhost:8080/index.html' works fine.
[snip]
> People have had this error before, to judge from the mailing list

Can you point me to examples?  I don't recall seeing anything quite
like this before.

73,
Ged.


Re: Apache crashing on mod_perl installation.

Posted by Titus Brown <ti...@caltech.edu>.
-> > When I do a gdb on the resulting core dump, I find that it's crashing in
-> > perl_handler().
-> > 
-> > Any ideas?
-> 
-> See modperl/SUPPORT

OK,

apache 1.3.22
mod_perl 1.26
Output of 'perl -V' attached.

I configured Apache with:

% ./configure --prefix=~/software/try2/ap-install

then ran 'perl Makefile.PL' in the mod_perl directory.  It found the source
directory correctly, and I told it *not* to autobuild apache.

Inside mod_perl directory,

make
make install

w/o error.

I then returned to the apache directory, issued:

./configure --prefix=~/software/try2/ap-install --activate-module=src/modules/perl/libperl.a

modified src/Makefile to include the correct stuff:

EXTRA_CFLAGS1=`$(SRCDIR)/apaci`
EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts`
EXTRA_CFLAGS=$(EXTRA_CFLAGS1) `perl -MExtUtils::Embed -e ccopts`

did make & make install.

% bin/httpd -X

crashes on first connection attempt to 'localhost:8080/', although
'localhost:8080/index.html' works fine.  The error_log just says
that the child pid exited abruptly.

Error message from w/in GDB:

--

% gdb bin/httpd

(gdb) r -X
Starting program: /disk/u/t/software/try2/ap-install/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x80642ed in perl_handler ()
(gdb)   where
#0  0x80642ed in perl_handler ()
#1  0x80acfe9 in ap_invoke_handler ()
#2  0x80c1e8f in ap_some_auth_required ()
#3  0x80c1efa in ap_process_request ()
#4  0x80b8df0 in ap_child_terminate ()
#5  0x80b8fb5 in ap_child_terminate ()
#6  0x80b9136 in ap_child_terminate ()
#7  0x80b97cd in ap_child_terminate ()
#8  0x80ba02c in main ()
#9  0x4006a9cb in __libc_start_main (main=0x80b9c98 <main>, argc=2,
    argv=0xbffff854, init=0x8061d48 <_init>, fini=0x8154024 <_fini>,
    rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbffff84c)
    at ../sysdeps/generic/libc-start.c:92
--

I've tried to compile with -g but for whatever reason the symbols don't seem
to be coming through.  Ergh.

Help?  People have had this error before, to judge from the mailing list
archives, but I haven't seen a useful solution yet.

cheers,
--titus

Re: Apache crashing on mod_perl installation.

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Mon, 10 Dec 2001, Titus Brown wrote:

> When I do a gdb on the resulting core dump, I find that it's crashing in
> perl_handler().
> 
> Any ideas?

See modperl/SUPPORT

73,
Ged.