X-Spam-Check-By: sourceware.org
Date: Sun, 7 Jan 2007 11:58:44 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.0 CVS mmap failure
Message-ID: <20070107105844.GB10586@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.CYG.4.58.0701041715140.3520@PC1163-8460-XP.flightsafety.com> <20070105095752.GB28768@calimero.vinschen.de> <Pine.CYG.4.58.0701050959060.2704@PC1163-8460-XP.flightsafety.com> <Pine.CYG.4.58.0701051054010.280@PC1163-8460-XP.flightsafety.com> <Pine.CYG.4.58.0701051144030.2880@PC1163-8460-XP.flightsafety.com> <20070105182234.GC12776@calimero.vinschen.de> <Pine.CYG.4.58.0701051237090.2880@PC1163-8460-XP.flightsafety.com> <20070105192302.GD12776@calimero.vinschen.de> <Pine.CYG.4.58.0701051513500.2880@PC1163-8460-XP.flightsafety.com> <20070106154519.GA19640@ns1.anodized.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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

