[13.04, 13.10, 14.04, 14.10] Nautilus crashed with SIGABRT in g_assertion_message() when trying to open file/folder's property dialog as root.

Bug #1106283 reported by V字龍(Vdragon) on 2013-01-26
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Nautilus
New
Critical
nautilus (Ubuntu)
Medium
PBS

Bug Description

I tried to move a file(which is the lastpass installer tarball lplinux.tar.bz2 from http://lastpass.com ) from another user's home directory to mine download folder(Which as been converted to "~/下載" in Traditional Chinese), then tried to change its UID & GID to me...as root
UID changed successfully
When I clicked on the GID selection box...it hangs for a few second and crashed:(

To move further, I tried to open the property dialog of my home directory(/home/Vdragon)... crashed too.

It seems that any of file/directory belongs to me is affected. 100% reproducible.

Before nautilus crashed, a error window showes instantly(then vanished).
I tried to capture it as the attachment.

I suspect this issue is related to I used UTF-8 Chinese characters("林博仁") as my ... name
$ getent passwd Vdragon
Vdragon:x:1001:1001:林博仁,,,:/home/Vdragon:/bin/bash

then nautilus tried to grab my ...name for displaying UID, GID of my file/folder...then BANG

There will be no issue if I don't execute nautilus as root then see my file's properties.(however nautilus won't try to show the UID refers to who in this case)

Backtrace(since this is my first time doing this, please tell me if I missed something; ):
#0 0x00007f675f0aae35 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#1 0x00007f675f0ae498 in __GI_abort () at abort.c:90
#2 0x00007f675fbd9a66 in g_assertion_message (domain=domain@entry=0x0,
    file=file@entry=0x4fd704 "nautilus-properties-window.c",
    line=line@entry=1836,
    func=func@entry=0x4fe770 <__PRETTY_FUNCTION__.50289> "schedule_owner_change_timeout", message=<optimized out>)
    at /build/buildd/glib2.0-2.35.4/./glib/gtestutils.c:1892
#3 0x00007f675fbd9fc4 in g_assertion_message_expr (domain=domain@entry=0x0,
    file=file@entry=0x4fd704 "nautilus-properties-window.c",
    line=line@entry=1836,
    func=func@entry=0x4fe770 <__PRETTY_FUNCTION__.50289> "schedule_owner_change_timeout", expr=expr@entry=0x4f73d8 "NAUTILUS_IS_FILE (file)")
    at /build/buildd/glib2.0-2.35.4/./glib/gtestutils.c:1903
#4 0x000000000045f59e in schedule_owner_change_timeout (window=0x2954050,
    window@entry=<error reading variable: value has been optimized out>)
    at nautilus-properties-window.c:1836
#5 0x00007f675fbb81ab in g_timeout_dispatch (source=source@entry=0x2a37e80,
    callback=<optimized out>, user_data=<optimized out>)
    at /build/buildd/glib2.0-2.35.4/./glib/gmain.c:4095
#6 0x00007f675fbb75a5 in g_main_dispatch (context=0x230a5d0)
    at /build/buildd/glib2.0-2.35.4/./glib/gmain.c:2784
---Type <return> to continue, or q <return> to quit---+
#7 g_main_context_dispatch (context=context@entry=0x230a5d0)
    at /build/buildd/glib2.0-2.35.4/./glib/gmain.c:3288
#8 0x00007f675fbb78e8 in g_main_context_iterate (
    context=context@entry=0x230a5d0, block=block@entry=1,
    dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.35.4/./glib/gmain.c:3359
#9 0x00007f675fbb79a4 in g_main_context_iteration (context=0x230a5d0,
    context@entry=0x0, may_block=may_block@entry=1)
    at /build/buildd/glib2.0-2.35.4/./glib/gmain.c:3420
#10 0x00007f676015e9cc in g_application_run (application=0x22d1030,
    argc=argc@entry=1, argv=argv@entry=0x7fffd6d42948)
    at /build/buildd/glib2.0-2.35.4/./gio/gapplication.c:1620
