A
Andreas Andersen
Hi
I have been using valgrind to debug a program I have written in C++ and
it has been very helpful in eliminating memory errors/leaks. However, I
just recently discovered a bug and from what I can see it looks like
some kind of memory problem. However, when I run it through valgrind no
errors are reported and the bug seems to be gone! I print some status
from the program and at some point this becomes wrong but when the
program is run through valgrind the status printed is right!
How can valgrind change the output of my program and does this behaviour
give any clues as to what kind of bug I am looking for?
Thanks in advance.
/Andreas
I have been using valgrind to debug a program I have written in C++ and
it has been very helpful in eliminating memory errors/leaks. However, I
just recently discovered a bug and from what I can see it looks like
some kind of memory problem. However, when I run it through valgrind no
errors are reported and the bug seems to be gone! I print some status
from the program and at some point this becomes wrong but when the
program is run through valgrind the status printed is right!
How can valgrind change the output of my program and does this behaviour
give any clues as to what kind of bug I am looking for?
Thanks in advance.
/Andreas