From: djones at xtreme-eda dot com Operating system: FreeBSD 4.8-RELEASE PHP version: 4.3.4 PHP Bug Type: Reproducible crash Bug description: fpassthru() segfaults on certain files
Description: ------------ PHP configuration: http://www.inode.org/test.php I am running an application that sends files to the user using fpassthru(). With certain files, Apache exits with signal 11. There does not seem to be any distinguishing characteristic between files that are sent OK and files that are not. Reproduce code: --------------- See http://www.inode.org/passthru.php_ The trailing underscore prevents execution so you can view the source. The code contains paths to two files; one of which can be transferred and one that cannot. You may transfer these files to your system to attempt reproduction. (Instructions for said transfer are provided in passthru.php) Running the BAD file from the PHP command line appears to work correctly so this might be a PHP-Apache interaction issue. Expected result: ---------------- With the GOOD file: you can save the document and view it. With the BAD file: I would expect to be able to save it too. Actual result: -------------- With the BAD file: Apache segfaults signal 11. I'm not sure how I can get a GDB backtrace from a running Apache instance. -- Edit bug report at http://bugs.php.net/?id=26846&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26846&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26846&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26846&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26846&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26846&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26846&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26846&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26846&r=support Expected behavior: http://bugs.php.net/fix.php?id=26846&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26846&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26846&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26846&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26846&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26846&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26846&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26846&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26846&r=float