[comp.sys.amiga.tech] Bug in MANX 5.0?

stefanb@cip-s02.informatik.rwth-aachen.de (Stefan Becker) (05/04/90)

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