4 ms·
Here's mine: https://github.com/andrewrk/malcheck/ https://github.com/andrewrk/malcheck/ It uses LD_PRELOAD and a custom malloc so that you can find out all th
by AndyKelley 8y ago
Here's mine: https://github.com/andrewrk/malcheck/ https://github.com/andrewrk/malcheck/
It uses LD_PRELOAD and a custom malloc so that you can find out all the horrible ways that application developers did not plan to run out of memory.
- loeg 8y agoWe use a sort of similar trick (not via LD_PRELOAD, though) to inject faults in M_NOWAIT malloc() calls in the FreeBSD kernel. FreeBSD kernel code tends to be a bit better than most userspace code I've seen as far as considering OOM conditions, though it is not perfect.