php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26712 Segfault using readfile() on certain sized files
Submitted: 2003-12-24 14:20 UTC Modified: 2004-01-01 20:47 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:2 (50.0%)
From: scotje at wwc dot edu Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.3 OS: Linux 2.4 (Gentoo)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: scotje at wwc dot edu
New email:
PHP Version: OS:

 

 [2003-12-24 14:20 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-01 20:47 UTC] 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.


 [2004-07-22 01:49 UTC] php dot net at xemaps dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 19:01:28 2024 UTC