From: megan dot boardman at rweinnogy dot com Operating system: UNIX 5.1 ALPHA PHP version: 4.3.5 PHP Bug Type: Reproducible crash Bug description: PHP Causing Apache to Abort?
Description: ------------ Since upgrading to PHP 4 have been experiencing problems with Apache 1.3.26 periodically appearing to crash. This has gradually gotten worse as we have worked our way up through the 4.x generation of PHP. Timeline goes as follows (based on messages in Apache error_log): - PHP 4.0.4pl1 gave occasional child XXXX exit signal Segmentation Fault (11). - PHP 4.1.2 gave no errors. - PHP 4.3.3, 4.3.4 and 4.3.5 gave frequent child XXXXX exit signal Abort (6) errors This PHP script is being used to submit requests to a database. This "aborting" behaviour appears to be causing the sending web browser to lose contact with Apache, and hence send the form post multiple times. The PHP script always appears to get as far as sending the submission to the database, but then falls over before sending the response back to the web server. Result -> multiple duplicate database submissions, occasional "Page Not Found" 505 errors in the web browser. Working with an Oracle 8 database and mod_fastcgi 2.2.12 Reproduce code: --------------- Cannot easily reproduce code, however general form is as follows: 1) Create object that contains contents of HTML page being constructed 2) Pass object by reference to function 3) Function builds database submission (based on variables that have been POSTed by a previous web form submision) and then sends an email, sets a cookie and builds HTML based on result from database. 4) Function ends and web page printed to screen - DB Submission always happens - Email always happens - Apache appears to fall over before the cookie gets set and before the HTML gets displayed NOTE: - Seems order invarient. - Methodology applied for earlier webforms posts, and works without multiple submissions. Expected result: ---------------- - DB Submission - Email to be sent - Cookie set in browser - Resultant HTML posted to screen Actual result: -------------- - DB submission - Email sent - Cookie & HTML display do NOT necessarily occur -- Edit bug report at http://bugs.php.net/?id=27978&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27978&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27978&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27978&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27978&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27978&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27978&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27978&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27978&r=support Expected behavior: http://bugs.php.net/fix.php?id=27978&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27978&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27978&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27978&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27978&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27978&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27978&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27978&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27978&r=float