Listing 4. Remember to call muntrace() in the SIGSEGV handler. #include #include #include #include void handler(int s) { muntrace(); abort(); } int main() { char *ptr; signal(SIGSEGV, handler); mtrace(); ptr = malloc(10); free(ptr); free(ptr); }