Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 19 Mar 2002 11:57:39 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: mmap of large amount returns invalid pointer
Message-ID: <20020319115739.U29574@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <20020314132223.N29574@cygbert.vinschen.de> <15508.58801.823944.720766@asv-058.sjc.ca.bbnow.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <15508.58801.823944.720766@asv-058.sjc.ca.bbnow.net>
User-Agent: Mutt/1.3.22.1i

On Sun, Mar 17, 2002 at 10:51:29AM -0800, Stephen Weeks wrote:
> 
> Corinna:
> > Anyway, I've checked in a patch.  It now checks if VirtualProtect
> > failed and then mmap() also fails.  Try the next developers snapshot,
> > please.
> 
> Thanks for the fix.  I tried the 2002-Mar-16 snapshot and the test
> program works correctly.  However, a slightly modified program that
> munmaps the memory in the parent process and then exits does not work
> reliably.  I have included the test case and an strace of a failed run

I'm on vacation currently so I'm not really inclined to test that
by myself.  Could you please describe what happens in the error case
in plain English?  I see that there could be a timing problem in
fork() but I'd like to read how the error looks like.

Thanks,
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/

