delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/26/03:16:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
MIME-Version: 1.0
Subject: RE: g77 executable with largish array fails (solved?)
content-class: urn:content-classes:message
Date: Tue, 26 Oct 2004 17:16:18 +1000
Message-ID: <8ED2FA87C8ACC04192709688DDFD5F5F09B3BA@calttsv025.cal.riotinto.org>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Billinghurst, David \(CALCRTS\)" <david DOT billinghurst AT comalco DOT riotinto DOT com DOT au>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 26 Oct 2004 07:16:18.0752 (UTC) FILETIME=[B035CC00:01C4BB2B]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i9Q7GWDw014379

> From: David Billinghurst
>
> The following test case is distilled from the LAPACK timing test cases.  
> These used to work on some previous versions of cygwin/g77, but now fail.

I translated the problem into C using f2c.  It becomes:

$ cat labugc.c
int main() {
  static float a[39*1024*1024];
}

$ gcc -O0 -o labugc.exe labugc.c
$ ./labugc
C:\cygwin\usr\people\billingd\labugc.exe (3372): *** MapViewOfFileEx(0x728, in_h 0x728) failed, Win32 error 6


Aha, I says.  Looks like stack overflow.  Google pointed me to an work around
gcc -Wl,--stack,200000000 -O0 -o labugc.exe labugc.c

	David


NOTICE
This e-mail and any attachments are private and confidential and may contain privileged information. If you are not an authorised recipient, the copying or distribution of this e-mail and any attachments is prohibited and you must not read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.

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