From: scottmacvicar at ntlworld dot com
Operating system: RHEL 4
PHP version: 5.2.1
PHP Bug Type: Reproducible crash
Bug description: zend_strtod.c threading issue
Description:
------------
Recently upgraded to PHP 5.2.1 from PHP 5.1.6 and we started to see a
series of crashes every few hundred thousand requests, couldn't isolate
this to a specific section of code so I think its a concurrency problem.
I managed to catch a core file from the past few and in each case the
backtrace revealed that the problem is zend_strod. This is just an excerpt
the rest of the backtrace are just apache internals.
Thread 27 (process 14353):
#0 0x008b07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1 0x0013bc46 in kill () from /lib/tls/libc.so.6
No symbol table info available.
#2 0x0807e90d in sig_coredump (sig=14332) at mpm_common.c:1170
No locals.
#3 <signal handler called>
No symbol table info available.
#4 Balloc (k=1953067823) at /www/src/php-5.2.1/Zend/zend_strtod.c:460
x = Variable "x" is not available.
We're seeing this problem on both of our web servers, I can recompile one
of the boxes in debug mode if that would help.
The only change I can see of recent was a reimplementation of the code to
a BSD license.
--
Edit bug report at http://bugs.php.net/?id=40545&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40545&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40545&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40545&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40545&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40545&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40545&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40545&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40545&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40545&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40545&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40545&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40545&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40545&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40545&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40545&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40545&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40545&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40545&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40545&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40545&r=mysqlcfg