coredump on Carps in startup.pl

2000-11-15 Thread Philip Jacob

When I start up apache (apachectl startssl), I get a core dump. 
Attached is an "strace httpd -X" for those of you who find this useful.  

I have a rather plain startup.pl file containing these lines:

...
$SIG{__DIE__} = \Carp::confess;
...
use CGI::Carp ();
...

If I take both of these lines out of the file, apache starts just fine
and I can get some work done again.

Here's what I have - I'm including the mod_ssl stuff because it's in the
mix, but I'm not anticipating that this is part of the problem.

Mandrake 7.1
apache_1.3.14
libapreq-0.31
mod_perl-1.24_01
mod_ssl-2.7.1-1.3.14
openssl-0.9.5a
perl-5.6.0

I'm running a very similar setup w/ apache_1.3.12 and mod_perl 1.24 and
I'm not having this problem.

I have searched the mailing list archives but haven't found anybody
running into a similar problem... any ideas based on the strace output?

Thanks people,
phil.

execve("../bin/httpd", ["../bin/httpd", "-X"], [/* 39 vars */]) = 0
brk(0)  = 0x8265bf8
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40013000
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=25482, ...}) = 0
old_mmap(NULL, 25482, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)= 0
open("/lib/libm.so.6", O_RDONLY)= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=119808, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220F\0"..., 4096) = 4096
old_mmap(NULL, 120984, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001b000
mprotect(0x40038000, 2200, PROT_NONE)   = 0
old_mmap(0x40038000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1c000) = 
0x40038000
close(3)= 0
open("/lib/libcrypt.so.1", O_RDONLY)= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=19696, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\r\0"..., 4096) = 4096
old_mmap(NULL, 182588, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40039000
mprotect(0x4003e000, 162108, PROT_NONE) = 0
old_mmap(0x4003e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 
0x4003e000
old_mmap(0x4003f000, 158012, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003f000
close(3)= 0
open("/lib/libdb.so.3", O_RDONLY)   = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=259780, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320?\0"..., 4096) = 4096
old_mmap(NULL, 262748, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40066000
mprotect(0x400a5000, 4700, PROT_NONE)   = 0
old_mmap(0x400a5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3e000) = 
0x400a5000
close(3)= 0
open("/lib/libnsl.so.1", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=79920, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\0"..., 4096) = 4096
old_mmap(NULL, 92136, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400a7000
mprotect(0x400ba000, 14312, PROT_NONE)  = 0
old_mmap(0x400ba000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 
0x400ba000
old_mmap(0x400bc000, 6120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 
-1, 0) = 0x400bc000
close(3)= 0
open("/lib/libdl.so.2", O_RDONLY)   = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=9368, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\34"..., 4096) = 4096
old_mmap(NULL, 12392, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400be000
mprotect(0x400c, 4200, PROT_NONE)   = 0
old_mmap(0x400c, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 
0x400c
close(3)= 0
open("/lib/libc.so.6", O_RDONLY)= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=931348, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0x\215\1"..., 4096) = 4096
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x400c2000
old_mmap(NULL, 945852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400c3000
mprotect(0x401a2000, 32444, PROT_NONE)  = 0
old_mmap(0x401a2000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xde000) = 
0x401a2000
old_mmap(0x401a7000, 11964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 
-1, 0) = 0x401a7000
close(3)= 0
munmap(0x40014000, 25482)   = 0
getpid()= 25084
brk(0)  = 0x8265bf8
brk(0x8267c18)  = 0x8267c18
brk(0x8268000)  = 0x8268000
brk(0x826b000)  = 0x826b000
brk(0x826e000)  = 0x826e000
brk(0x8271000)  = 0x8271000
brk(0x8273000) 

Fixed: coredumps caused by Carp in startup.pl

2000-11-15 Thread Philip Jacob

We ought to have a name for the phenomenon caused by brilliant flashes
of ingenuity caused when a person asks easily answered questions on
mailing lists.

The problem was that I didn't have Tie::IxHash installed, but now that
it's been added, I'm fine again.

Thanks again,
phil.



Re: Newbie install help needed please

2000-11-15 Thread Philip Jacob

James,

It is installed, actually.  What you're seeing is a build of Apache
where pretty much everything is installed as a DSO.  This makes it
possible for Redhat to ship things like mod_php4 as RPMs so you can just
install them piecemeal.  If you look in APACHE/libexec/, you'll find all
the other modules you're looking for.

What you need to do in your httpd.conf file is LoadModule [ module name
], but since you're seeing mod_perl in the server headers, it's probably
already done.

I would advise you to learn how to build all this from source.  It's not
terribly difficult and Stas's mod_perl guide at perl.apache.org/guide is
a great resource.  Also, the software comes with instructions.

phil.


James Hall wrote:
 
 Hello,
 
 I recently installed Redhat 7, which includes/installs Apache and mod_perl.
 
 I assumed mod_perl was installed and running successfully based on the http
 error log (Mon Nov 13 15:37:16 2000] [notice] Apache/1.3.12 (Unix) (Red
 Hat/Linux) mod_ssl/2.6.6 OpenSSL/0.9.5a DAV/1.0.1 mod_perl/1.24 configured
 -- resuming normal operations), but when I do a httpd -l apparently its not:
 Compiled-in modules:
 http_core.c
 mod_so.c
 suexec: disabled; invalid wrapper /usr/sbin/suexec
 
 So I decided to download the tarball and [re]install mod_perl... but without
 the Apache source it is not happening.
 
 If anyone has any advice/urls/pointers to FAQ's to get mod_perl up and
 running in this situation it would be greatly appreciated!
 
 TIA!
 -Jim