From:             mbrennen at fni dot com
Operating system: MDK 8.2 (Linux 2.4)
PHP version:      4.3.2
PHP Bug Type:     Reproducible crash
Bug description:  Immediate segfault on startup

The following bug is reproduceable on two different systems.  As soon as
the process starts it cores.  A gdb stack trace and the tail of an strace
of the bug is below, as is the php configure script options.  The same
configuration works fine with 4.3.0.


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 24937)]
0x082c1b9d in nothrow ()
(gdb) 
(gdb) bt
#0  0x082c1b9d in nothrow ()
#1  0x4000b616 in _dl_map_object_deps () at dl-deps.c:498
#2  0x00000007 in ?? ()
Cannot access memory at address 0x8


....
lstat64("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) =
0
open("/dev/null", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbfffd110) = -1 ENOTTY (Inappropriate ioctl
for device)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
lstat64("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) =
0
open("/dev/null", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbfffd120) = -1 ENOTTY (Inappropriate ioctl
for device)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
brk(0x838a000)                          = 0x838a000
brk(0x838d000)                          = 0x838d000
open("/var/log/httpd/error_log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
fcntl64(3, F_DUPFD, 15)                 = 15
close(3)                                = 0
fcntl64(15, F_GETFL)                    = 0x401 (flags O_WRONLY|O_APPEND)
fstat64(15, {st_mode=S_IFREG|0640, st_size=2001079, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
_llseek(15, 0, [0], SEEK_CUR)           = 0
dup2(15, 2)                             = 2
brk(0x838e000)                          = 0x838e000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40021000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
brk(0x838f000)                          = 0x838f000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40021000, 4096)                = 0
open("/usr/share/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=173408, ...}) = 0
old_mmap(NULL, 173408, PROT_READ, MAP_PRIVATE, 3, 0) = 0x409ce000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) ---



### configuration script

./configure \
 --with-apache=/usr/local/apache_1.3.27 \
 --with-imap \
 --with-imap-ssl \
 --with-gd \
 --with-mysql=/usr \
 --with-solid=/usr/local/solidSDK351 \
 --with-exec-dir=/var/lib/php \
 --with-java=/usr/local/jdk \
 --enable-unified-odbc \
 --enable-safe-mode=yes \
 --enable-track-vars \
 --enable-ftp \
 --with-expat-dir=/usr \
 --with-xml \
 --with-dom=/usr \
 --with-dom-xslt=/usr \
 --with-dom-exslt=/usr \
 --enable-xslt \
 --with-xslt-sablot=/usr \
 --with-sablot-js=/usr \
 --with-zlib \
 --with-ldap \
 --with-openssl \
 --disable-debug \
 --disable-debugger \
 --with-config-file-path=/etc/httpd/conf

-- 
Edit bug report at http://bugs.php.net/?id=23906&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23906&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23906&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23906&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23906&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23906&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23906&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23906&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23906&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23906&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23906&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23906&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23906&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23906&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23906&r=gnused

Reply via email to