I have not seen any good simple tutorials on how to use libumem for debugging. (Unless you also want to learn how to use mdb). So I wrote a simple example.
% more t.c
#include
#include
int main()
{
int i;
free(&i);
i = 10;
char * p = (char *) malloc(1000);
}
This program has a bug, and it might crash or [...]
