From: pascal DOT obry AT der DOT edfgdf DOT fr ("Pascal Obry") Subject: serious bug with CYGNUS GCC b16 3 Dec 1996 03:06:21 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <9612030920.AA04433.cygnus.gnu-win32@cln46fw.der.edf.fr.der.edf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Original-To: X-Msmail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 Original-Sender: owner-gnu-win32 AT cygnus DOT com Hello, I have found a bug with the current release of CYGNUS GCC (b16). The following program show the problem. The size of the array should be changed depending of the total memory you have. In fact I have found that depending of the memory usage of my computer the value should be changed. This bug occurs on Windows NT 4.0 (french) and Windows 95 (french). Does this bug known and will it be fixed in the future release (b17) ? Does somebody know about the future release date ? Thanks, Pascal. ---------------------------------------------------------------------------- -------- #define ARRAY_SIZE 2038010 int main (void) { char A [ARRAY_SIZE]; } > gcc -o bug.exe bug.c > bug (bug.exe 1000) In cygwin_except_handler (bug.exe 1000) Exception trapped! (bug.exe 1000) exception C00000FD at 401037 (bug.exe 1000) exception: ax F58FC bx 12FB00 cx 326FC dx A001A5C (bug.exe 1000) exception: si 5 di 100016A3 bp 12F6FC sp 12F6F4 (bug.exe 1000) exception is: STATUS_STACK_OVERFLOW (bug.exe 1000) Stack trace: (bug.exe 1000) frame 0: sp = 0x12F528, pc = 0x10002A68 (bug.exe 1000) frame 1: sp = 0x12F544, pc = 0x77F94072 (bug.exe 1000) frame 2: sp = 0x12F568, pc = 0x77F88A53 (bug.exe 1000) frame 3: sp = 0x12F5F4, pc = 0x77F75E82 (bug.exe 1000) frame 4: sp = 0x12F6FC, pc = 0x10001EBB (bug.exe 1000) frame 5: sp = 0x12FF9C, pc = 0x10001ECF (bug.exe 1000) frame 6: sp = 0x12FFA8, pc = 0x4011BC (bug.exe 1000) frame 7: sp = 0x12FFB8, pc = 0x401008 (bug.exe 1000) frame 8: sp = 0x12FFC0, pc = 0x77F1AFC1 (bug.exe 1000) frame 9: sp = 0x12FFF0, pc = 0x0 (bug.exe 1000) End of stack trace > gcc -g -o bug.exe bug.c > gdb bug.exe GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16.1 (i386-cygwin32), Copyright 1996 Free Software Foundation, Inc... (gdb) run Starting program: bug.exe 10000000:/WINNT35/System32/cygwin.dll [failed reading symbols from DLL] "/WINNT35/system32/kernel32.dll": error reading line numbers [failed reading symbols from DLL] "/WINNT35/system32/advapi32.dll": error reading line numbers 77e70000:/WINNT35/system32/USER32.dll 77ed0000:/WINNT35/system32/GDI32.dll 77e20000:/WINNT35/system32/RPCRT4.dll 776c0000:/WINNT35/System32/wsock32.dll [failed reading symbols from DLL] "/WINNT35/System32/WS2_32.dll": error reading line numbers 779e0000:/WINNT35/system32/MSVCRT.dll [failed reading symbols from DLL] "/WINNT35/System32/WS2HELP.dll": error reading line numbers 77e10000:/WINNT35/System32/rpcltc1.dll Program received signal SIGSEGV, Segmentation fault. 0x1003371b in probe () (gdb) bt #0 0x1003371b in probe () #1 0x12f43e in ?? () #2 0x10001ebb in dll_crt0_1 (uptr=0x402000) at /sethra/death/noer/beta16/src/winsup/dcrt0.cc:520 #3 0x10001ecf in dll_crt0 (uptr=0x402000) at /sethra/death/noer/beta16/src/winsup/dcrt0.cc:532 #4 0x4010d8 in cygwin_crt0 () at /sethra/death/noer/beta16/src/winsup/libccrt0.cc:89 (arg: -1) ---------------------------------------------------------------------------- ------------ - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".