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 644030 - Segmentation fault when playing an album if Apple Devices Support extension enabled
Segmentation fault when playing an album if Apple Devices Support extension e...
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: Playback
1.9.4
Other Linux
: Normal critical
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-06 16:38 UTC by Jim Patterson
Modified: 2011-03-08 20:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Stdout when running "banshee --debug" (10.20 KB, text/plain)
2011-03-06 16:38 UTC, Jim Patterson
Details
Stderr when running "banshee --debug" (2.69 KB, text/plain)
2011-03-06 16:39 UTC, Jim Patterson
Details
stdout with --debug (no attached phone) (10.10 KB, text/plain)
2011-03-06 23:09 UTC, Jim Patterson
Details
stderr with --debug (no attached phone) (2.70 KB, text/plain)
2011-03-06 23:10 UTC, Jim Patterson
Details
Traceback using gdb of fault. (1.12 KB, text/plain)
2011-03-08 18:39 UTC, Jim Patterson
Details

Description Jim Patterson 2011-03-06 16:38:58 UTC
Created attachment 182614 [details]
Stdout when running "banshee --debug"

Banshee quits with a "segmentation fault" as soon as I try to play an album. Most of my music is in OGG format; I don't know if this is related. It doesn't seem to be since I can reproduce it on an mp3 album as well.The timing is a bit different - I can hear just a bit of music from the MP3 file before it falls over, but get no sound at all on the .ogg file. It doesn't matter if I play an album, or just one track. All music is stored on the local hard drive.

I noted this first with version 1.8.0, from the Ubuntu 10.10 repository. I've upgraded to 1.9.4 from http://ppa.launchpad.net/banshee-team/banshee-unstable/ubuntu but get the same behaviour.

Output and errors when run as "banshee --debug" is attached.
Comment 1 Jim Patterson 2011-03-06 16:39:41 UTC
Created attachment 182615 [details]
Stderr when running "banshee --debug"
Comment 2 David Nielsen 2011-03-06 16:42:34 UTC
Looking at the log this might be Alan country
Comment 3 David Nielsen 2011-03-06 22:33:24 UTC
It looks like there is an iPod attached, can you please unplug the iPod and any other media players, then attach a new Debug log?
Comment 4 Jim Patterson 2011-03-06 23:08:44 UTC
Definitely no IPod - I don't own one. It's possible my Android phone was connected to USB but detaching it doesn't change anything.

I'll attach some new logs with no attached devices, just to be sure.
Comment 5 Jim Patterson 2011-03-06 23:09:34 UTC
Created attachment 182644 [details]
stdout with --debug (no attached phone)
Comment 6 Jim Patterson 2011-03-06 23:10:18 UTC
Created attachment 182646 [details]
stderr with --debug (no attached phone)
Comment 7 David Nielsen 2011-03-06 23:53:03 UTC
Can you try unloading the Apple Devices Extension entirely in the preferences, just to rule it out since it complains in the log.

[3 Info  18:01:09.722] AppleDeviceSource is ignoring unmounted volume /boot
[3 Warn  18:01:09.732] Caught an exception - System.InvalidOperationException: Operation is not valid due to the current state of the object (in `Banshee.Dap.AppleDevice')
  at Banshee.Dap.AppleDevice.AppleDeviceSource.DeviceInitialize (IDevice device) [0x0026b] in /build/buildd/banshee-1.9.4/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs:119 
  at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /build/buildd/banshee-1.9.4/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 
[3 Info  18:01:09.745] AppleDeviceSource is ignoring unmounted volume 17 GB Filesystem
[3 Warn  18:01:09.746] Caught an exception - System.InvalidOperationException: Operation is not valid due to the current state of the object (in `Banshee.Dap.AppleDevice')
  at Banshee.Dap.AppleDevice.AppleDeviceSource.DeviceInitialize (IDevice device) [0x0026b] in /build/buildd/banshee-1.9.4/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs:119 
  at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /build/buildd/banshee-1.9.4/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162
Comment 8 David Nielsen 2011-03-06 23:55:26 UTC
Also can you separately try to disable gapless playback?
Comment 9 Jim Patterson 2011-03-07 00:47:00 UTC
The "Apple Devices Support" a.k.a IPod extension seems to be the culprit. If I disable it, the problem goes away (I need to restart Banshee first). I've renamed this bug to show this association.

The Gapless playback setting doesn't matter.
Comment 10 David Nielsen 2011-03-07 02:44:30 UTC
Excellent, thank you.
Comment 11 Alan McGovern 2011-03-08 12:19:28 UTC
I find it hard to believe that the AppleDevice extension is causing this issue as it is not attempting to load any volume as media source. The two exceptions shown above are perfectly normal and are just the extension saying "hey, these two partitions you told me to checkout aren't ipods/iphones so I'm not loading them. Ask someone else to load them".

To figure out what's gone wrong you'll have to install gdb and the debug symbols for the banshee related packages and then attach the stacktrace from the crash. This could easily be the bug in ubuntu where it blows up resolving some hostnames into IP addresses.
Comment 12 Jim Patterson 2011-03-08 18:39:08 UTC
It's not quite as easy as that as I'm not set up for Mono development, but I've hacked together a working debug environment.

Your idea that it might have to do with name resolution seems to be on the mark. The traceback points to System_Net_Dns_GetHostByName and within that, the fault is inside _nss_wins_gethostbyname_r. I'll attach the trace. I don't have the full symbols, but enough to see this much. 

Just for fun, I removed "wins" from /etc/nsswitch.conf, and it no longer falls over even with the Apple extension enabled. So, it seems to be related to both these things - the Apple extension, and the wins name resolver.
Comment 13 Jim Patterson 2011-03-08 18:39:56 UTC
Created attachment 182849 [details]
Traceback using gdb of fault.
Comment 14 Alan McGovern 2011-03-08 20:21:41 UTC
Perfect, that's what I thought it was :) This is not a banshee/gnome issue and there's nearly nothing we can do to work around it. If you google for the name you'll see dozens of bugs reported against different software for this issue. This was supposed to be fixed in 9.x. Obviously it hasn't been. The issue is a dupe of https://bugs.launchpad.net/ubuntu/+source/samba/+bug/659334 , so you could try pinging them about it. I'm not sure what the recommended workaround is other than what you've just done.

Sorry I can't help any more.