After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347344 - Segmentation fault at DBus.Bus:GetSessionBus()
Segmentation fault at DBus.Bus:GetSessionBus()
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal critical
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 350482 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-07-12 21:23 UTC by Koike Kazuhiko
Modified: 2006-09-04 23:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Koike Kazuhiko 2006-07-12 21:23:21 UTC
Segmentation fault occurs at DBus.Bus:GetSessionBus()
in PowerManagement::FindInstance(). Banshee can't be launched.

I'm using dbus 0.61.
Comment 1 Aaron Bockover 2006-07-13 01:34:07 UTC
How about a trace? http://banshee-project.org/Debugging

This is not a blocker.
Comment 2 Koike Kazuhiko 2006-07-14 23:01:33 UTC
Back trace isn't helpful. But the problem is in DBus.Bus:GetSessionBus().

********************************
[kazhik@red:145]~% gdb mono
GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
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 "i386-redhat-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run /usr/local/lib/banshee/banshee.exe
Starting program: /usr/bin/mono /usr/local/lib/banshee/banshee.exe
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0xc1a000
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208633648 (LWP 3035)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread -1219708000 (LWP 3058)]
[New Thread -1219724384 (LWP 3059)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Initializing Component Connecting to GConf...
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Initializing Component Detecting network settings...
Warning: [2006/07/15 7:55:01] (Cannot connect to NetworkManager) - An available, working network connection will be assumed
Initializing Component Creating action manager...
Initializing Component Loading music library...
[New Thread -1227199584 (LWP 3061)]
(no debugging symbols found)
(no debugging symbols found)
Initializing Component Initializing GStreamer...
Initializing Component Initializing player engine...
Debug: [2006/07/15 7:55:04] (Default player engine) - GStreamer 0.10
Initializing Component Initializing Audio CD support...
Debug: [2006/07/15 7:55:04] (Audio CD Core Initialized) -
Setting MusicBrainz proxy to www.musicbrainz.org:80
[New Thread -1230021728 (LWP 3062)]
Initializing Component Initializing Digital Audio Player support...
[New Thread -1247433824 (LWP 3063)]
Initializing Component Initializing CD Burning support...

** (/usr/local/lib/banshee/banshee.exe:3035): WARNING **: nautilus_burn_drive_copy is deprecated please use nautilus_burn_drive_ref() instead
Initializing Component Initializing plugins...
[New Thread -1248281696 (LWP 3064)]
Audioscrobbler starting protocol engine
Initializing Component Initializing power management...

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 3035)

  • #0 ??
  • #1 ??
IP 0xef04c3 at offset 0x53 of method DBus.Bus:GetBus (DBus.Bus/BusType) (0xef0470 0xef0518)[domain 0x21f00 - banshee.exe]
$1 = 0
Comment 3 graphic23 2006-08-09 00:48:58 UTC
Confirmed on Fedora Core 5:-

Backtrace (well not really but the whole thing):

(gdb) run
Starting program: /usr/bin/mono --debug /usr/lib/banshee/banshee.exe
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0x4c0ac000
(no debugging symbols found)
<snip>
(no debugging symbols found) 
(no debugging symbols found)
Warning: [8/9/2006 12:42:07 AM] (Cannot connect to NetworkManager) - An available, working network connection will be assumed
[New Thread -1229771872 (LWP 30191)]
(no debugging symbols found)
Debug: [8/9/2006 12:42:11 AM] (Default player engine) - GStreamer 0.10
Debug: [8/9/2006 12:42:11 AM] (Audio CD Core Initialized) -
[New Thread -1231287392 (LWP 30192)]

** (/usr/lib/banshee/banshee.exe:30185): WARNING **: nautilus_burn_drive_copy is deprecated please use nautilus_burn_drive_ref() instead

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 30185)

  • #0 DBus.Bus:GetBus
  • #1 ??
Fedora Core 5 using:-

DBus 0.61
Mono 1.1.13.7

Comment 4 Koike Kazuhiko 2006-08-11 14:25:51 UTC
The same crash was reported as bug 350482. 
Comment 5 Ruben Vermeersch 2006-08-11 16:25:58 UTC
*** Bug 350482 has been marked as a duplicate of this bug. ***
Comment 6 Koike Kazuhiko 2006-08-24 22:22:38 UTC
I created a new Linux user account, changed to it by "su - <newuser>" in gnome-terminal, and launched banshee. Segmentation fault didn't occur.

I returned the account from <newuser> by "su - kazhik", and launched banshee. Segmentation fault didn't occur too.


********************************************
[kazhik@red:63]~% banshee
Warning: [08/25/2006 07:18:19] (Cannot connect to NetworkManager) - An available, working network connection will be assumed
Debug: [08/25/2006 07:18:20] (Default player engine) - GStreamer 0.10
Debug: [08/25/2006 07:18:20] (Audio CD Core Initialized) -

** (/usr/local/lib/banshee/banshee.exe:2876): WARNING **: nautilus_burn_drive_copy is deprecated please use nautilus_burn_drive_ref() instead
Setting MusicBrainz proxy to www.musicbrainz.org:80
Warning: [08/25/2006 07:18:20] (Power Management Call Failed) - Cannot find GNOME Power Manager: Unable to determine the address of the message bus
Warning: [08/25/2006 07:18:20] (Could not connect to D-Bus) - D-Bus support will be disabled for this instance: Unable to determine the address of the message bus

(Banshee:2876): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.
********************************************

Is dbus configuration wrong?
Comment 7 Aaron Bockover 2006-09-04 23:41:18 UTC
This is probably a distro-specific DBus/dbus-sharp problem. Additionally, it may also be a Mono problem. The GPM code in Banshee is not apparently at fault. In FindInstance, if there's a problem connecting to DBus or finding GPM on the session bus, an exception should be thrown by dbus-sharp, which will be properly handled in Banshee. However, it appears that Mono is just aborting when there's a DBus problem, which doesn't allow the proper Banshee error handling to even kick in.