News for hackers. Stuff that matters.
Re:Valgrind Release 3.9.0 by WalterBright on Monday November 04, 2013 @08:45PM (#6672647)
Valgrind is a truly awesome product. It has saved me countless hours tracking down weird memory corruption errors.
Re:Valgrind Release 3.9.0 by yukkurishite on Tuesday November 05, 2013 @04:07AM (#6674066)
Absolutely. Valgrind is the holy grail of C/CPP programming.
Re:Valgrind Release 3.9.0 by blueblob on Tuesday November 05, 2013 @02:18AM (#6673665)
I could not agree more. My only complaint about valgrind was that I was not smart enough to figure out how to use it on a FUSE filesystem.
Re:Valgrind Release 3.9.0 by wizzardy on Tuesday November 05, 2013 @03:51PM (#6678188)
Hopefully at the end you figured it out. one of the option is to set --trace-children to "no".
Re:Valgrind Release 3.9.0 by blueblob on Tuesday November 05, 2013 @07:08PM (#6679524)
Will note for future reference.
Re:Valgrind Release 3.9.0 by csmuk on Tuesday November 05, 2013 @05:31AM (#6674334)
Definitely.

I write C on a non-valgrind capable platform. It's literally scary what you missed when you take what you think is working properly and throw it through valgrind.

Re:Valgrind Release 3.9.0 by stass on Tuesday November 05, 2013 @01:45PM (#6677122)
A good discipline also helps. ;)
Re:Valgrind Release 3.9.0 by WalterBright on Tuesday November 05, 2013 @08:51PM (#6680005)
I paid severe penalties for memory corruption bugs writing C code in the 80's - penalties in the form of vast time spent debugging in a non-memory protected environment, where a crash could and often would scramble your hard disk.

As a result, I developed a lot of defensive habits to ward off these types of problems, such that I don't make those mistakes very often anymore. But once in a while, I still get weird errors, and the first thing I try is running it under valgrind.

Bing, bang, problem found, fixed. I may be not too far off the mark in saying that valgrind may have saved C and C++.