|
From: Chris S. <c.s...@co...> - 2005-01-18 22:13:50
|
On Tue, Jan 18, 2005 at 05:48:52PM +0100, Andreas Andersen wrote: > 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? > Well, I've noticed that valgrind can continue through a double-free bug, when the program would crash without valgrind. But valgrind reports the error, so that's probably not your case. -chris |