httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Rehak" <jer...@animalshelternet.com>
Subject [users@httpd] Segmentation Fault on starting httpd 2.0.48
Date Tue, 21 Jun 2005 15:19:35 GMT
Hello-

I get a segfault when starting httpd.  I'm using apache 2.0.48 built
from tar running on Fedora C3.

# /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl: line 65:  9846 Segmentation fault
$HTTPD -k $ARGV
# /usr/local/apache/bin/httpd
Segmentation fault
# /usr/local/apache/bin/httpd -X -f /usr/local/apache/conf/httpd.conf
Segmentation fault

This happens regardless if I have a httpd.conf at all so I'm guessing
it's not a config file issue.
There's nothing in the logs because I don't think it gets that far.  

Below is a strace- it looks like it might be missing some apr* library
although I see an apr folder in the source, and I'm guessing it should
have built and installed those.

Can someone who knows about this stuff please give me a clue?  Thanks!

Here's some output from gdb, Looks like it failed 'registering hooks' I
also wish I knew what it meant:
-----------------------------------
gdb /usr/local/apache/bin/httpd
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/apache/bin/httpd
[Thread debugging using libthread_db enabled]
[New Thread -1208555840 (LWP 9728)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208555840 (LWP 9728)]
0x0808ecbb in register_hooks ()
(gdb)
-------------------------------------

Here's an strace:
[root@localhost conf]# strace /usr/local/apache/bin/httpd
execve("/usr/local/apache/bin/httpd", ["/usr/local/apache/bin/httpd"],
[/* 21 vars */]) = 0
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
brk(0)                                  = 0x80ad000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/local/apache/lib/tls/i686/sse2/libaprutil-0.so.0", O_RDONLY)
= -1 ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/tls/i686/sse2", 0xbffff03c) = -1 ENOENT
(No such file or directory)
open("/usr/local/apache/lib/tls/i686/libaprutil-0.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/tls/i686", 0xbffff03c) = -1 ENOENT (No
such file or directory)
open("/usr/local/apache/lib/tls/sse2/libaprutil-0.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/tls/sse2", 0xbffff03c) = -1 ENOENT (No
such file or directory)
open("/usr/local/apache/lib/tls/libaprutil-0.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/tls", 0xbffff03c) = -1 ENOENT (No such
file or directory)
open("/usr/local/apache/lib/i686/sse2/libaprutil-0.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/i686/sse2", 0xbffff03c) = -1 ENOENT (No
such file or directory)
open("/usr/local/apache/lib/i686/libaprutil-0.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/i686", 0xbffff03c) = -1 ENOENT (No such
file or directory)
open("/usr/local/apache/lib/sse2/libaprutil-0.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/apache/lib/sse2", 0xbffff03c) = -1 ENOENT (No such
file or directory)
open("/usr/local/apache/lib/libaprutil-0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=255495, ...}) = 0
old_mmap(NULL, 80944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7fec000
old_mmap(0xb7fff000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0xb7fff000
close(3)                                = 0
open("/usr/local/apache/lib/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=41657, ...}) = 0
old_mmap(NULL, 41657, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe1000
close(3)                                = 0
open("/usr/lib/libgdbm.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\321"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=23616, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7fe0000
old_mmap(0x30c000, 21040, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x30c000
old_mmap(0x311000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x311000
close(3)                                = 0
open("/usr/local/apache/lib/libdb-4.2.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib/tls/i686/libdb-4.2.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 lu\000"...,
512) = 512
lseek(3, 833220, SEEK_SET)              = 833220
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\4\0\0\0"..., 32)
= 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=845636, ...}) = 0
old_mmap(0x740000, 843388, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x740000
old_mmap(0x80c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xcc000) = 0x80c000
close(3)                                = 0
open("/usr/local/apache/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libexpat.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\37"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=127592, ...}) = 0
old_mmap(0x900000, 124868, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x900000
old_mmap(0x91d000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x91d000
close(3)                                = 0
open("/usr/local/apache/lib/libapr-0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\24\207"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=378843, ...}) = 0
old_mmap(NULL, 120680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7fc2000
old_mmap(0xb7fde000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0xb7fde000
old_mmap(0xb7fdf000, 1896, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fdf000
close(3)                                = 0
open("/usr/local/apache/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/tls/librt.so.1", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\220"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=50792, ...}) = 0
old_mmap(0x357000, 81656, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x357000
old_mmap(0x35f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x35f000
old_mmap(0x361000, 40696, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x361000
close(3)                                = 0
open("/usr/local/apache/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\3630"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=214280, ...}) = 0
old_mmap(0x30c000, 139424, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f9f000
old_mmap(0xb7fc0000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0xb7fc0000
close(3)                                = 0
open("/usr/local/apache/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340w5\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=28552, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f9e000
old_mmap(0x357000, 184636, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f70000
old_mmap(0xb7f75000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0xb7f75000
old_mmap(0xb7f77000, 155964, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f77000
close(3)                                = 0
open("/usr/local/apache/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\4;"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=97560, ...}) = 0
old_mmap(0x3ad000, 88064, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3ad000
old_mmap(0x3bf000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x3bf000
old_mmap(0x3c1000, 6144, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3c1000
close(3)                                = 0
open("/usr/local/apache/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260k0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=16816, ...}) = 0
old_mmap(0x306000, 12388, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x306000
old_mmap(0x308000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x308000
close(3)                                = 0
open("/usr/local/apache/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20x4\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=107960, ...}) = 0
old_mmap(0x343000, 70108, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x343000
old_mmap(0x351000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x351000
old_mmap(0x353000, 4572, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x353000
close(3)                                = 0
open("/usr/local/apache/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\357"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1521500, ...}) = 0
old_mmap(0x1da000, 1219740, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x1da000
mprotect(0x2fd000, 27804, PROT_NONE)    = 0
old_mmap(0x2fe000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x123000) = 0x2fe000
old_mmap(0x302000, 7324, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x302000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f6f000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f6e000
mprotect(0x2fe000, 8192, PROT_READ)     = 0
mprotect(0x351000, 4096, PROT_READ)     = 0
mprotect(0x308000, 4096, PROT_READ)     = 0
mprotect(0x3bf000, 4096, PROT_READ)     = 0
mprotect(0xb7f75000, 4096, PROT_READ)   = 0
mprotect(0xb7fc0000, 4096, PROT_READ)   = 0
mprotect(0x35f000, 4096, PROT_READ)     = 0
mprotect(0x1d6000, 4096, PROT_READ)     = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f6e6c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fe1000, 41657)               = 0
set_tid_address(0xb7f6e708)             = 9778
rt_sigaction(SIGRTMIN, {0x347380, [], SA_RESTORER|SA_SIGINFO, 0x34e7c0},
NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x3473f0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO,
0x34e7c0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) =
0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff7cc, 30, (nil), 0}) = 0
brk(0)                                  = 0x80ad000
brk(0x80ce000)                          = 0x80ce000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message