From: [EMAIL PROTECTED]
Operating system: SuSE Linux 8.1
PHP version: 4.3.0
PHP Bug Type: Recode related
Bug description: Segmentation fault when build as extension
I recently compiled PHP with recode support (Version 3.6) without any
problems. But when I compile it as a shared extension, Apache (2.0.44)
fails on startup with a segmentation fault shortly after loading
librecode. Strace shows the following:
gettimeofday({1044530175, 187698}, NULL) = 0
time(NULL) = 1044530175
open("/usr/lib/php/extensions/no-debug-non-zts-20020429/recode.so",
O_RDONLY) = 15
read(15, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\f\0"...,
1024) = 1024
fstat64(15, {st_mode=S_IFREG|0755, st_size=10374, ...}) = 0
old_mmap(NULL, 10108, PROT_READ|PROT_EXEC, MAP_PRIVATE, 15, 0) =
0x4309d000
mprotect(0x4309f000, 1916, PROT_NONE) = 0
old_mmap(0x4309f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
15, 0x1000) = 0x4309f000
close(15) = 0
open("/etc/ld.so.cache", O_RDONLY) = 15
fstat64(15, {st_mode=S_IFREG|0644, st_size=58193, ...}) = 0
old_mmap(NULL, 58193, PROT_READ, MAP_PRIVATE, 15, 0) = 0x4355e000
close(15) = 0
open("/usr/lib/librecode.so.0", O_RDONLY) = 15
read(15, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320/\3"...,
1024) = 1024
fstat64(15, {st_mode=S_IFREG|0755, st_size=1331931, ...}) = 0
old_mmap(NULL, 1279084, PROT_READ|PROT_EXEC, MAP_PRIVATE, 15, 0) =
0x435d0000
mprotect(0x436db000, 185452, PROT_NONE) = 0
old_mmap(0x436db000, 188416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
15, 0x10b000) = 0x436db000
close(15) = 0
munmap(0x4355e000, 58193) = 0
brk(0x821e000) = 0x821e000
--- SIGSEGV (Segmentation fault) ---
Unfortunately I can't give you more information because debugging apache
via gdb results in a mysterios infinite loop.
--
Edit bug report at http://bugs.php.net/?id=22090&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22090&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22090&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22090&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22090&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22090&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22090&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22090&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22090&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22090&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22090&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22090&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22090&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22090&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22090&r=gnused