Re: GCC/G++ compiler: Error goes away when run through debugger

Joshua Cranmer <Pidgeot18@verizon.invalid>
Sun, 27 Mar 2011 20:45:56 -0400

          From comp.compilers

Related articles
GCC/G++ compiler: Error goes away when run through debugger rhoads@cs.rutgers.edu (rhoads@cs.rutgers.edu) (2011-03-26)
Re: GCC/G++ compiler: Error goes away when run through debugger nospam@no.spam (Mark in Sutherland) (2011-03-27)
Re: GCC/G++ compiler: Error goes away when run through debugger bobduff@shell01.TheWorld.com (Robert A Duff) (2011-03-27)
Re: GCC/G++ compiler: Error goes away when run through debugger robin51@dodo.com.au (robin) (2011-03-28)
Re: GCC/G++ compiler: Error goes away when run through debugger Pidgeot18@verizon.invalid (Joshua Cranmer) (2011-03-27)
Re: GCC/G++ compiler: Error goes away when run through debugger torbenm@diku.dk (2011-03-28)
Re: GCC/G++ compiler: Error goes away when run through debugger bc@freeuk.com (BartC) (2011-03-28)
Re: GCC/G++ compiler: Error goes away when run through debugger gneuner2@comcast.net (George Neuner) (2011-03-29)
Re: GCC/G++ compiler: Error goes away when run through debugger gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-03-29)
Re: GCC/G++ compiler: Error goes away when run through debugger ike@localhost.claranet.nl (2011-03-29)
Re: GCC/G++ compiler: Error goes away when run through debugger gneuner2@comcast.net (George Neuner) (2011-03-31)
[1 later articles]
| List of all articles for this month |
From: Joshua Cranmer <Pidgeot18@verizon.invalid>
Newsgroups: comp.compilers
Date: Sun, 27 Mar 2011 20:45:56 -0400
Organization: A noiseless patient Spider
References: 11-03-054
Keywords: C++, debug
Posted-Date: 29 Mar 2011 11:52:20 EDT

On 03/26/2011 03:35 PM, rhoads@cs.rutgers.edu wrote:
> I have an C++ application program that is producing incorrect results
> but the error goes away when I run it through the debugger.


The last time I saw this kind of problem, it was because I did an
out-of-bounds array-access on a stack variable. Specifically, the
program segfaulted if and only if I wasn't under gdb... getting that
stacktrace was fun. :-)


--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.