On Wednesday 24 January 2007 12:48:42 am Michael Thayer wrote:
> Hello Ben,
>
> If you are wanting to investigate crashes, or to help us investigate
> them, the first thing to do is to build a debug version of VirtualBox
> from the svn sources. Debug versions produce a lot of assertions which
> may give information about the problem. You should then start
> VirtualBox in the debugger as follows. I assume that you have basic
> knowledge of using the GNU debugger here.
>
> * Make sure that the kernel module is loaded and setup (if the binary
> version of VirtualBox is installed and works then that will be the case).
> * Start the VirtualBox server from a terminal prompt from the VirtualBox
> build directory:
>
> ~/VirtualBox/.../out$ LD_LIBRARY_PATH=. ./VBoxSVC
>
> * From another terminal prompt, from the same directory, start
> VirtualBox in the debugger:
>
> ~/VirtualBox/.../out$ LD_LIBRARY_PATH=. gdb --args ./VirtualBox -startvm
> [VM NAME]
>
> When you get an assertion, just continue, and the assertion should get
> logged. When the guest crashes, you can take a look at the various
> assertions, or post the log file (the one for that particular VirtualBox
> process).
>
> Regards,
>
> Michael
OK, I built the debug version and ran it with gdb. It still doesn't seem to
log much though. The guest OS, Windows 2000, halts with a blue screen
after trying to start the game.
This is the log file "2007-01-28-04-26-09.099-VBoxSVC-11480.log"
Log created: 2007-01-28T04:26:09.991161000Z
Executable: /home/benscott/vbox/out/linux.x86/debug/bin/VBoxSVC
Arg[0]: ./VBoxSVC
This is the log file "2007-01-28-04-26-24.066-VirtualBox-11485.log"
Log created: 2007-01-28T04:26:24.667804000Z
Executable: /home/benscott/vbox/out/linux.x86/debug/bin/VirtualBox
Arg[0]: /home/benscott/vbox/out/linux.x86/debug/bin/VirtualBox
This is gdb output for the XPCOM server:
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)
*********************************************
InnoTek VirtualBox XPCOM Server Version 1.3.3
(C) 2004-2006 InnoTek Systemberatung GmbH
All rights reserved.
Debug version.
Starting event loop....
[press Ctrl-C to quit]
Terminated event loop.
ipcDConnectService Stats
=> number of worker threads: 1
XPCOM server has shutdown.
nsStringStats
=> mAllocCount: 48
=> mReallocCount: 21
=> mFreeCount: 48
=> mShareCount: 86
=> mAdoptCount: 7
=> mAdoptFreeCount: 7
This is the gdb output for the main program:
[EMAIL PROTECTED]:~/vbox/out/linux.x86/debug/bin$ LD_LIBRARY_PATH=.
gdb --args ./VirtualBox
GNU gdb 6.5-debian
Copyright (C) 2006 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 "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) start
Breakpoint 1 at 0x8118e4f:
file /home/benscott/vbox/src/VBox/Frontends/VirtualBox/src/main.cpp, line
111.
Starting program: /home/benscott/vbox/out/linux.x86/debug/bin/VirtualBox
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1263556928 (LWP 11485)]
warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4
[Switching to Thread -1263556928 (LWP 11485)]
main (argc=1, argv=0xbfc0cb84)
at /home/benscott/vbox/src/VBox/Frontends/VirtualBox/src/main.cpp:111
111 RTR3Init (true, ~(size_t)0);
(gdb) cont
Continuing.
[New Thread -1264772176 (LWP 11488)]
[Thread -1264772176 (LWP 11488) exited]
Warning: VBOX_XPCOM_HOME not set.
Type Manifest
File: /home/benscott/vbox/out/linux.x86/debug/bin/components/xpti.dat
[New Thread -1267233872 (LWP 11489)]
[New Thread -1275626576 (LWP 11490)]
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)
[New Thread -1286354000 (LWP 11491)]
[Thread -1286354000 (LWP 11491) exited]
<<< Blue screen happens here and then
I exit the program >>>
ipcDConnectService Stats
=> number of worker threads: 1
[Thread -1275626576 (LWP 11490) exited]
[Thread -1267233872 (LWP 11489) exited]
nsStringStats
=> mAllocCount: 54
=> mReallocCount: 21
=> mFreeCount: 54
=> mShareCount: 90
=> mAdoptCount: 8
=> mAdoptFreeCount: 8
Program exited normally.
(gdb) quit
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users