X-Spam-Check-By: sourceware.org Date: Fri, 14 Jul 2006 09:42:33 -0500 From: Brian Ford Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: 1.5.21s mmap error In-Reply-To: <20060714091601.GD8759@calimero.vinschen.de> Message-ID: References: <20060712165900 DOT GQ8759 AT calimero DOT vinschen DOT de> <20060712202215 DOT GS8759 AT calimero DOT vinschen DOT de> <20060713103431 DOT GA17383 AT calimero DOT vinschen DOT de> <20060714091601 DOT GD8759 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 Fri, 14 Jul 2006, Corinna Vinschen wrote: > Unfortunately the OS functions don't trigger the exception handler of > the application, so the standard way of doing this doesn't work here. That's what I figured. > There's no way around that except for wrapping each and every call to an > OS function manipulating application memory (here: ReadFile) with a test > for ERROR_NOACCESS and trying to resolve this by looking through the > list of mmaps. A retry if successful, I presume? How long is the list? I'm sure I'm not thinking hard enough, but the only ones that come to mind as likely candidates are read, write, send, recv and varients. > I'm not sure we really want to do that, certainly not for 1.5.21. If > you need this sort of functionality, switch off MAP_NORESERVE. Sure, I know how to work around it. I just wanted to point out that MAP_NORESERVE is somewhat broken. I'd bet there are other applications that will be caught by this bug. Shouldn't we just disable it until it works well enough for the application to at least not know we aren't quite compliant? I think a half working feature might be worse than a nonexistant one, especially when the feature is primarily a performance optimization. > As for EISDIR, that's fixed in CVS. EACCES is returned now. Thanks. -- Brian Ford Lead Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained crew... . -- 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/