Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.compilers > #63

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.snarked.org!news.linkpendium.com!news.linkpendium.com!news.iecc.com!nerds-end
From Joshua Cranmer <Pidgeot18@verizon.invalid>
Newsgroups comp.compilers
Subject Re: GCC/G++ compiler: Error goes away when run through debugger
Date Sun, 27 Mar 2011 20:45:56 -0400
Organization A noiseless patient Spider
Lines 13
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <11-03-058@comp.compilers> (permalink)
References <11-03-054@comp.compilers>
NNTP-Posting-Host news.iecc.com
X-Trace gal.iecc.com 1301413940 18385 64.57.183.58 (29 Mar 2011 15:52:20 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Tue, 29 Mar 2011 15:52:20 +0000 (UTC)
Keywords C++, debug
Posted-Date 29 Mar 2011 11:52:20 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref x330-a1.tempe.blueboxinc.net comp.compilers:63

Show key headers only | View raw


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

Back to comp.compilers | Previous | Next | Find similar


Thread

Re: GCC/G++ compiler: Error goes away when run through debugger Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-03-27 20:45 -0400

csiph-web