delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/20/15:36:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 20 Dec 2001 21:34:35 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: 1.1.3: mmap() returns unusable memory segments: segm fault
Message-ID: <20011220213435.X21898@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20011106140522 DOT H2965 AT cygbert DOT vinschen DOT de> <Pine DOT WNT DOT 4 DOT 33 DOT 0112201903550 DOT 144-200000 AT erde DOT concept DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.WNT.4.33.0112201903550.144-200000@erde.concept.de>; from lothar@concept.de on Thu, Dec 20, 2001 at 07:40:58PM +0100

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019