|Reported by:||mmadia||Owned by:||mmlr|
This haiku-development ML thread mentions integrating src/system/libroot/posix/malloc_debug and possibly making it available as a runtime setting. This which will allow it to be enabled and configured dynamically.
For now, malloc_debug can be enabled by switching over the malloc to the malloc_debug directory in the src/system/libroot/posix/Jamfile and rebuilding libroot. It can also do leak checking and does initialize and overwrite freed memory with known values to make access to these more obvious.