1.7.0 CVS mmap failure

Christopher Layne clayne@anodized.com
Tue Jan 9 12:04:00 GMT 2007


Real quick here and I'll follow up tomorrow. I don't get SIGSEGV
in my application ever. I get an error back from mmap saying it
cannot allocate memory when i'm simply trying to open a small
file! The original events ere posted up in that first part of
the strace - which is unmodified original behavior. Things did not
start happening UNTIL the MEM_TOP_DOWN change.

My code does not do ANYTHING out of the ordinary that it wasn't
doing before and working completely fine with.

On Tue, Jan 09, 2007 at 12:56:43PM +0100, Corinna Vinschen wrote:
> > Yet the latter works for me, whereas the former results in mmap()
> > failures for files smaller than the page size.
> 
> The latter works for you because it's wrong.  Since it uses 64K, mmap
> thinks it doesn't have to add filler pages.  So adding the filler pages
> can't go wrong.  So you can access your file, but you get the SEGV
> exaclty after the last 4K page of the file, not at the end of the
> expected 64K page.
> 
> 
> Corinna

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list