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 Thu, 12 Feb 2009 12:46:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46688





--- Comment #3 from Joe Orton <jorton@redhat.com>  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: 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