Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MallocErrorAbort If set, causes abort(3) to be called if an
- error was encountered in malloc(3) or
- free(3) , such as a calling free(3) on a
- pointer previously freed.
- -L/usr/lib/debug/lib -ldmallocth
- void *array[512 / sizeof(void *)]; // 100 is just an arbitrary number of backtraces, increase if you want.
- size_t size;
- size = backtrace (array, 512 / sizeof(void *));
- backtrace_symbols_fd (array, size, fileno(mp_logfile));
Add Comment
Please, Sign In to add comment