bramante@matrix:~/test$ g++ -o ./crash ./crash.cpp
bramante@matrix:~/test$ gdb ./crash
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/bramante/test/crash...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/bramante/test/crash
test()
test()
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0xdeadbeef) at malloc.c:2970
2970 malloc.c: No such file or directory.
(gdb) bt
#0 __GI___libc_free (mem=0xdeadbeef) at malloc.c:2970
#1 0x0000000000400831 in PARENT::~PARENT() ()
#2 0x00007ffff77575b1 in __run_exit_handlers (status=0, listp=0x7ffff7ad3688, run_list_atexit=true) at exit.c:78
#3 0x00007ffff7757635 in __GI_exit (status=<optimized out>) at exit.c:100
#4 0x00000000004007ea in main ()
(gdb)