>> yeskw ms15 hinet net schrieb: >> I've compiled openwebmail-2.30.tgz, >> but when I execut /var/www/cgi-bin/openwebmail/openwebmail-tool.pl >> --init, >> it causes a "Segmentation fault" messages, does anyone know how to >> solve this problem? > > try to execute it with "strace" and look on the last few lines strace > gives back - that should help to locate the error. Means: > > strace /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init > > results in a *lot* of messages but only the last few are interesting. > the last lines shows: readv(5, 0xbfeeb810, 1) = -1 EAGAIN (Resource temporarily unavailable) select(7, [0 3 5 6], [], NULL, {5, 0}) = 1 (in [5], left {5, 0}) readv(5, [{"\ntmp/speedy.4.0.S\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024}], 1) = 1 writev(1, [{"\n", 1}], 1 ) = 1 readv(5, 0xbfeeb810, 1) = -1 EAGAIN (Resource temporarily unavailable) select(7, [0 3 5 6], [], NULL, {5, 0}) = 1 (in [5], left {4, 480000}) readv(5, [{"\ntmp/speedy.4.0.S\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024}], 1) = 0 close(5) = 0 fcntl64(1, F_SETFL, O_WRONLY) = 0 close(1) = 0 select(7, [0 3 6], [], NULL, {5, 0}) = 1 (in [6], left {5, 0}) readv(6, [{"\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\0\0"..., 512}], 1) = 0 close(6) = 0 fcntl64(2, F_SETFL, O_WRONLY) = 0 close(2) = 0 select(7, [0 3], [], NULL, {5, 0}) = ? ERESTARTNOHAND (To be restarted) --- SIGUSR1 (User defined signal 1) @ 0 (0) --- write(8, "\0", 1) = 1 sigreturn() = ? (mask now []) write(8, "\0", 1) = 1 gettimeofday({1078733340, 695772}, NULL) = 0 fcntl64(7, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0xbfeeb7c0) = 0 fstat64(7, {st_mode=S_IFREG|0600, st_size=512, ...}) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0 fcntl64(7, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbfeeb7d0) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 fcntl64(0, F_SETFL, O_RDONLY) = 0 rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0 kill(30753, SIGSEGV) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ I fount out the following messages in a result of demsg: # dmesg|grep -i cpu Initializing CPU#0 CPU: L1 I cache: 16K, L1 D cache: 16K CPU: L2 cache: 512K Intel machine check reporting enabled on CPU#0. CPU: After generic, caps: 0183f9ff 00000000 00000000 00000000 CPU: Common caps: 0183f9ff 00000000 00000000 00000000 CPU: Intel Pentium II (Deschutes) stepping 02 microcode: CPU0 no microcode found! (sig=652, pflags=1) # dmesg|grep -i sig usb.c: new USB bus registered, assigned bus number 1 microcode: CPU0 no microcode found! (sig=652, pflags=1) application bug: hcid(2143) has SIGCHLD set to SIG_IGN but calls wait(). application bug: speedy_backend(3279) has SIGCHLD set to SIG_IGN but calls wait(). (there is 16 lines/times in totle) I also have SIG11 problem with start postfix or compile anything, when I executed /etc/rc.d/init.d/postfix restart, I get a "Segmention fault" messages: # strace postalias /etc/postfix/aliases open("/etc/postfix/aliases", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2325, ...}) = 0 umask(033) = 022 getuid32() = 0 geteuid32() = 0 getegid32() = 0 open("/etc/postfix/aliases.db", O_RDWR) = 4 flock(4, LOCK_EX) = 0 fstat64(4, {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0 stat64("/etc/postfix/aliases.db", {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0 open("/etc/postfix/aliases.db", O_RDWR|O_TRUNC|O_LARGEFILE) = 5 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 stat64("/etc/postfix/aliases.db", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 getpid() = 30722 time(NULL) = 1078733317 _llseek(5, 0, [0], SEEK_SET) = 0 write(5, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 4096) = 4096 _llseek(5, 8192, [8192], SEEK_SET) = 0 write(5, "\0\0\0\0\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\2\0"..., 4096) = 4096 fsync(5) = 0 stat64("DB_CONFIG", 0xbfefc690) = -1 ENOENT (No such file or directory) open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0 stat64("__db.002", 0xbfefc6e0) = -1 ENOENT (No such file or directory) mmap2(NULL, 20983808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbe1d4000 open("/etc/postfix/aliases.db", O_RDWR|O_LARGEFILE) = 6 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 fstat64(6, {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0 pread(6, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 4096, 0) = 4096 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ when compile somethings, but it still cause segmentation fault, is it a cpu or kernel or hardware problem?