News for hackers. Stuff that matters.
Re:Kore: a fast web server for writing web apps in C by nitrogen on Sunday May 17, 2015 @03:03AM (#9559018)
Valgrind should definitely be a part of every C developer's workflow, if possible integrated into the unit and integration tests.
Re:Kore: a fast web server for writing web apps in C by pjmlp on Sunday May 17, 2015 @03:13AM (#9559042)
It doesn't help that is isn't available in all platforms, e.g. embedded, real-time OS, commercial UNIXes, mainframes.
Re:Kore: a fast web server for writing web apps in C by nitrogen on Sunday May 17, 2015 @03:49AM (#9559112)
That is unfortunate, but in those cases, if C or C++ is the only option, I would advocate writing cross-platform code and running the tests under a Valgrind-supported platform.

This is a bit more difficult for kernel-level code running on an RTOS, as there might be a lot more unique APIs to stub out, but it can still be done.

Re:Kore: a fast web server for writing web apps in C by pjmlp on Sunday May 17, 2015 @05:10AM (#9559313)
You are no longer testing the same code under the real execution conditions, thus missing out possible leaks on the original code path.

Although you can add that better test that than nothing, assuming that the respective OS vendor doesn't offer tooling similar to Valgrind, which I fully agree.

EDIT: added some clarifications.

Re:Kore: a fast web server for writing web apps in C by askfakasdsfsfk on Sunday May 17, 2015 @06:57AM (#9559544)
Two of those, embedded and real-time, Valgrind should help very little as you shouldn't be allocating anything anyway apart from statically.
Re:Kore: a fast web server for writing web apps in C by pjmlp on Sunday May 17, 2015 @07:24AM (#9559612)
Well, there are still the other pointer misuses that are so common in C code.