|
From: SourceForge.net <no...@so...> - 2003-03-28 22:11:54
|
Bugs item #709036, was opened at 2003-03-24 22:55 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=709036&group_id=2435 Category: gdb Group: Known bugs Status: Open Resolution: None Priority: 5 Submitted By: Vladimir Michl (michlv) Assigned to: Nobody/Anonymous (nobody) Summary: gdb access violation when debugging Initial Comment: Hello dovelopers, I compile some C++ program which have too much classes (such of this have all members static) with mingw 2.0.0 (gcc 3.2) mingw-runtime 2.4, w32api 2.2. Flags when compiling is -mms-bitfields -mwin32 -mno-cygwin -Wall $(VERSION) -g -mconsole linked libraries are -lkernel32 -ladvapi32 -lws2_32 -lstdc++ When I try trace program in main() (with next command) on second line gdb cause access violation. Command 'dissasemble main' cause access vialation too. I think that gdb has corrupted symbol table, because access violation is caused when show (in disassemble) call to ___chkstk function (show to objdump -d cipsrvr.exe) I attach compiled binary which cause gdb access violation. I try gdb 5.1.1 and gdb 5.2.1 with the same result. ---------------------------------------------------------------------- >Comment By: Vladimir Michl (michlv) Date: 2003-03-28 23:25 Message: Logged In: YES user_id=213474 Now is in gcc 3.2.2-20030208 downloadable from sourceforge? I try compile binary without -O2 only with -g. The result is the same -> access violation. I try gcc 3.2 and gcc 3.2.2-20030208. If binary is compiled without -g and without -O2 or with -O2, main may be disassembled without crash. (gcc 3.2.2). Because sourceforge.net accept attached files only to 256KB size, compiled zipped binary which crash gdb may be downloaded from http://hlubocky.del.cz/~michlv/mingw/CIPSRVR.ZIP. ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2003-03-24 23:26 Message: Logged In: YES user_id=11494 There is an _alloca/_chkstck bug in gcc3.2 for cygwin and mingw that is exposed at -O2 and higher when large arrays or structs (> 4kb) are allocated on the stack This _may_ be the problem. That bug is fixed now. Danny ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=709036&group_id=2435 |