4 ms·
What's an example of a memory leak that can't be found by valgrind?
by tekstar 8y ago
What's an example of a memory leak that can't be found by valgrind?
- viraptor 8y agoOne happening in an embedded language with its own GC. Unless you can switch all allocations to explicit management for the tests, it's almost impossible to differentiate between live objects, free lists, cycles with deferred collection, and arenas that are supposed to be freed on exit.
- spc476 8y agoThat happened with me at work. A certain class of error would leak references and over time they would pile up. Fortunately, Lua (the embedded language in use) allows one to mark certain references as weak references and allow collection. The trick was in determining what to mark as weak references.