← Back to team overview

desktop-packages team mailing list archive

[Bug 1280867] Re: nautilus segfaults in compare_by_display_name()

 

I'm also running into a segfault in compare_by_display_name(). A little
more info on a use case that can cause the issue:

I'm trying to browse the Windows network in nautilus. I go to
Places->Network and go into the Windows Network directory. All the
workgroups on the local network appear, and I try to enter one of them.
At this point nautilus hangs for a while and/or crashes in
compare_by_display_name().

If I run smbtree -N in the terminal, I see a bunch of servers and
clients in the offending workgroup. Normal Ubuntu clients (not set up
for serving) tend to appear as well. If one of the Ubuntu clients has a
hostname that is too long to be automatically converted to a NetBIOS
name, it shows up in the smbtree -N output with a blank NetBIOS name.
Example:

\\                          really-long-name-of-computer server (Samba,
Ubuntu)

This blank name is what causes this bug in nautilus. If I go into the
offending machines and give them a custom short NetBIOS name in
/etc/samba/smb.conf, and restart nmbd on them, the problem goes away and
I can browse the Windows network just fine. Perhaps
compare_by_display_name() is not handling a NULL or empty string
correctly? Either way, it looks like nmbd is auto-generating an empty
name, so I would argue that it has a bug that is indirectly causing this
bug at the same time.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1280867

Title:
  nautilus segfaults in compare_by_display_name()

Status in Nautilus:
  Confirmed
Status in nautilus package in Ubuntu:
  Triaged
Status in nautilus package in Fedora:
  Unknown

Bug description:
  samba, Ubuntu 14.04 (alpha)

  ProblemType: Crash
  DistroRelease: Ubuntu 14.04
  Package: nautilus 1:3.10.1-0ubuntu4
  ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
  Uname: Linux 3.13.0-8-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.13.2-0ubuntu4
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sun Feb 16 22:44:08 2014
  ExecutablePath: /usr/bin/nautilus
  GsettingsChanges: b'org.gnome.nautilus.list-view' b'default-column-order' b"['name', 'size', 'type', 'date_modified', 'date_accessed', 'owner', 'group', 'permissions', 'mime_type', 'where']"
  InstallationDate: Installed on 2014-02-15 (1 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140214)
  ProcCmdline: nautilus -n
  SegvAnalysis:
   Segfault happened at: 0x4bef0a:	movzbl (%r12),%ecx
   PC (0x004bef0a) ok
   source "(%r12)" (0x00000000) not located in a known VMA region (needed readable region)!
   destination "%ecx" ok
  SegvReason: reading NULL VMA
  Signal: 11
  SourcePackage: nautilus
  StacktraceTop:
   ?? ()
   ?? ()
   ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
   ?? ()
   ?? ()
  Title: nautilus crashed with SIGSEGV
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/1280867/+subscriptions