delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | kernco AT earlham DOT edu (Colin Kern) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Strange runtime error |
Date: | 9 Feb 2004 16:09:00 -0800 |
Organization: | http://groups.google.com |
Lines: | 37 |
Message-ID: | <be40988.0402091609.2ae1269e@posting.google.com> |
References: | <be40988 DOT 0402081729 DOT bc9835d AT posting DOT google DOT com> <uvfmgu7fl DOT fsf AT elta DOT co DOT il> |
NNTP-Posting-Host: | 159.28.161.123 |
X-Trace: | posting.google.com 1076371740 18615 127.0.0.1 (10 Feb 2004 00:09:00 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Tue, 10 Feb 2004 00:09:00 +0000 (UTC) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii <eliz AT elta DOT co DOT il> wrote in message news:<uvfmgu7fl DOT fsf AT elta DOT co DOT il>... > > 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. Exiting due to signal SIGSEGV Stack Fault at eip=0000163d eax=00000000 ebx=00000298 ecx=00000000 edx=00000000 esi=00000054 edi=0009f4d4 ebp=0011f4b0 esp=ffedf460 program=C:\C__~1\MANDEL~1\FRAC.EXE cs: sel=01a7 base=02980000 limit=0012ffff ds: sel=01af base=02980000 limit=0012ffff es: sel=01af base=02980000 limit=0012ffff fs: sel=017f base=000056c0 limit=0000ffff gs: sel=01bf base=00000000 limit=0010ffff ss: sel=01af base=02980000 limit=0012ffff App stack: [0011f4d4..0009f4d4] Exceptn stack: [0009f42c..0009d4ec] Is that 512MB or 512KB? It's quite possible I have used more than 512KB of static variables in my program, but impossible that I surpassed 512MB.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |