You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/03/31 17:00:08 UTC

DO NOT REPLY [Bug 46688] Child segfault when mmaped file truncated

https://issues.apache.org/bugzilla/show_bug.cgi?id=46688





--- Comment #6 from Greg Ames <gr...@apache.org>  2009-03-31 08:00:04 PST ---
I believe this and other bugs we've seen with truncated files could be solved
by switching from stat() followed by open() to open() followed by fstat(). 
That lets us work with the same version of the file throughout a request, and
makes it easy to detect a zero length file and abort before any harm is done. 
It also saves the kernel from having to do a path walk for the stat(), a
potential performance/scalability improvement.

Unfortunately it's not clear how to implement this change in httpd because we
use the finfo early and depend on the handlers to open the file.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org