Re: [Banshee-List] Running Banshee within GDB



On 11/1/06, Mark Gordon <mtgordon novell com> wrote:
http://banshee-project.org/Debugging has a bunch of tips for getting gdb
to work nicely with banshee.  Most of them are also at mono-project, but
since the banshee instructions can be more specific, there's a better
S/N ratio than in the instructions at mono-project.com

Thanks for the reply, Mark. Perhaps I'm missing something, but when I
run '' I'm getting an error.

"Banshee provides a banshee shell script that is installed to
$(prefix)/bin. It sets a few environment variables, and runs the mono
runtime program. This can be done manually from the command line, and
the Mono --debug option can be added."

Does "This can be done manually" refer to setting the environment
variables? My output is pasted below; keep in mind all I did was open
a terminal and try to start Banshee.

$ mono --debug /usr/lib/banshee/banshee.exe
libbanshee
System.DllNotFoundException: libbanshee
 at (wrapper managed-to-native)
Banshee.BansheeEntry:banshee_dbus_compat_thread_init ()
 at Banshee.BansheeEntry.Startup (System.String[] args) [0x00000] in
/build/buildd/banshee-0.11.1/src/Main.cs:51
 at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_string[] (string[])
 at Banshee.Gui.CleanRoomStartup.Startup
(Banshee.Gui.StartupInvocationHandler startup, System.String[] args)
[0x00045] in /build/buildd/banshee-0.11.1/src/Banshee.Base/Gui/CleanRoomStartup.cs:54

Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object
 at Banshee.Base.Branding.get_ApplicationIconName () [0x00000] in
/build/buildd/banshee-0.11.1/src/Banshee.Base/Branding.cs:104
 at Banshee.Base.IconThemeUtils.SetWindowIcon (Gtk.Window window)
[0x00000] in /build/buildd/banshee-0.11.1/src/Banshee.Base/IconThemeUtils.cs:105
 at Banshee.Gui.Dialogs.ExceptionDialog..ctor (System.Exception e)
[0x001f0] in /build/buildd/banshee-0.11.1/src/Banshee.Base/Gui/ExceptionDialog.cs:110
 at Banshee.Gui.CleanRoomStartup.Startup
(Banshee.Gui.StartupInvocationHandler startup, System.String[] args)
[0x0006b] in /build/buildd/banshee-0.11.1/src/Banshee.Base/Gui/CleanRoomStartup.cs:60
 at Banshee.BansheeEntry.Main (System.String[] args) [0x00000] in
/build/buildd/banshee-0.11.1/src/Main.cs:43


A similar thing happens if I try to run Banshee in gdb:

$ gdb --eval-command=run --args mono --debug
/usr/lib/banshee/banshee.exeGNU gdb 6.4.90-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".

Starting program: /usr/bin/mono --debug /usr/lib/banshee/banshee.exe
[Thread debugging using libthread_db enabled]
[New Thread -1210870080 (LWP 3956)]
[New Thread -1220187232 (LWP 3964)]
[New Thread -1220269152 (LWP 3967)]
libbanshee
System.DllNotFoundException: libbanshee
 at (wrapper managed-to-native)
Banshee.BansheeEntry:banshee_dbus_compat_thread_init ()
 at Banshee.BansheeEntry.Startup (System.String[] args) [0x00000] in
/build/buildd/banshee-0.11.1/src/Main.cs:51
 at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_string[] (string[])
 at Banshee.Gui.CleanRoomStartup.Startup
(Banshee.Gui.StartupInvocationHandler startup, System.String[] args)
[0x00045] in /build/buildd/banshee-0.11.1/src/Banshee.Base/Gui/CleanRoomStartup.cs:54

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210870080 (LWP 3956)]
0xb6452369 in ?? ()
(gdb) mono_backtrace 15
#0internal error in printf_command


I'm probably just doing something dumb, but I'm clueless as to what it is.

Thanks,
Andrew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]