mallory$ gdb /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done (gdb) break malloc_error_break Breakpoint 1 at 0x1e07d12 (gdb) run -s winxp Starting program: /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless -s winxp Reading symbols for shared libraries .+++...... done Reading symbols for shared libraries .. done Reading symbols for shared libraries .......................................................................................... done Oracle VM VirtualBox Headless Interface 3.2.8 (C) 2008-2010 Oracle Corporation All rights reserved. Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries ... done Reading symbols for shared libraries . done FreeTSD: failed to destroy key: Undefined error: 0 VBoxHeadless(27472,0xb058b000) malloc: *** error for object 0x11ce50: double free *** set a breakpoint in malloc_error_break to debug [Switching to process 27472] Breakpoint 1, 0x95970d12 in malloc_error_break () (gdb) bt #0 0x95970d12 in malloc_error_break () #1 0x95971eb8 in szone_error () #2 0x95971fed in free_tiny_botch () #3 0x94cb7833 in _free_internal () #4 0x94cbc790 in _destroyInitializingClassList () #5 0x94cbc74a in _objc_pthread_destroyspecific () #6 0x958b0249 in _pthread_tsd_cleanup () #7 0x958afdf6 in _pthread_exit () #8 0x0026ac0c in rtThreadNativeMain () #9 0x958a781d in _pthread_start () #10 0x958a76a2 in thread_start () (gdb) bt full #0 0x95970d12 in malloc_error_break () No symbol table info available. #1 0x95971eb8 in szone_error () No symbol table info available. #2 0x95971fed in free_tiny_botch () No symbol table info available. #3 0x94cb7833 in _free_internal () No symbol table info available. #4 0x94cbc790 in _destroyInitializingClassList () No symbol table info available. #5 0x94cbc74a in _objc_pthread_destroyspecific () No symbol table info available. #6 0x958b0249 in _pthread_tsd_cleanup () No symbol table info available. #7 0x958afdf6 in _pthread_exit () No symbol table info available. #8 0x0026ac0c in rtThreadNativeMain () No symbol table info available. #9 0x958a781d in _pthread_start () No symbol table info available. #10 0x958a76a2 in thread_start () No symbol table info available. (gdb) con condition continue (gdb) continue Continuing. Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Listening on port 3389.