#26712 [NEW]: Segfault using readfile() on certain sized files
| From: | scotje at wwc dot edu | Date: | Wed, 24 Dec 2003 19:20:17 +0000 |
| Subject: | #26712 [NEW]: Segfault using readfile() on certain sized files | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-52468@lists.php.net to get a copy of this message | ||
From: scotje at wwc dot edu
Operating system: Linux 2.4 (Gentoo)
PHP version: 4.3.3
PHP Bug Type: Apache2 related
Bug description: Segfault using readfile() on certain sized files
Description:
------------
I believe this is probably a duplicate of bug #24301 but since I have
additional information but am unable to reopen that bug, I'm added a new
report. Feel free to mark this as a dupe and reopen the other bug if that
is appropriate.
Basically, Apache2/PHP segfault with no warning or error message when you
try to use readfile() on a file exactly 16k (16384 bytes) in size. The
original submitter of #24301 reported the problem with 64k files as well.
When I padded the file out to 21k, the problem disappeared. There was
also no problem when I moved back to Apache 1.3.x. I understand
Apache2/mod_php is not recommended yet (or at least didn't used to be) so
I just want you guys to be aware of this bug. I'm not expecting an
immediate fix or anything. :)
Thanks!
-Jesse
--
Edit bug report at http://bugs.php.net/?id=26712&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26712&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26712&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26712&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26712&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26712&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26712&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26712&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26712&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26712&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26712&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26712&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26712&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26712&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26712&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26712&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26712&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26712&r=float