This is the mail archive of the
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.firstname.lastname@example.org>
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: 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,
In other words, you can't mmap() more anonymous memory as your
pagefile has room for.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:email@example.com
Red Hat, Inc.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html