Re: SIGSEGV/SIGBUS when accessing after end of mmapped file; why it differs with GCC?

2013-02-14 Thread natris
    Od: "Konstantin Belousov" > On Wed, Feb 13, 2013 at 12:13:58PM -0500, Ryan Stone wrote: >> On Wed, Feb 13, 2013 at 11:18 AM, wrote: >> >> > Hello, >> > I am porting an application which maps files into the memory and works >> > directly with the memory. When doing this, it can happen that whe

SIGSEGV/SIGBUS when accessing after end of mmapped file; why it differs with GCC?

2013-02-13 Thread natris
Hello, I am porting an application which maps files into the memory and works directly with the memory. When doing this, it can happen that when someone resizes the file so that part of the previously mapped region is no longer backed by the file, synchronous signal is sent to the process which