Bug #14634 Updated: php causes iplanet to crash
| From: | yohgaki@php.net | Date: | Thu, 20 Dec 2001 23:52:59 +0000 |
| Subject: | Bug #14634 Updated: php causes iplanet to crash | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74645@lists.php.net to get a copy of this message | ||
ID: 14634
Updated by: yohgaki
Reported By: ian@ians.net
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: Solaris 8
PHP Version: 4.1.0
New Comment:
Could you send backtrace?
Refer to following URL for getting backtrace with gdb.
http://bugs.php.net/bugs-generating-backtrace.php
--
Yasuo Ohgaki
Previous Comments:
------------------------------------------------------------------------
[2001-12-20 18:20:14] ian@ians.net
using either 4.1.0 or 4.0.6 as NSAPI on iplanet 6.0sp1 on solaris 8, iplanet crashes whenever
accessing any php scripts. iplanet logs:
catastrophe ( 360): Server crash detected (signal SIGSEGV)
info ( 360): Crash occurred in NSAPI SAF php4_execute
info ( 360): Crash occurred in function _pthread_mutex_lock from module /usr/lib/libthread.so.1
this behavior occurs whenever any php script is run, including things as simple as the following
(this is the o.php script that's called in the truss below):
<?php
phpinfo();
?>
i compiled php using:
env \
CC=gcc \
CXX=g++ \
CFLAGS="-O2 -I/local/include -I/local/include/openssl -I/local/include/ucd-snmp
-I/local/include/c-client" \
CPPFLAGS="-I/local/include" \
LDFLAGS="-L/local/lib -R/local/lib -L/local/ssl/lib -R/local/ssl/lib -L/local/lib/c-client
-R/local/lib/c-client" \
TMPDIR="/tmp" \
./configure \
--prefix=/local \
--sysconfdir=/etc \
--localstatedir=/var \
--with-config-file-path=/etc/php/ \
--with-nsapi=/var/iplanet/servers \
--with-openssl=/local \
--with-db3=/local/BerkeleyDB-3.2 \
--with-imap-ssl=/local \
--with-imap=/local \
--with-ldap=/local \
--with-zlib=/usr \
--enable-sysvshm \
--enable-sysvsem \
--enable-track-vars \
--enable-force-cgi-redirect \
--with-gettext \
--with-regex=system
a truss of the web server shows the following:
accept(8, 0xFE2D1B58, 0xFE2D1AEC, 1) = 21
lwp_sema_post(0xFE291E30) = 0
lwp_sema_wait(0xFE291E30) = 0
lwp_mutex_wakeup(0xFEB955B0) = 0
lwp_mutex_lock(0xFEB955B0) = 0
getsockname(21, 0x0049E4D0, 0xFB6D1B8C, 1) = 0
read(21, " G E T / o . p h p H".., 8191) = 273
poll(0xFCC07A48, 0, 10) = 0
stat64("/export/http/i001", 0xFB6D13C0) = 0
stat64("/export/http/i001/o.php", 0xFB6D1450) = 0
Incurred fault #6, FLTBOUNDS %pc = 0xFEB6B73C
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000005
Received signal #11, SIGSEGV [caught]
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000005
sigprocmask(SIG_SETMASK, 0xFEB8EFE8, 0x00000000) = 0
sigaction(SIGSEGV, 0xFB6D0E08, 0xFB6D0F08) = 0
time() = 1008890166
getpid() = 456 [359]
write(9, " [ 2 0 / D e c / 2 0 0 1".., 83) = 83
time() = 1008890166
getpid() = 456 [359]
write(9, " [ 2 0 / D e c / 2 0 0 1".., 78) = 78
time() = 1008890166
getpid() = 456 [359]
write(9, " [ 2 0 / D e c / 2 0 0 1".., 120) = 120
sigprocmask(SIG_SETMASK, 0xFEB9ADB8, 0xFB6D0E10) = 0
sigprocmask(SIG_SETMASK, 0xFB6D0E10, 0x00000000) = 0
sigprocmask(SIG_SETMASK, 0xFEB9ADB8, 0xFB6D0EB0) = 0
sigprocmask(SIG_SETMASK, 0xFB6D0EB0, 0x00000000) = 0
sigprocmask(SIG_SETMASK, 0xFEB9ADB8, 0x00000000) = 0
sigprocmask(SIG_SETMASK, 0xFEB9ADB8, 0xFB6D10C0) = 0
lwp_kill(13, SIGSEGV) = 0
sigprocmask(SIG_SETMASK, 0xFB6D10C0, 0x00000000) = 0
setcontext(0xFB6D1010)
Received signal #11, SIGSEGV [caught]
siginfo: SIGSEGV pid=456 uid=2147483042 code=-1
sigprocmask(SIG_SETMASK, 0xFEB8EFE8, 0x00000000) = 0
sigaction(SIGSEGV, 0xFB6D1150, 0x00000000) = 0
sigprocmask(SIG_SETMASK, 0xFEB9ADB8, 0x00000000) = 0
setcontext(0xFB6D1010)
Incurred fault #6, FLTBOUNDS %pc = 0xFEB6B73C
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000005
Received signal #11, SIGSEGV [default]
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000005
*** process killed ***
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14634&edit=1