# gdb /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Wed Sep 22 02:45:02 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 0x1e06f82 (gdb) run -s winxp Starting program: /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless -s winxp warning: posix_spawn failed, trying execvp, error: 86 Reading symbols for shared libraries .+++...... done Reading symbols for shared libraries .. done Reading symbols for shared libraries ........................................................................................... done Oracle VM VirtualBox Headless Interface 4.0.4 (C) 2008-2011 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 warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxPuelMain/VBoxPuelMain.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/ExtPacks/Puel/VBoxPuelMain.cpp". . done Reading symbols for shared libraries warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/vrdpapi.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/vrdpapi.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/server.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/server.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/clipboard.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/clipboard.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/audioin.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/audioin.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/audio.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/audio.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/iso.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/iso.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/mcs.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/mcs.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/secure.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/secure.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/vrdpstream.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/vrdpstream.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/vrdp.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/vrdp.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/utils.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/utils.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/bmpcomp.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/bmpcomp.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/shadowbuffer.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/shadowbuffer.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/regions.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/regions.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/orders.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/orders.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/output.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/output.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/transport.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/transport.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/channel.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/channel.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/usb.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/usb.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/mixeng/mixeng.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/mixeng/mixeng.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/bmpcache.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/bmpcache.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/textcache.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/textcache.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/tcp_vrdp.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/tcp_vrdp.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/input.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/input.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/vrdpctx.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/vrdpctx.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/pointer.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/pointer.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/vrdpclient.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/vrdpclient.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/videostream.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/videostream.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/videoencoder.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/videoencoder.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/bmpscale.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/bmpscale.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/sunflsh.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/sunflsh.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxVRDP/drdynvc.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/RDP/server/drdynvc.cpp". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcapistd.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcapistd.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcparam.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcparam.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcapimin.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcapimin.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jerror.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jerror.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcomapi.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcomapi.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcmarker.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcmarker.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcinit.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcinit.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jutils.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jutils.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jmemmgr.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jmemmgr.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcmainct.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcmainct.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jchuff.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jchuff.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcmaster.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcmaster.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jmemnobs.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jmemnobs.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jccoefct.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jccoefct.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcprepct.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcprepct.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcdctmgr.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcdctmgr.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcsample.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcsample.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jcarith.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jcarith.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jccolor.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jccolor.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jsimd_i386.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/simd/jsimd_i386.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jaricom.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jaricom.c". warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/lib/VBox-libjpeg.a(jfdctfst.o)" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/libs/jpeg-8a/jfdctfst.c". . 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(35953,0xb05e9000) malloc: *** error for object 0x11cd90: double free *** set a breakpoint in malloc_error_break to debug [Switching to process 35953] Breakpoint 1, 0x96b2cf82 in malloc_error_break () (gdb) bt #0 0x96b2cf82 in malloc_error_break () #1 0x96b2e12c in szone_error () #2 0x96b2e261 in free_tiny_botch () #3 0x95703833 in _free_internal () #4 0x95708790 in _destroyInitializingClassList () #5 0x9570874a in _objc_pthread_destroyspecific () #6 0x96a6c289 in _pthread_tsd_cleanup () #7 0x96a6be36 in _pthread_exit () #8 0x002820de in rtThreadNativeMain () #9 0x96a6385d in _pthread_start () #10 0x96a636e2 in thread_start () (gdb) bt full #0 0x96b2cf82 in malloc_error_break () No symbol table info available. #1 0x96b2e12c in szone_error () No symbol table info available. #2 0x96b2e261 in free_tiny_botch () No symbol table info available. #3 0x95703833 in _free_internal () No symbol table info available. #4 0x95708790 in _destroyInitializingClassList () No symbol table info available. #5 0x9570874a in _objc_pthread_destroyspecific () No symbol table info available. #6 0x96a6c289 in _pthread_tsd_cleanup () No symbol table info available. #7 0x96a6be36 in _pthread_exit () No symbol table info available. #8 0x002820de in rtThreadNativeMain () No symbol table info available. #9 0x96a6385d in _pthread_start () No symbol table info available. #10 0x96a636e2 in thread_start () No symbol table info available. (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 warning: Could not find object file "/Users/vbox/tinderbox/extpacks/out/darwin.x86/release/obj/VBoxEhciR3/USB/DevEHCI.o" - no debug information available for "/Users/vbox/tinderbox/extpacks/src/VBox/Devices/USB/DevEHCI.cpp". . 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 VRDE server is listening on port 38910. ^C Program received signal SIGINT, Interrupt. [Switching to process 35953] 0x96a360fa in mach_msg_trap () (gdb) The program is running. Exit anyway? (y or n) y #