From: mikemc-phpbug at contactdesigns dot com Operating system: Linux 2.4.x PHP version: 4.3.2 PHP Bug Type: Reproducible crash Bug description: Segmentation fault - related possibly to error handling functions
I have code that ran fine under 4.3.1 compiled with Apache like so: './configure' '--with-openssl' '--enable-memory-limit' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-apache=../apache_1.3.27' '--enable-inline-optimization' '--with-curl=/usr/local' '--with-mcrypt=/usr/local' It was compiled the same exact way with 4.3.2 except with a newer version of curl. This same code now causes a segmentation fault under 4.3.2: [Tue Jun 3 21:25:51 2003] [notice] child pid 12107 exit signal Segmentation fault (11) The offending code is related to a user defined error handler. My current workaround: remove the error handling code. I have isolated the problem to a single file and a function within that file. When I comment out the code that loads this file and calls that function, the segfaults stop and the code runs as normal: //include_once('lib/Error/Handler.php'); //CDS_Error_Handler_Init(); Furthermore, I have to call the function - loading the file alone does not cause the problem. This error handler is a very old version of our current one which has changed significantly and has no problems in 4.3.2. You can find the code here: http://caffeine.contactdesigns.com/~jolt/Handler.phps I hope this helps - I am in no way put in a bind because of this bug - it is old code and does nothing for us now. Just hoping to help PHP out in any way possible. I tried out RC1 on the developemntal servers, but as it is sometimes, you don't catch the bug until you go to production. -- Edit bug report at http://bugs.php.net/?id=24006&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24006&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24006&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24006&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24006&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24006&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24006&r=support Expected behavior: http://bugs.php.net/fix.php?id=24006&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24006&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24006&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24006&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24006&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24006&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24006&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24006&r=gnused