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

"robin" <robin51@dodo.com.au>
Mon, 28 Mar 2011 01:01:23 +1000

          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)
[2 later articles]
| List of all articles for this month |
From: "robin" <robin51@dodo.com.au>
Newsgroups: comp.compilers
Date: Mon, 28 Mar 2011 01:01:23 +1000
Organization: Compilers Central
References: 11-03-054
Keywords: C, debug
Posted-Date: 27 Mar 2011 19:01:21 EDT

rhoads@cs.rutgers.edu <rhoads@cs.rutgers.edu>
>I have an C++ application program that is producing incorrect results
>but the error goes away when I run it through the debugger.


A typical cause of such behaviour is that something in the executable
is being destroyed. Modifying the code in some way such as removing
or adding a print statement, etc, alters the effect.


Likely causes are a subscript error, or string error,
but is not restricted to those; pointer errors could be the cause.



Post a followup to this message

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