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 Thu, 12 Feb 2009 12:46:46 GMT

--- Comment #3 from Joe Orton <>  2009-02-12 04:46:45 PST ---
Well, shall we play component ping-pong?  Here is my shocking thesis:

If you mmap a file, truncate it, then try to read from a portion of the mapped
memory beyond the offset to which the file was truncated, then the kernel will
SIGBUS or SIGSEGV the process.

This is:

a) documented behaviour, see mmap(2) on any Unix, the mmap definition in POSIX,
or any book on Unix e.g. Stevens, and
b) observable behaviour, see comment 1.

and therefore, it is expected behaviour, and should be documented.

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