Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #63 > unrolled thread

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

Started byJoshua Cranmer <Pidgeot18@verizon.invalid>
First post2011-03-27 20:45 -0400
Last post2011-03-27 20:45 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.compilers

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromJoshua Cranmer <Pidgeot18@verizon.invalid>
Date2011-03-27 20:45 -0400
SubjectRe: GCC/G++ compiler: Error goes away when run through debugger
Message-ID<11-03-058@comp.compilers>
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

[toc] | [standalone]


Back to top | Article view | comp.compilers


csiph-web