httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46688] Child segfault when mmaped file truncated
Date Tue, 31 Mar 2009 15:00:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46688





--- Comment #6 from Greg Ames <gregames@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


Mime
View raw message