X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 23 Mar 2011 16:44:21 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Broken autoconf mmap test Message-ID: <20110323154421.GN31220@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4D8668C6 DOT 8020500 AT cornell DOT edu> <4D890D95 DOT 6090302 AT redhat DOT com> <4D891A55 DOT 6050601 AT cornell DOT edu> <20110323091921 DOT GB10657 AT calimero DOT vinschen DOT de> <4D89D4AA DOT 6070903 AT cornell DOT edu> <20110323132622 DOT GM31220 AT calimero DOT vinschen DOT de> <4D89FEC7 DOT 3000107 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4D89FEC7.3000107@cornell.edu> User-Agent: Mutt/1.5.21 (2010-09-15) 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 Mar 23 10:08, Ken Brown wrote: > On 3/23/2011 9:26 AM, Corinna Vinschen wrote: > >Btw., I just experimented with another flag which has not been exposed > >to the Win32 API, and which is not officially documented. It's called > >AT_EXTENDABLE_FILE and allows to specify a view which is bigger than > >the filesize. I tried this on W7-64, and it works. Just not exactly > >as we need it. The trailing pages are not commited but only reserved, > >so accessing them still results in a SEGV. And while commiting them > >allows to run the autoconf testcase, it also changes the filesize of > >the file on disk. Oh well. > > Is the scenario in which the autoconf test fails likely to occur in > practice? I wonder if it could be responsible for some of the > mysterious crashes that people have reported on 64-bit systems. Usually it shouldn't. While you can write into a mmaped area beyond EOF up to the end of the last page, it doesn't make a lot of sense. The data will never show up in the mapped file. I have no idea if there are applications out there which rely on this crude behaviour. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple