X-Spam-Check-By: sourceware.org Date: Sun, 7 Jan 2007 11:58:44 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7.0 CVS mmap failure Message-ID: <20070107105844.GB10586@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070105095752 DOT GB28768 AT calimero DOT vinschen DOT de> <20070105182234 DOT GC12776 AT calimero DOT vinschen DOT de> <20070105192302 DOT GD12776 AT calimero DOT vinschen DOT de> <20070106154519 DOT GA19640 AT ns1 DOT anodized DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070106154519.GA19640@ns1.anodized.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 6 07:45, Christopher Layne wrote: > (warning a bunch of strace, scroll wide). > > So I haven't been able to totally nail anything down on this issue due > to the incredible complexity of Cygwin's mmap interface. Lots of comments throughout the file... > This is 2 simple mmap()s in succession, 1st is 46121 bytes, 2nd is 111 bytes. > Both opened read/write. The second mmap always fails. This is the current > snapshot code. > > In the 2nd strace, I changed the mmap logic to stop trying to align the 1st > map on a 4k granularity boundary and just allocate a single map w/ 64k of > left over dead space (what I would typically expect in posix land). I also > added more debug info at various stages to try and figure things out. When > changing it to use 64k period, the mmaps are both successful - which is good, > but VirtualProtect always fails, no matter what, on unmap. The strace is rather useless without the (hopefully very short) source code of the (hopefully very small) testcase. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/