From: thh at tshw dot de Operating system: Linux (Scientific & Ubuntu) PHP version: 5.2.5 PHP Bug Type: Reproducible crash Bug description: Segmentation fault when methods are playing "ping-pong"
Description: ------------ Today we had an annoying issue with a complex class model, of which two classes happened to call each others method in a never ending loop. The result was a "Segmentation fault" providing no further information about the source of the error. PHP probably should handle those (programming) errors itself providing a more detailed error message. I could reproduce this error on a Scientific Linux with PHP 5.1.2 (cgi) as well as PHP 5.2.5 (cgi) and on Ubuntu Linux with PHP 5.2.3 (cli). Reproduce code: --------------- http://nopaste.tshw.de/1207246418545df/ Expected result: ---------------- Actually it really is a programmer's error. But it was really hard to identify because of the annoyingly short message "Segmentation fault". It would even have helped to get a "call stack overflow" instead. Actual result: -------------- Segmentation fault (I did not append a backtrace, because I think the problem is very obvious and I'd hate to compile PHP on a binary-based distribution. If you need it, tell me and I'll try to get you one.) -- Edit bug report at http://bugs.php.net/?id=44632&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44632&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44632&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44632&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44632&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44632&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44632&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44632&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44632&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44632&r=support Expected behavior: http://bugs.php.net/fix.php?id=44632&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44632&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44632&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44632&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44632&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44632&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44632&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44632&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44632&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44632&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44632&r=mysqlcfg