#26712 [Com]: Segfault using readfile() on certain sized files
| From: | php dot net at xemaps dot com | Date: | Wed, 21 Jul 2004 23:49:20 +0000 |
| Subject: | #26712 [Com]: Segfault using readfile() on certain sized files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63305@lists.php.net to get a copy of this message | ||
ID: 26712
Comment by: php dot net at xemaps dot com
Reported By: scotje at wwc dot edu
Status: No Feedback
Bug Type: Apache2 related
Operating System: Linux 2.4 (Gentoo)
PHP Version: 4.3.3
New Comment:
Happened to me with PHP 4.3.4 / Apache 2.0.48 and a file size of
exactly 48kb. Adding a single byte to it worked around this
segmentation fault.
Previous Comments:
------------------------------------------------------------------------
[2004-01-01 20:47:44] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-12-25 13:55:35] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-12-24 14:20:17] scotje at wwc dot edu
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 this bug report at http://bugs.php.net/?id=26712&edit=1