3 ms·
On illumos you can use libumem to replace malloc() via LD_PRELOAD, and then you can instruct it to do the same thing via the UMEM_DEBUG environment variable. I
by jclulow 9y ago
On illumos you can use libumem to replace malloc() via LD_PRELOAD, and then you can instruct it to do the same thing via the UMEM_DEBUG environment variable. It's a fantastic technique for catching these issues without completely destroying application performance.
See also: https://illumos.org/man/umem_debug https://illumos.org/man/umem_debug
- xcudfg89du8fg90 9y agoBest BOFH comment this week! Instead of suggesting modern tooling such as address sanitizer, poster suggest switching development to obscure unix os. Poster profile even lists them working with loads of operating systems, this one included. And still they debug memory errors like it's 1963. Priceless!