http://benji3up2kxewkqfcq7buxk2xd6zwy3zggnurkrm3l4cvwy2iipvyyad.onion/mirrors/gmpdoc/Debugging.html
On a GNU or BSD
system the standard C library malloc has some diagnostic facilities,
see Allocation Debugging in The GNU C Library
Reference Manual , or ‘ man 3 malloc ’. Other possibilities, in no
particular order, include http://cs.ecs.baylor.edu/~donahoo/tools/ccmalloc/ http://dmalloc.com/ https://wiki.gnome.org/Apps/MemProf The GMP default allocation routines in memory.c also have a simple
sentinel scheme which can be enabled with #define DEBUG in that file.