This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Large binaries crash with exception C0000005


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

Attachment: build_big_exe.sh
Description: Bourne shell script

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]