3 ms·
I once had to intercept every call malloc/free/realloc and log it to find a leak. I wound up turning that into an immensely useful tool.
by WalterBright 5y ago
I once had to intercept every call malloc/free/realloc and log it to find a leak. I wound up turning that into an immensely useful tool.
- marivilla 5y agoIf you are the same Walter Bright who invented the D programming language then this comment should win a fun comment award also there should be an HN comments award show or something
- vips7L 5y agoThe one and only Walter Bright.
- WalterBright 5y agoThere can be only one.
- lostmsu 5y agovalgrind?
- linkdd 5y agoThis was my first guess, but according to wikipedia[0], the author of valgrind is Julian Seward[1]. [0] - https://en.wikipedia.org/wiki/Valgrind [1] - https://en.wikipedia.org/wiki/Julian_Seward
- lostmsu 5y agoMaybe WalterBright is his pseudonym on HN?
- FridgeSeal 5y agoFairly sure this is the Walter Bright that wrote the D language, a C++ compiler etc
- WalterBright 5y agoIt was my evil twin. Of course, he claims the evil one is me. Don't listen to him!
- WalterBright 5y agoNo, no, he's the bad one!
- leeoniya 5y agohttps://en.m.wikipedia.org/wiki/Walter_Bright https://en.m.wikipedia.org/wiki/Walter_Bright
- WalterBright 5y agoI wish. Mine instrumented the source code, not the executable.
- WalterBright 5y agoIt would also stomp on all memory returned by malloc, and all memory that free free'd. This uncovered amazing numbers of bugs. Over time, though, it got less and less effective, as I got better and better at avoiding writing such bugs in the first place. Most bugs I create these days are due to misunderstanding the problem I'm solving, rather than memory misuse.