Correct apache installation, linux slackware 8 running 2.4.18
when I start it with a normal kernel all goes well.
when I start it with grsec kernel with no acl and Openwall here the problem :
root@norad:~# strace -v -o log.txt /usr/local/apache/bin/apachectl start
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
/usr/local/apache/bin/apachectl: line 184: 9212 Segmentation fault $HTTPD
/usr/local/apache/bin/apachectl start: httpd could not be started
from the log file:
execve("/usr/local/apache/bin/apachectl", ["/usr/local/apache/bin/apachectl", "start"], [/* 36 vars */]) = 0
brk(0) = 0x80c96f0
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(0x4, 0xbfffec24) = 0
old_mmap(NULL, 65027, PROT_READ, MAP_PRIVATE, 4, 0) = 0x125000
close(4) = 0
open("/lib/libtermcap.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\210\v\0"..., 1024) = 1024
fstat64(0x4, 0xbfffec74) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x135000
old_mmap(NULL, 13800, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x136000
mprotect(0x139000, 1512, PROT_NONE) = 0
old_mmap(0x139000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x2000) = 0x139000
close(4) = 0
open("/lib/libdl.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0$\34\0\000"..., 1024) = 1024
fstat64(0x4, 0xbfffec64) = 0
old_mmap(NULL, 12176, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x13a000
mprotect(0x13c000, 3984, PROT_NONE) = 0
old_mmap(0x13c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1000) = 0x13c000
close(4) = 0
open("/lib/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\330"..., 1024) = 1024
fstat64(0x4, 0xbfffec54) = 0
old_mmap(NULL, 1183680, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x13d000
mprotect(0x254000, 40896, PROT_NONE) = 0
old_mmap(0x254000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x116000) = 0x254000
old_mmap(0x25a000, 16320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x25a000
close(4) = 0
munmap(0x125000, 65027) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
open("/dev/tty", O_RDWR|O_NONBLOCK|0x8000) = 4
close(4) = 0
brk(0) = 0x80c96f0
brk(0x80ca000) = 0x80ca000
brk(0x80cb000) = 0x80cb000
SYS_199(0x259058, 0, 0x259d80, 0x256e50, 0xbffff8d4) = 0
ipc_subcall(0x259058, 0, 0x259d80, 0x256e50) = 0
semop(2461784, 0x256e50, 0) = 0
semget(2461784, 0, IPC_EXCL|IPC_NOWAIT|0x259180|0600) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
time(NULL) = 1020773934
brk(0x80cc000) = 0x80cc000
open("/etc/mtab", O_RDONLY) = 4
fstat64(0x4, 0xbfffcfdc) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x125000
read(4, "/dev/hda2 / ext3 rw 0 0\nnone /de"..., 4096) = 90
close(4) = 0
munmap(0x125000, 4096) = 0
open("/proc/meminfo", O_RDONLY) = 4
fstat64(0x4, 0xbfffd44c) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x125000
read(4, " total: used: free:"..., 4096) = 522
close(4) = 0
munmap(0x125000, 4096) = 0
brk(0x80cd000) = 0x80cd000
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL},
= 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL},
= 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL},
= 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL},
= 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL},
= 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL},
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL},
= 0
uname({sysname="Linux", nodename="norad", release="2.4.18-grsec-1.9.4", version="#3 Wed Apr 3 11:39:26 CEST 2002", machine="i686"}) = 0
brk(0x80ce000) = 0x80ce000
brk(0x80cf000) = 0x80cf000
stat64(0x80ca16c, 0xbffff64c) = 0
stat64(0x80ac74a, 0xbffff5ec) = 0
getpid() = 9215
getppid() = 9214
getpgrp() = 9214
rt_sigaction(SIGCHLD, {0x806f99c, [], 0x4000000}, {SIG_DFL},
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
open("/usr/local/apache/bin/apachectl", O_RDONLY|0x8000) = 4
ioctl(4, TCGETS, 0xbffff6b8) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(4, 0, [0], SEEK_CUR) = 0
read(4, "#!/bin/sh\n#\n# Apache control scr"..., 80) = 80
_llseek(4, 0, [0], SEEK_SET) = 0
getrlimit(0x7, 0xbffff714, 0, 0x4, 0x7) = 0
dup2(4, 255) = 255
close(4) = 0
shmat(255, 0, 0x2) = ?
shmat(255, 0x12490c, 0x3) = ?
fstat64(0xff, 0xbffff78c) = 0
_llseek(255, 0, [0], SEEK_CUR) = 0
brk(0x80d1000) = 0x80d1000
brk(0x80d2000) = 0x80d2000
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
read(255, "#!/bin/sh\n#\n# Apache control scr"..., 7412) = 7412
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
brk(0x80d3000) = 0x80d3000
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
brk(0x80d4000) = 0x80d4000
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
brk(0x80d5000) = 0x80d5000
brk(0x80d6000) = 0x80d6000
brk(0x80d7000) = 0x80d7000
brk(0x80d8000) = 0x80d8000
brk(0x80d9000) = 0x80d9000
brk(0x80da000) = 0x80da000
brk(0x80db000) = 0x80db000
brk(0x80dc000) = 0x80dc000
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
stat64(0x80d6a8c, 0xbffff2fc) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [],
= 0
_llseek(255, -2847, [4565], SEEK_CUR) = 0
fork() = 9216
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [],
= 0
rt_sigaction(SIGINT, {0x806ec28, [], 0x4000000}, {SIG_DFL},
= 0
wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 9216
rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [CHLD],
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD TTOU],
= 0
uname({sysname="Linux", nodename="norad", release="2.4.18-grsec-1.9.4", version="#3 Wed Apr 3 11:39:26 CEST 2002", machine="i686"}) = 0
write(2, "/usr/local/apache/bin/apachectl:"..., 80) = 80
rt_sigprocmask(SIG_SETMASK, [CHLD TTOU], NULL,
= 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD],
= 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL,
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
--- SIGCHLD (Child exited) ---
wait4(-1, 0xbfffef88, WNOHANG, NULL) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x806ec28, [], 0x4000000},
= 0
write(1, "/usr/local/apache/bin/apachectl "..., 66) = 66
rt_sigprocmask(SIG_BLOCK, [CHLD], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
read(255, "\nexit $ERROR\n\n## ==============="..., 7412) = 2847
rt_sigprocmask(SIG_BLOCK, NULL, [],
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [],
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL,
= 0
_exit(3) = ?
[/code]