This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Bug in gdb?
On Wed, Dec 15, 2010 at 12:29 PM, Laércio Júnior
<laerciopericles@gmail.com> wrote:
> I'm using the gdb (debugger) in order to find out a error in ns-3.
> When i run the command ./waf --run "gaap --scenario=static
> --phyMode=DsssRate1Mbps --maxSeed=10 --numNodes=20" without gdb, the
> error appears, but running the same command line with gdb ( .././waf
> --command-template="gdb --args %s" --run "gaap" and later run
> "--scenario=static --phyMode=DsssRate1Mbps --maxSeed=10 --numNodes=20"
> ), errors don't appear.
>
> Can the gdb be with some "trash"?
It is not that uncommon for application bugs to "hide" when run under
debugger. The common causes are changes in timing (most often affects
multi-threaded applications), and also the fact that GDB (by default)
disables address space randomization.
The fact that a bug does not manifest under GDB usually does not mean
that the bug is *in* GDB itself.
Suggested reading: http://www.catb.org/~esr/faqs/smart-questions.html
Happy Holidays!
--
Paul Pluzhnikov