#11 0x000000000042b6cb in main (argc=1, argv=0x7fffd6d42948)
    at nautilus-main.c:103

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: nautilus 1:3.6.3-0ubuntu5
ProcVersionSignature: Ubuntu 3.8.0-1.5-generic 3.8.0-rc4
Uname: Linux 3.8.0-1-generic x86_64
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
Date: Sun Jan 27 02:42:56 2013
ExecutablePath: /usr/bin/nautilus
GsettingsChanges: b'org.gnome.nautilus.window-state' b'geometry' b"'927x1027+66+24'"
InstallationDate: Installed on 2013-01-26 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130126)
MarkForUpload: True
ProcCmdline: nautilus
Signal: 6
SourcePackage: nautilus
StacktraceTop:
 raise () from /lib/x86_64-linux-gnu/libc.so.6
 abort () from /lib/x86_64-linux-gnu/libc.so.6
 g_assertion_message () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_assertion_message_expr () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 ?? ()
Title: nautilus crashed with SIGABRT in raise()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

V字龍(Vdragon) (vdragon) wrote :
Changed in nautilus (Ubuntu):
importance: Undecided → Medium
summary: - nautilus crashed with SIGABRT in raise() when trying to modify a file's
- GID as root
+ nautilus crashed with SIGABRT in g_assertion_message() when trying to
+ modify a file's GID as root
tags: removed: need-amd64-retrace
description: updated
information type: Private → Public
summary: nautilus crashed with SIGABRT in g_assertion_message() when trying to
- modify a file's GID as root
+ open file/folder's property dialog as root where file/folder belongs to
+ user with Unicode CJK name.
description: updated

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
summary: - nautilus crashed with SIGABRT in g_assertion_message() when trying to
- open file/folder's property dialog as root where file/folder belongs to
- user with Unicode CJK name.
+ [quantal]nautilus crashed with SIGABRT in g_assertion_message() when
+ trying to open file/folder's property dialog as root where file/folder
+ belongs to user with Unicode CJK name.
summary: - [quantal]nautilus crashed with SIGABRT in g_assertion_message() when
+ [13.04]nautilus crashed with SIGABRT in g_assertion_message() when
trying to open file/folder's property dialog as root where file/folder
belongs to user with Unicode CJK name.

I had a similar problem too. I was trying to browse to another users home folder to check disk usage. I launched a root nautilus through gksu nautilus. When I right clicked on the folder (in this case 'pictures') and selected properties I got the crash. Aport pointed me to this bug rather than reporting a new one, so I'm adding a little bit more information.

Firstly, the user in question is just a simple ASCII name ('betty') rather than from the extended character set (but, of course, it may not matter which part of the character set the characters come from). The dialogue as reported in the original bug appeared, but I wasn't trying to change the user and as I was running from a terminal it reported the following:

ERROR:nautilus-properties-window.c:1836:schedule_owner_change_timeout: assertion failed: (NAUTILUS_IS_FILE (file))

PBS (pbs3141) on 2013-09-11
Changed in nautilus (Ubuntu):
assignee: nobody → PBS (pbs3141)
PBS (pbs3141) on 2013-09-11
Changed in nautilus (Ubuntu):
status: Confirmed → In Progress
PBS (pbs3141) wrote :

Since my messages don't seem to be arriving at the Nautilus mailing list I'm posting the two patches here, at least so that they can be tested by other people.

description: updated

The attachment "diff1.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in nautilus:
importance: Unknown → Critical
status: Unknown → New
PBS (pbs3141) wrote :

The bug is still present in 13.10. Nautilus developers are not replying, so I'll post this updated fix for nautilus 3.8.2 here.

PBS (pbs3141) on 2014-03-14
summary: - [13.04]nautilus crashed with SIGABRT in g_assertion_message() when
- trying to open file/folder's property dialog as root where file/folder
- belongs to user with Unicode CJK name.
+ [13.04, 13.10, 14.04] Nautilus crashed with SIGABRT in
+ g_assertion_message() when trying to open file/folder's property dialog
+ as root.

Still present in 14.04 with nautilus 3.10.1. The patch above remains. It would be nice if this were fixed in the LTS release.

V字龍(Vdragon) (vdragon) wrote :

Reproducible in Ubuntu 14.10

summary: - [13.04, 13.10, 14.04] Nautilus crashed with SIGABRT in
+ [13.04, 13.10, 14.04, 14.10] Nautilus crashed with SIGABRT in
g_assertion_message() when trying to open file/folder's property dialog
as root.
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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