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 700492 - Nautilus opened as root user crashes when trying to view properties of file/folder owned by "normal" user: ERROR:nautilus-properties-window.c:1836:schedule_owner_change_timeout: assertion failed: (NAUTILUS_IS_FILE (file))
Nautilus opened as root user crashes when trying to view properties of file/f...
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File Properties Dialog
3.6.x
Other Linux
: High critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-16 22:05 UTC by Leonardo Donelli
Modified: 2015-02-02 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Backtrace (13.06 KB, text/plain)
2013-05-17 10:39 UTC, Leonardo Donelli
  Details
Fixes crash with assertion failure when changing owner/group. (5.84 KB, patch)
2013-09-12 00:58 UTC, PBS
none Details | Review
Fixes crash with assertion failure when changing owner/group. (5.84 KB, patch)
2013-09-12 01:00 UTC, PBS
none Details | Review
Fixes crash with assertion failure when changing owner/group. (3.98 KB, patch)
2013-09-12 12:49 UTC, PBS
none Details | Review
Fix crashing on owner/group change (5.16 KB, patch)
2013-09-13 14:18 UTC, PBS
none Details | Review
An improved fix, updated against 3.8.2 (8.85 KB, patch)
2013-12-09 01:31 UTC, PBS
none Details | Review

Description Leonardo Donelli 2013-05-16 22:05:01 UTC
I encountered this bug when trying to replicate bug https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/822993.

How to reproduce:
1) Open nautilus as root: 'gksudo nautilus'
2) Right click on a folder/file owned by normal user -> Properties

Expected result:
 - Properties window

What happens
 - Nautilus crashes with error: ERROR:nautilus-properties-window.c:1836:schedule_owner_change_timeout: assertion failed: (NAUTILUS_IS_FILE (file))

Ubuntu 13.04
Nautilus 1:3.6.3-0ubuntu16
Comment 1 António Fernandes 2013-05-17 09:09:04 UTC
Thanks for taking the time to report this bug.
Without a stack trace from the crash it's very hard to determine what caused it.
Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 2 André Klapper 2013-05-17 10:14:29 UTC
Does this also happen as a normal user?
Comment 3 Leonardo Donelli 2013-05-17 10:29:35 UTC
No, it doesn't happen as normal user. Maybe the problem is gksudo?

I generated a backtrace, but there are a lot of 'no symbol table info avaiable' messages. I installed only nautilus-dbg, what others *-dbg packages should I install?
Comment 4 Leonardo Donelli 2013-05-17 10:39:42 UTC
Created attachment 244503 [details]
Backtrace

This is the backtrace with debugging symbols from nautilus, glib e libgtk.
Comment 5 PBS 2013-09-12 00:58:05 UTC
Created attachment 254748 [details] [review]
Fixes crash with assertion failure when changing owner/group.
Comment 6 PBS 2013-09-12 01:00:25 UTC
Created attachment 254749 [details] [review]
Fixes crash with assertion failure when changing owner/group.
Comment 7 PBS 2013-09-12 12:48:19 UTC
Please ignore the previous (double-posted) patches. In addition to this bug, they fix an unrelated bug which has yet to be filed. Meanwhile, here is another patch.
Comment 8 PBS 2013-09-12 12:49:00 UTC
Created attachment 254780 [details] [review]
Fixes crash with assertion failure when changing owner/group.
Comment 9 PBS 2013-09-13 14:18:29 UTC
Created attachment 254863 [details] [review]
Fix crashing on owner/group change

Ignore previous patches, hopefully this one is final.
Please see http://bugzilla.gnome.org/show_bug.cgi?id=707987 for a related issue that will occur when this is fixed.
Comment 10 PBS 2013-12-09 01:31:49 UTC
Created attachment 263782 [details] [review]
An improved fix, updated against 3.8.2
Comment 11 Bruce Pieterse 2015-01-08 02:36:51 UTC
I can confirm that this was happening on 3.10.1 and 3.12.2 as well. This commit https://git.gnome.org/browse/nautilus/commit/?id=f7d1394a03e6d02cd5c67f9c85a142e33f14566f fixes both this issue and https://bugs.launchpad.net/ubuntu-gnome/+bug/1405441