delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/06/06:32:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 6 May 2003 12:31:53 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: A problem with mmap on Win98
Message-ID: <20030506103153.GF6266@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3EB76D55 DOT 7040503 AT coppice DOT org>
Mime-Version: 1.0
In-Reply-To: <3EB76D55.7040503@coppice.org>
User-Agent: Mutt/1.4.1i

On Tue, May 06, 2003 at 04:07:49PM +0800, Steve Underwood wrote:
> I am using the current version of cygwin (1.3.22). When I build gcc to 
> cross-compile for the TI MSP430 MCUs the result works OK on 2000 and XP 
> machines. On some Win98 and Me machines it works, but on others it 
> crashes with a segmentation violation. I traced this to a problem with 
> anonymous mmap. If I keep calling mmap on the problem machines it keeps 
> returning the same memory pointer twice. If I patch GCC to check for a 
> repeat of the same memory pointer, and allocate again until it gets a 
> different pointer, my GCC build seems to run OK on these problem machines.
> 
> The results are not random. They follow a pattern. If I allocate 65536 
> byte blocks, I consistently get the same pointer twice, before I get a 
> pointer 65536 bytes greater. If I allocate 16384 byte blocks, I get four 
> pointers incrementing by 0x4000 each. Then I get a repeat of the fourth 
> pointer. Then I get four more properly incrementing pointers.

Weird, especially that it only happens on 9x...

> I tried downloading the source code for cygwin, to build it, and do a 
> little debugging of my own. However, the make files build most of the 
> code, and then fail saying there is no rule to make 
> /usr/lib/w32api/Makefile needed by /lib/. The make dependancies are a 
> little intertwined, and I gave up trying to find the cause of this problem.

Did you build in the source dir?  Don't do this.  For more info see
http://cygwin.com/contrib.html

> Can anyone help?

Please create a *brief* testcase in C which encounters the above mmap
problem and send it to this list.  I'll have a look, then.

Did I mention that the testcase should be as short as possible? 


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                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/

- Raw text -


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