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

Alexey Eromenko al4321 at gmail.com
Mon May 11 12:47:05 GMT 2015


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/nsNativeComponentLoader.cpp,
line 160
Break: at file
/home/user/VirtualBox-5.0.0_BETA2/src/libs/xpcom18a4/xpcom/components/nsNativeComponentLoader.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/nsNativeComponentLoader.cpp,
line 160
Break: at file
/home/user/VirtualBox-5.0.0_BETA2/src/libs/xpcom18a4/xpcom/components/nsNativeComponentLoader.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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20150511/06bedcb7/attachment.html>


More information about the vbox-dev mailing list