malloc(3) leak detection gains backtraces
by from OpenBSD Journal on (#6GX48)
Otto Moerbeek (otto@), the author of OpenBSD'smalloc(3)implementation, hascomittedanother great feature - backtraces for leak detection:
CVSROOT:/cvsModule name:srcChanges by:otto@cvs.openbsd.org2023/12/04 00:01:45Modified files:lib/libc/stdlib: malloc.3 malloc.c Log message:Save backtraces to show in leak dump. Depth of backtrace set bymalloc option D (aka 1), 2, 3 or 4. No performance impact if notused. ok asou@
Otto'soriginal messageto tech@includes an example use of the feature.