Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 16 Jul 2004 16:45:45 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mmap bug on Windows 9x Message-ID: <20040716144545.GB31158@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Jul 16 09:12, Anton Ertl wrote: > Anton Ertl wrote: > > > > On Windows 9x/ME different calls to mmap sometimes produce the same > > address (without that memory being unmapped in the meantime, at least > > not by application code). > > You find a condensed test program below. > > On Windows ME with cygwin1.dll 1.5.10 it outputs: > > try mmap($0, $40000, ..., MAP_ANON, ...); success, address=$833ca000 > try mmap($8340b000, $40000, ..., MAP_ANON, ...); success, address=$833ca000 > > Note that the result addresses are the same. Thanks for the testcase! Wow, I'm impressed. Three serious bug reports in two days which all had a simple testcase(tm) attached! *Sob*, I'm moved to tears. Anyway, I found the cause of that problem. For some reason (moon phase or so) the mmap code didn't marked pages as used when running under 9x/Me. This could only be observed under a specific condition of mmapping anonymous private pages. I've applied a fix to the repository. Should be in the next developers snapshot from http://cygwin.com/snapshots/ Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/