Article View: comp.sys.amiga.tech
Article #3441Bug in MANX 5.0?
From: Stefan Becker
Date: Fri, 04 May 1990 15:42
Date: Fri, 04 May 1990 15:42
28 lines
1439 bytes
1439 bytes
Hi there!
I've discovered a weird thing in Aztec-C V5.0a. If your program (with large
data model) contains >256KB uninitialized data (BSS hunk), it will run normal,
but when you call exit(), the machine guru's. I tried to follow the program
flow with an asm debugger, but I find only some strange code in exit(). Maybe
the linker is the proplem.
To 'test' this bug, try the following program:
/* Begin */
unsigned char t[262144]; /* == 256KB of unitilialized data */
main()
{
}
/* End */
Every value below 262144 (actually 262141) works OK, values greater as this
limit crashes the machine.
Any solutions?
Stefan
Mail : Stefan Becker, Holsteinstrasse 9, 5100 Aachen, West Germany +-------+
Phone : +49-241-505705 FIDO: 2:242/7.6 +---------------------+ Call |
InterNet: stefanb@s02.informatik.rwth-aachen.de | Place free for ad's now! |
UUCP : ..mcvax!unido!rwthinf!s02!stefanb +-----------------------------+
Technical Details
Message-ID:
<2885@rwthinf.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!rwthinf!cip-s02.informatik.rwth-aachen.de!stefanbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!rwthinf!cip-s02.informatik.rwth-aachen.de!stefanb From: stefanb@cip-s02.informatik.rwth-aachen.de (Stefan Becker) Newsgroups: comp.sys.amiga.tech Subject: Bug in MANX 5.0? Keywords: c bug manx Message-ID: <2885@rwthinf.UUCP> Date: 4 May 90 15:42:31 GMT Sender: news@rwthinf.UUCP Reply-To: stefanb@cip-s02.informatik.rwth-aachen.de (Stefan Becker) Organization: Informatik RWTH Aachen Lines: 28