X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: 09 Feb 2004 07:51:26 +0200 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: (kernco AT earlham DOT edu) Subject: Re: Strange runtime error References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: kernco AT earlham DOT edu (Colin Kern) > Newsgroups: comp.os.msdos.djgpp > Date: 8 Feb 2004 17:29:35 -0800 > > Two of my projects has succumbed to a strange error in which my > program compiles with no errors or warnings (even with pedantic) and > then crashes on the first line, regardless of what the first line is. > GDB can tell me nothing, the backtrace is simply: > #0 xxxxxxxxxx in main () at program.cpp:13 > #1 xxxxxxxxxx in ___crt1_startup () The full crash message printed when the program goes down (outside the debugger), complete with registers' dump and everything else, would be useful here. Please consider posting it if the guess below doesn't solve the problem. One situation where such crashes happen is when you have a very large automatic array in your main function, so large that it blows up the 512MB stack. See section 15.9 of the DJGPP FAQ for more details.