httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46688] Child segfault when mmaped file truncated
Date Tue, 31 Mar 2009 15:00:08 GMT

--- Comment #6 from Greg Ames <>  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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message