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

2013-02-15 Thread Dimitry Andric
On 2013-02-14 15:04, nat...@centrum.cz wrote: 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: ... Machine in question runs amd64 FreeBSD 9.1-RC2, but this has also ... You did not specified anything about versi

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

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

2013-02-13 Thread 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 when someone > > resizes the file so tha

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

2013-02-13 Thread Ryan Stone
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 when someone > resizes the file so that part of the previously mapped region is no longer > backed by the file

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