From owner-freebsd-stable@FreeBSD.ORG Tue Feb 22 12:38:21 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0448216A4CE for ; Tue, 22 Feb 2005 12:38:21 +0000 (GMT) Received: from smtp2.mc.surewest.net (smtp2.mc.surewest.net [66.60.130.51]) by mx1.FreeBSD.org (Postfix) with SMTP id A4B2143D5A for ; Tue, 22 Feb 2005 12:38:20 +0000 (GMT) (envelope-from dislists@updegrove.net) Received: (s3-22499); Tue, 22 Feb 2005 04:38:20 -0800 Received: from unknown (HELO updegrove.net) (64.30.97.117) by smtp2.mc.surewest.net (s3-smtpd/0.90-beta3) with SMTP; Tue, 22 Feb 2005 04:38:20 -0800 Received: (qmail 29984 invoked by uid 98); 22 Feb 2005 12:40:05 -0000 Received: from dislists@updegrove.net by smeagol.skynet by uid 1008 with qmail-scanner-1.22-st-qms (f-prot: 4.4.8/3.14.13. Clear:RC:1(192.168.0.222):. Processed in 1.865632 secs); 22 Feb 2005 12:40:05 -0000 X-Antivirus-RickUp-Mail-From: dislists@updegrove.net via smeagol.skynet X-Antivirus-RickUp: 1.22-st-qms (Clear:RC:1(192.168.0.222):. Processed in 1.865632 secs Process 29977) Received: from unknown (HELO ?192.168.0.222?) (192.168.0.222) by updegrove.net with SMTP; 22 Feb 2005 12:40:02 -0000 Message-ID: <421B27DA.7060607@updegrove.net> Date: Tue, 22 Feb 2005 04:38:50 -0800 From: Rick Updegrove User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TST: smtp2.mc.surewest.net SNWK3 0.31-80 ip=64.30.97.117 Subject: apache php child pid exit signal Bus error (10) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 12:38:21 -0000 Hello, I just upgraded a lot of ports on a 4.9-STABLE machine and many php scripts will not run. phpinfo() works but most scripts kill apache and the following is on httpd-error.log [Tue Feb 22 04:30:33 2005] [notice] child pid 92055 exit signal Bus error (10) [Tue Feb 22 04:30:46 2005] [notice] child pid 92056 exit signal Bus error (10) httpd in free(): warning: junk pointer, too high to make sense [Tue Feb 22 04:30:47 2005] [notice] child pid 92105 exit signal Bus error (10) This is all on a FreeBSD 4.9-STABLE #0: Thu Oct 30 18:26:33 GMT 2003 apache+mod_ssl-1.3.33+2.8.22 The Apache 1.3 webserver with SSL/TLS functionality apache-ant-1.6.2 Java- and XML-based build tool, conceptually similar to mak php4-4.3.10_2 PHP Scripting Language (Apache Module and CLI) This server has an uptime of 466 days, 8:06, 4 users, load averages: 2.05, 2.21, 2.12 I tried to start apache with truss and all I can see is that the line below looks suspicious but other than that I have no ideas... How can I provide more information? How can I trace the httpd child processes? Should I? Before I put in the DNS request to switch over to the yet-untested-in-real-life backup server can someone tell me how to get apache php working again on this machine before all my users wake up? Thanks! stat("/var/run/httpd.pid",0xbfbff700) ERR#2 'No such file or directory' truss -o help.log /usr/local/sbin/apachectl startssl getpid() = 91339 (0x164cb) geteuid() = 0 (0x0) getppid() = 91337 (0x164c9) readlink("/etc/malloc.conf","J",63) = 1 (0x1) mmap(0x0,4096,0x3,0x1002,-1,0x0) = 671817728 (0x280b2000) break(0x80c1000) = 0 (0x0) break(0x80c2000) = 0 (0x0) stat("/var/mail/root",0xbfbff9d0) ERR#2 'No such file or directory' getuid() = 0 (0x0) geteuid() = 0 (0x0) getgid() = 0 (0x0) getegid() = 0 (0x0) open("/usr/local/sbin/apachectl",0x0,01002652540) = 4 (0x4) fcntl(0x4,0x0,0xa) = 10 (0xa) close(4) = 0 (0x0) fcntl(0xa,0x2,0x1) = 0 (0x0) sigaction(SIGINT,0x0,0xbfbff9c8) = 0 (0x0) sigaction(SIGINT,0xbfbff9c8,0xbfbff9b0) = 0 (0x0) sigaction(SIGINT,0x0,0xbfbff9c8) = 0 (0x0) sigaction(SIGINT,0xbfbff9c8,0x0) = 0 (0x0) sigaction(SIGQUIT,0x0,0xbfbff9b8) = 0 (0x0) sigaction(SIGQUIT,0xbfbff9b8,0xbfbff9a0) = 0 (0x0) sigaction(SIGQUIT,0x0,0xbfbff9b8) = 0 (0x0) sigaction(SIGQUIT,0xbfbff9b8,0x0) = 0 (0x0) sigaction(SIGTERM,0x0,0xbfbff9c8) = 0 (0x0) sigaction(SIGTERM,0xbfbff9c8,0xbfbff9b0) = 0 (0x0) sigaction(SIGWINCH,0x0,0xbfbff9b8) = 0 (0x0) sigaction(SIGWINCH,0xbfbff9b8,0xbfbff9a0) = 0 (0x0) sigaction(SIGSYS,0xbfbff538,0xbfbff520) = 0 (0x0) __getcwd(0xbfbff6a0,0x400) = 0 (0x0) sigaction(SIGSYS,0xbfbff520,0x0) = 0 (0x0) read(0xa,0x80bee20,0x3ff) = 1023 (0x3ff) read(0xa,0x80bee20,0x3ff) = 1023 (0x3ff) break(0x80c3000) = 0 (0x0) read(0xa,0x80bee20,0x3ff) = 1023 (0x3ff) stat("/sbin/limits",0xbfbff660) ERR#2 'No such file or directory' stat("/usr/sbin/limits",0xbfbff660) ERR#2 'No such file or directory' stat("/bin/limits",0xbfbff660) ERR#2 'No such file or directory' stat("/usr/bin/limits",0xbfbff660) = 0 (0x0) break(0x80c4000) = 0 (0x0) pipe() = 4 (0x4) fork() = 91405 (0x1650d) SIGNAL 20 close(5) = 0 (0x0) read(0x4,0xbfbff850,0x80) = 128 (0x80) read(0x4,0xbfbff850,0x80) = 103 (0x67) read(0x4,0xbfbff850,0x80) = 0 (0x0) close(4) = 0 (0x0) getpgrp() = 91337 (0x164c9) wait4(0xffffffff,0xbfbff7bc,0x2,0x0) = 91405 (0x1650d) break(0x80c5000) = 0 (0x0) fcntl(0x1,0x0,0xa) = 11 (0xb) open("/dev/null",0x601,0666) = 4 (0x4) close(1) = 0 (0x0) fcntl(0x4,0x0,0x1) = 1 (0x1) close(4) = 0 (0x0) fcntl(0x2,0x0,0xa) = 12 (0xc) close(2) = 0 (0x0) fcntl(0x1,0x0,0x2) = 2 (0x2) getrlimit(0x0,0xbfbff5f0) = 0 (0x0) setrlimit(0x0,0xbfbff5f0) = 0 (0x0) getrlimit(0x1,0xbfbff5f0) = 0 (0x0) setrlimit(0x1,0xbfbff5f0) = 0 (0x0) getrlimit(0x2,0xbfbff620) = 0 (0x0) setrlimit(0x2,0xbfbff620) = 0 (0x0) getrlimit(0x3,0xbfbff650) = 0 (0x0) setrlimit(0x3,0xbfbff650) = 0 (0x0) getrlimit(0x4,0xbfbff680) = 0 (0x0) setrlimit(0x4,0xbfbff680) = 0 (0x0) getrlimit(0x5,0xbfbff6b0) = 0 (0x0) setrlimit(0x5,0xbfbff6b0) = 0 (0x0) getrlimit(0x6,0xbfbff6e0) = 0 (0x0) setrlimit(0x6,0xbfbff6e0) = 0 (0x0) getrlimit(0x7,0xbfbff710) = 0 (0x0) setrlimit(0x7,0xbfbff710) = 0 (0x0) getrlimit(0x8,0xbfbff740) = 0 (0x0) setrlimit(0x8,0xbfbff740) = 0 (0x0) getrlimit(0x9,0xbfbff770) = 0 (0x0) setrlimit(0x9,0xbfbff770) = 0 (0x0) getrlimit(0xa,0xbfbff7a0) = 0 (0x0) setrlimit(0xa,0xbfbff7a0) = 0 (0x0) close(1) = 0 (0x0) fcntl(0xb,0x0,0x1) = 1 (0x1) close(11) = 0 (0x0) close(2) = 0 (0x0) fcntl(0xc,0x0,0x2) = 2 (0x2) close(12) = 0 (0x0) getegid() = 0 (0x0) geteuid() = 0 (0x0) getgid() = 0 (0x0) getuid() = 0 (0x0) setregid(0x0,0x0) = 0 (0x0) setreuid(0x0,0x0) = 0 (0x0) setregid(0x0,0x0) = 0 (0x0) setreuid(0x0,0x0) = 0 (0x0) read(0xa,0x80bee20,0x3ff) = 1023 (0x3ff) break(0x80c6000) = 0 (0x0) read(0xa,0x80bee20,0x3ff) = 1023 (0x3ff) read(0xa,0x80bee20,0x3ff) = 140 (0x8c) break(0x80c7000) = 0 (0x0) getegid() = 0 (0x0) geteuid() = 0 (0x0) getgid() = 0 (0x0) getuid() = 0 (0x0) setregid(0x0,0x0) = 0 (0x0) setreuid(0x0,0x0) = 0 (0x0) stat("/var/run/httpd.pid",0xbfbff700) ERR#2 'No such file or directory' setregid(0x0,0x0) = 0 (0x0) setreuid(0x0,0x0) = 0 (0x0) getegid() = 0 (0x0) geteuid() = 0 (0x0) getgid() = 0 (0x0) getuid() = 0 (0x0) setregid(0x0,0x0) = 0 (0x0) setreuid(0x0,0x0) = 0 (0x0) setregid(0x0,0x0) = 0 (0x0) setreuid(0x0,0x0) = 0 (0x0) fork() = 91500 (0x1656c) getpgrp() = 91337 (0x164c9) SIGNAL 20 wait4(0xffffffff,0xbfbff77c,0x2,0x0) = 91500 (0x1656c) break(0x80c8000) = 0 (0x0) write(1,0x80c7000,50) = 50 (0x32) exit(0x0) process exit, rval = 0