delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/24/13:49:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Mon, 24 May 2010 19:48:50 +0200
Message-ID: <AANLkTinWlQqkMt_ZwzCOWlFxlBT3-iQDasGXuEvSTuOc@mail.gmail.com>
Subject: Large binaries crash with exception C0000005
From: Magnus Reftel <magnus DOT reftel AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

--001485f7725653af9e04875aa7ca
Content-Type: text/plain; charset=ISO-8859-1

Hi,

attaching a STC for the issue I reported last week about all large
binaries crashing with exception C0000005. The test case is a shell
script that generates and compiles a bunch of c files, and finally
links them together to one large exe file. Using the constants in the
file (NUM_1MB=263, NUM_1K=548, NUM_1B=545) generates a binary that is
263615343 bytes for me (using gcc 4.3.4 20090804 (release) 1), and
which crashes when started. Reducing NUM_1B by one generates a binary
that is also 263615343 bytes, but works. While they have the same
size, they are very different internally - "objdump -t" shows very
small differences between NUM1B=543 and 544, but very large
differences between 544 and 545. Anyone here who's familiar with how
exe files are handled that could take a look at this?

BR
Magnus

--001485f7725653af9e04875aa7ca
Content-Type: application/x-sh; name="build_big_exe.sh"
Content-Disposition: attachment; filename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CQlkb25lCgkJZWNobyAifTsiCgkp
ID4gJGV4dHJhX2ZpbGVfbmFtZQpmaQoKKAoJZm9yIGkgaW4gYHNlcSAkTlVN
XzFNQmAKCWRvCgkJZWNobyAiZXh0ZXJuIGNoYXIqIGJsb2F0XyRpOyIKCWRv
bmUKCWVjaG8gIiNpbmNsdWRlIDxzdGRpby5oPiIKCWVjaG8gJ2ludCBtYWlu
KCl7cHJpbnRmKCJva1xuIik7cmV0dXJuIDA7fScKKSA+IG1haW4uYwoKZWNo
byAiQnVpbGRpbmciCmdjYyAtYyAkZXh0cmFfZmlsZV9uYW1lCmdjYyAtYyBt
YWluLmMKCmVjaG8gIkxpbmtpbmciCmdjYyBtYWluLm8gYGJhc2VuYW1lICRl
eHRyYV9maWxlX25hbWUgLmNgLm8gJGJsb2F0X29ianMgLW8gYmlnLmV4ZQo=


--001485f7725653af9e04875aa7ca
Content-Type: text/plain; charset=us-ascii

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--001485f7725653af9e04875aa7ca--

- Raw text -


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