出现很多这样的断错误
[Thu Apr 02 17:37:34 2009] [notice] child pid 12994 exit signal Segmentation fault (11)
[Thu Apr 02 17:37:36 2009] [notice] child pid 12939 exit signal Segmentation fault (11)
[Thu Apr 02 17:37:37 2009] [notice] child pid 11330 exit signal Segmentation fault (11)
[Thu Apr 02 18:04:23 2009] [notice] child pid 12922 exit signal Segmentation fault (11)
[Thu Apr 02 18:11:02 2009] [notice] child pid 14953 exit signal Segmentation fault (11)
[Thu Apr 02 18:17:38 2009] [notice] child pid 15151 exit signal Segmentation fault (11)
[Thu Apr 02 18:19:53 2009] [notice] child pid 15378 exit signal Segmentation fault (11)
[Thu Apr 02 18:32:12 2009] [notice] child pid 16277 exit signal Segmentation fault (11)
[Thu Apr 02 18:43:08 2009] [notice] child pid 16065 exit signal Segmentation fault (11)
[Thu Apr 02 18:50:20 2009] [notice] child pid 18174 exit signal Segmentation fault (11)
[Thu Apr 02 18:50:28 2009] [notice] child pid 17243 exit signal Segmentation fault (11)
[Thu Apr 02 18:56:17 2009] [notice] child pid 18507 exit signal Segmentation fault (11)
用shell脚本
#!/bin/sh
while [ "1" == "1" ]; do
APACHE_LIST=`ps -ef | grep httpd | awk '{ print $2; }'`
for i in $APACHE_LIST; do
if [ ! -e $i.log ]; then
echo "strace $i"
strace -p $i 2> $i.log &
fi
done
echo "wait"
done
more 20548.log
得到这个
...省略部分内容...
rt_sigaction(SIGALRM, {0x5cbea4, [ALRM], SA_RESTART}, {SIG_DFL}, 8) = 0
alarm(10) = 0
fcntl64(7, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
rt_sigaction(SIGALRM, {SIG_IGN}, {0x5cbea4, [ALRM], SA_RESTART}, 8) = 0
shmdt(0xb7f72000) = 0
shmget(0xe74, 1024, 0) = 131072
shmat(131072, 0xb7f72000, 0) = 0xb7f72000
shmdt(0xb7f72000) = 0
shmget(0xe74, 1024, 0) = 131072
shmat(131072, 0xb7f72000, SHM_RDONLY) = 0xb7f72000
fcntl64(7, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
close(7) = 0
mkdir("cache/home/G/guest", 0700) = -1 EEXIST (File exists)
mkdir("cache/home/G/guest/-22018", 0700) = 0
open("cache/home/G/guest/logincount", O_RDWR) = 7
fcntl64(7, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
read(7, "20321", 255) = 5
lseek(7, 0, SEEK_SET) = 0
write(7, "20322", 5) = 5
close(7) = 0
msgget(0x888, IPC_CREAT|0664) = 0
msgctl(0, IPC_64|IPC_STAT, 0xbf8e5bc8) = 0
msgctl(0, IPC_64|IPC_SET, 0xbf8e5bc8) = 0
msgsnd(0, {1, "\235Q\324IDP\0\0guest\0\0\0\0\0\0\0ENTER ?@172."...}, 63, MSG_NOERROR|IPC_NOWAIT) = 0
open("home/G/guest/.userdata", O_RDONLY) = 7
read(7, "guest\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1388) = 1380
close(7) = 0
time(NULL) = 1238651294
time(NULL) = 1238651294
time(NULL) = 1238651294
time(NULL) = 1238651294
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 20548 detached
--
FROM 221.137.7.*