#26712 [Opn->Fbk]: Segfault using readfile() on certain sized files

From: Date: Thu, 25 Dec 2003 18:55:35 +0000
Subject: #26712 [Opn->Fbk]: Segfault using readfile() on certain sized files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52489@lists.php.net to get a copy of this message
ID: 26712 Updated by: iliaa@php.net Reported By: scotje at wwc dot edu -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: Linux 2.4 (Gentoo) PHP Version: 4.3.3 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#52489) next »