delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/09/07:05:08

X-Spam-Check-By: sourceware.org
Date: Tue, 9 Jan 2007 04:04:45 -0800
From: Christopher Layne <clayne AT anodized DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.0 CVS mmap failure
Message-ID: <20070109120445.GC19638@ns1.anodized.com>
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0701051054010 DOT 280 AT PC1163-8460-XP DOT flightsafety DOT com> <Pine DOT CYG DOT 4 DOT 58 DOT 0701051144030 DOT 2880 AT PC1163-8460-XP DOT flightsafety DOT com> <20070105182234 DOT GC12776 AT calimero DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 58 DOT 0701051237090 DOT 2880 AT PC1163-8460-XP DOT flightsafety DOT com> <20070105192302 DOT GD12776 AT calimero DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 58 DOT 0701051513500 DOT 2880 AT PC1163-8460-XP DOT flightsafety DOT com> <20070106154519 DOT GA19640 AT ns1 DOT anodized DOT com> <20070107105844 DOT GB10586 AT calimero DOT vinschen DOT de> <20070109090415 DOT GA19638 AT ns1 DOT anodized DOT com> <20070109115643 DOT GD23638 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20070109115643.GD23638@calimero.vinschen.de>
User-Agent: Mutt/1.5.11
X-Assp-Spam-Prob: 0.00000
X-Assp-Whitelisted: Yes
X-Assp-Envelope-From: clayne AT ns1 DOT anodized DOT com
X-Assp-Intended-For: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Real quick here and I'll follow up tomorrow. I don't get SIGSEGV
in my application ever. I get an error back from mmap saying it
cannot allocate memory when i'm simply trying to open a small
file! The original events ere posted up in that first part of
the strace - which is unmodified original behavior. Things did not
start happening UNTIL the MEM_TOP_DOWN change.

My code does not do ANYTHING out of the ordinary that it wasn't
doing before and working completely fine with.

On Tue, Jan 09, 2007 at 12:56:43PM +0100, Corinna Vinschen wrote:
> > Yet the latter works for me, whereas the former results in mmap()
> > failures for files smaller than the page size.
> 
> The latter works for you because it's wrong.  Since it uses 64K, mmap
> thinks it doesn't have to add filler pages.  So adding the filler pages
> can't go wrong.  So you can access your file, but you get the SEGV
> exaclty after the last 4K page of the file, not at the end of the
> expected 64K page.
> 
> 
> Corinna

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019