[vbox-dev] How to use GNU debugger on VBoxSVC ?

Frank Mehnert frank.mehnert at oracle.com
Mon May 11 13:06:48 GMT 2015


Actually thinking again it looks to me as your build is somehow broken.
Which Linux distribution is that, which gcc compiler? Is this a clean
build?

Frank

On Monday 11 May 2015 15:03:49 Frank Mehnert wrote:
> Which code is that, 5.0 Beta 2 or some revision from the subversion
> repository?
> 
> Frank
> 
> On Monday 11 May 2015 15:47:05 Alexey Eromenko wrote:
> > Compiled non-hardened build. Still doesn't work.
> > 
> > *1. Debug build doesn't run without GDB.*
> > 
> > $ cd ./out/linux.amd64/debug/bin/
> > $ ./VirtualBox
> > LOG_GROUP_MM='MM_HEAP' expects 'MM'
> > Trace/breakpoint trap
> > 
> > $ ./VBoxSVC
> > LOG_GROUP_MM='MM_HEAP' expects 'MM'
> > Trace/breakpoint trap
> > 
> > *2. VBOX_ASSERT=none doesn't help*
> > 
> > $ export VBOX_ASSERT=none
> > $ ./VBoxSVC
> > LOG_GROUP_MM='MM_HEAP' expects 'MM'
> > Trace/breakpoint trap
> > $
> > 
> > $ gdb ./VBoxSVC
> > Reading symbols from
> > /home/user/VirtualBox-5.0.0_BETA2/out/linux.amd64/debug/bin/VBoxSVC...done
> > .
> > (gdb) run
> > Starting program:
> > /home/user/VirtualBox-5.0.0_BETA2/out/linux.amd64/debug/bin/VBoxSVC
> > [Thread debugging using libthread_db enabled]
> > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> > [New Thread 0x7ffff25e8700 (LWP 31556)]
> > [Thread 0x7ffff25e8700 (LWP 31556) exited]
> > LOG_GROUP_MM='MM_HEAP' expects 'MM'
> > 
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> > 0x00007ffff75876ff in RTLogDefaultInit ()
> > 
> >     at
> > 
> > /home/user/VirtualBox-5.0.0_BETA2/src/VBox/Runtime/VBox/log-vbox.cpp:261
> > 261         ASSERT_LOG_GROUP(MM);
> > (gdb)
> > 
> > ...so I must press "c" about 30 times to silence it.
> > 
> > *3. Debug build doesn't run with GDB. (after pressing "c" 30 times)*
> > 
> > (gdb) c
> > Continuing.
> > LOG_GROUP_VRDP='VSCSI' expects 'VRDP'
> > 
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> > 0x00007ffff7587f5a in RTLogDefaultInit ()
> > 
> >     at
> > 
> > /home/user/VirtualBox-5.0.0_BETA2/src/VBox/Runtime/VBox/log-vbox.cpp:292
> > 292         ASSERT_LOG_GROUP(VRDP);
> > (gdb) c
> > Continuing.
> > Type Manifest File: /home/user/.config/VirtualBox/xpti.dat
> > c###!!! ASSERTION: Factory creation failed: 'NS_SUCCEEDED(rv)', file
> > /home/user/VirtualBox-5.0.0_BETA2/src/libs/xpcom18a4/xpcom/components/nsNa
> > ti veComponentLoader.cpp, line 160
> > Break: at file
> > /home/user/VirtualBox-5.0.0_BETA2/src/libs/xpcom18a4/xpcom/components/nsNa
> > ti veComponentLoader.cpp, line 160
> > nsNativeComponentLoader: autoregistering begins.
> > *** Registering VirtualBox_Client_Module components (all right -- a
> > generic
> > module!)
> > *** Registering VirtualBox_Server_Module components (all right -- a
> > generic
> > module!)
> > nsNativeComponentLoader: autoregistering succeeded
> > nNCL: registering deferred (0)
> > nsNativeComponentLoader: autoregistering begins.
> > nsNativeComponentLoader: autoregistering succeeded
> > nNCL: registering deferred (0)
> > [New Thread 0x7ffff0071700 (LWP 31525)]
> > ###!!! ASSERTION: Factory creation failed: 'NS_SUCCEEDED(rv)', file
> > /home/user/VirtualBox-5.0.0_BETA2/src/libs/xpcom18a4/xpcom/components/nsNa
> > ti veComponentLoader.cpp, line 160
> > Break: at file
> > /home/user/VirtualBox-5.0.0_BETA2/src/libs/xpcom18a4/xpcom/components/nsNa
> > ti veComponentLoader.cpp, line 160
> > VBoxSVC: error: Failed to get IPC service!
> > (rc=NS_ERROR_FACTORY_NOT_REGISTERED)
> > [Thread 0x7ffff0071700 (LWP 31525) exited]
> > XPCOM server has shutdown.

-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher




More information about the vbox-dev mailing list