delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/05/11:17:47

X-Spam-Check-By: sourceware.org
Date: Fri, 5 Jan 2007 10:17:19 -0600
From: Brian Ford <Brian DOT Ford AT FlightSafety DOT com>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.0 CVS mmap failure
In-Reply-To: <20070105095752.GB28768@calimero.vinschen.de>
Message-ID: <Pine.CYG.4.58.0701050959060.2704@PC1163-8460-XP.flightsafety.com>
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0701041715140 DOT 3520 AT PC1163-8460-XP DOT flightsafety DOT com> <20070105095752 DOT GB28768 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
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

On Fri, 5 Jan 2007, Corinna Vinschen wrote:
> On Jan  4 17:17, Brian Ford wrote:
> > $ uname -a
> > CYGWIN_NT-5.1 PC1163-8460-XP 1.7.0(0.161/4/2) 2007-01-04 15:51 i686
> > unknown unknown Cygwin
> >
> > $ ./mmaptest.exe
> > CloseHandle(fh_disk_file.get_handle ()) 0x738 failed void* mmap64(void*,
> > size_t, int, int, int, _off64_t):1275, Win32 error 6
> > mmap: Cannot allocate memory
> >
> > STC attached.  Thanks.
>
> Hmm, STCs are nice, but this STC works fine for me, reproducibly:
>
> $ ./mmaptest
> test passed
>
> Something's missing in the picture...

Ok, after further investigation, this is a /3GB boot.ini flag interaction.
Unfortunately, this is a critical flag for our application, so all our
machines are configured this way.  That is why I failed to realize its
significance before.

I understand if this is now too much of an obscure case for you to be
interested in.  If so, I'll try to look into it soon on my own.  I suspect
it must have been related to your MEM_TOP_DOWN change.

> Btw., just a sidenote:
> > #include <strings.h>
>
> You should rather #include <string.h> here.  strings.h is not the right
> include for the standard string manipulation functions, only for a
> couple of legacy BSD functions.  See
> http://www.opengroup.org/onlinepubs/009695399/basedefs/strings.h.html

Actually, I needed both.  At least on Solaris, strcasecmp is in
strings.h. strcpy and others are in string.h.

Thanks for looking into the matter.  I appreciate your time.

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

- Raw text -


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