This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: 1.1.3: mmap() returns unusable memory segments: segm fault
- From: Corinna Vinschen <cygwin at cygwin dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Thu, 20 Dec 2001 21:34:35 +0100
- Subject: Re: 1.1.3: mmap() returns unusable memory segments: segm fault
- References: <20011106140522.H2965@cygbert.vinschen.de> <Pine.WNT.4.33.0112201903550.144-200000@erde.concept.de>
On Thu, Dec 20, 2001 at 07:40:58PM +0100, Lothar Linhard wrote:
> Hi Corinna,
>
> With cygwin's mmap.cc I guess, I cannot map more than 197 MB ?!
> Is that correct?
>
> In my application I always call mmap(NULL,size,PROT_RW,...)
> here is what I get:
> [...]
> mmap segment[12]: 0x288d0000...0x2c8cffff = 65536 kB
>
> Then, when I try to map another 16384 kB or more, I get
> "Permission denied".
>
> I tried cygwin.dll 1.3.4-2 and 1.3.6-6.
> Just in case you don't konw or if you want to comment it.
Quoted from MSDN: "Windows NT/2000/XP: If the file-mapping object is
backed by the paging file (hFile is INVALID_HANDLE_VALUE), the paging
file must be large enough to hold the entire mapping. If it is not,
MapViewOfFile fails."
In other words, you can't mmap() more anonymous memory as your
pagefile has room for.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/