rhythmbox crashed with SIGSEGV in _nss_wins_gethostbyname_r()

Bug #570648 reported by Michael
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libubuntuone (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: rhythmbox

1) Ubuntu 10.04 RC (amd64)

2) Package Versions:

$ apt-cache policy rhythmbox samba winbind
rhythmbox:
  Installed: 0.12.8-0ubuntu3
  Candidate: 0.12.8-0ubuntu3
  Version table:
 *** 0.12.8-0ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

samba:
  Installed: 2:3.4.7~dfsg-1ubuntu3
  Candidate: 2:3.4.7~dfsg-1ubuntu3
  Version table:
 *** 2:3.4.7~dfsg-1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

winbind:
  Installed: 2:3.4.7~dfsg-1ubuntu3
  Candidate: 2:3.4.7~dfsg-1ubuntu3
  Version table:
 *** 2:3.4.7~dfsg-1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

3) and 4) I expected Rhythmbox to launch, but it crashed.

Additional Information:

I installed samba and used this guide to enable file sharing:
http://ubuntuforums.org/showthread.php?t=1169149

sudo aptitude install samba smbfs winbind

Then I changed workgroup and netbios name in smb.conf.

workgroup = MSHOME
netbios name = michael-vbox

Next I added WINS to nsswitch.conf for name resolution.

[original]
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

[modified]
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4

Finally, I restarted, and local network browsing worked.

However, rhythmbox crashes with a segmentation fault in _nss_wins_gethostbyname_r() which I assume is related to my changes.

ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: rhythmbox 0.12.8-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-21.32-preempt 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-preempt x86_64
Architecture: amd64
Date: Tue Apr 27 07:14:31 2010
ExecutablePath: /usr/bin/rhythmbox
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
ProcCmdline: rhythmbox --debug
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
SegvAnalysis:
 Segfault happened at: 0x7fe40cdd3e4c <_nss_wins_gethostbyname_r+828>: movl $0x0,(%rax)
 PC (0x7fe40cdd3e4c) ok
 source "$0x0" ok
 destination "(%rax)" (0x00000000) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: rhythmbox
StacktraceTop:
 _nss_wins_gethostbyname_r ()
 gethostbyname2_r () from /lib/libc.so.6
 ?? () from /lib/libc.so.6
 getaddrinfo () from /lib/libc.so.6
 ?? () from /usr/lib/libgio-2.0.so.0
Title: rhythmbox crashed with SIGSEGV in _nss_wins_gethostbyname_r()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (polkit-gnome-authentication-agent-1:1122): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-terminal:1324): Gtk-CRITICAL **: gtk_accel_map_unlock_path: assertion `entry != NULL && entry->lock_count > 0' failed

Revision history for this message
Michael (null-pointer-us) wrote :
Revision history for this message
Michael (null-pointer-us) wrote :

To clarify:

Rhythmbox now crashes immediately every time I try to run it.

Before installing samba and making name resolution changes, rhythmbox launched fine every time.

visibility: private → public
Revision history for this message
Michael (null-pointer-us) wrote :

My bug is a possible duplicate of this one:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox-ubuntuone-music-store/+bug/529714

(Note: the rhythmbox package version is different.)

I see the other bug reporter has samba, too. I'm still assuming that's related.

Revision history for this message
Michael (null-pointer-us) wrote :

I can confirm that reverting the nsswitch.conf line back to its original fixes rhythmbox:

Next I added WINS to nsswitch.conf for name resolution.

[modified - BREAKS RHYTHMBOX]
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4

[original - BREAKS SAMBA]
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

However, this breaks local network browsing (again).

Revision history for this message
Michael (null-pointer-us) wrote :

Ignore this line in previous comment:

-Next I added WINS to nsswitch.conf for name resolution.

Sorry, I was copy+pasting and forgot to remove that line.

Revision history for this message
Michael (null-pointer-us) wrote :

I see this may be a problem with the Ubuntu One Music Store plugin:

$ apt-cache policy rhythmbox-ubuntuone-music-store
rhythmbox-ubuntuone-music-store:
  Installed: 0.0.9-0ubuntu1
  Candidate: 0.0.9-0ubuntu1
  Version table:
 *** 0.0.9-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

I'll try removing it and re-adding wins to nsswitch.conf to confirm if the plugin is the cause of the segfault.

Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 _nss_wins_gethostbyname_r (
 __gethostbyname2_r (
 gaih_inet (name=<value optimized out>,
 *__GI_getaddrinfo (name=0x1a11c40 "one.ubuntu.com",
 do_lookup_by_name (req=0x20009e0, error=0x2000a08)

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in rhythmbox (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Michael (null-pointer-us) wrote :

Adding wins to nsswitch.conf and removing package rhythmbox-ubuntuone-music-store had the following effect: Rhythmbox would now launch properly and the interface appeared to be working; however, clicking on the Last.fm category on the left immediately crashes rhythmbox. Additionally, hovering the mouse cursor over that Last.fm category appears to crash rhythmbox.

I'm attaching a debug file created with:
rhythmbox --debug | rhythmbox-crash-debug-0.txt

...and a second file containing the console output.

It shows a problem with the audioscrobbler feature of Last.fm.

Neither this Last.fm problem, nor the Ubuntu One Music Store problem, occurs when wins is removed from nsswitch.conf.

Revision history for this message
Michael (null-pointer-us) wrote :
Revision history for this message
Michael (null-pointer-us) wrote :
Revision history for this message
Michael (null-pointer-us) wrote :

Nope, it's all still to do with Ubuntu One Music Store.

To summarize my findings so far:

Case 1:
> rhythmbox-ubuntuone-music-store package INSTALLED
> wins entry REMOVED in nsswitch.conf
Result: Works fine.

Case 2:
> rhythmbox-ubuntuone-music-store package INSTALLED
> wins entry PRESENT in nsswitch.conf
Result: Launch immediately segfaults.

Case 3:
> rhythmbox-ubuntuone-music-store package REMOVED
> wins entry PRESENT in nsswitch.conf
Result: Launches fine but crashes after a few seconds, consistently with error about Ubuntu One Music Store.

affects: rhythmbox (Ubuntu) → libubuntuone (Ubuntu)
Revision history for this message
Toyota4Runner (curiousgeorge77) wrote :

I too have the same problem. It seems to do with the libnss_wins.so.2. One way I got around with keeping wins installed and able to continue using rhythmbox is remove wins from nsswitch.conf (restart samba/winbind). Start rhythmbox. Goto plugins and uncheck Magnatude, Last.FM, Ubuntuone and Jamendo. I then quit rhythmbox and added wins back to nsswitch.conf (restart samba and winbind). I am now able to use rhythmbox and wins for name resolution.

Revision history for this message
razor7 (ghiamar) wrote :

Confirm that enabling winbind package and clicking Last.fm icon in Rhythmbox, produces a crash.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.