Red Hat Bugzilla – Bug 432249
View properties for directory crashes for invalid uid/gid
Last modified: 2015-03-03 17:32:01 EST
Description of problem:
When attempting to view properties for a directory which has uid/gid which is
not assigned to a user or group, Nautilus will crash and restart.
Discovered this when I copied a .ssh directory from FC7 to F8. The uid and gid
for the user was not the same between the versions. Doing a dir showed 501 for
uid and gid rather than user ids.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mkdir qq
2. chown 999:999 qq
3. Try to view properties for qq
Assumes 999 was not previously assigned to a group or user.
Crash and restart
Properties dialog to be displayed
Tested on clean Fedora 8 and confirming it's working for me.
Please confirm the directory is created on local filesystem (e.g. /tmp/...).
Also please provide versions of nautilus and gnome-vfs2 packages (use 'rpm -qa |
Created attachment 296302 [details]
bug buddy crash dump
I am running the most current updates:
Also saw problem with:
I have F8 installed on 3 machines (i386, x86_64, x86_64) and all show the
problem. Although, I get slightly different results.
Further experimentation, narrowed the problem down.
1. Files are ok, problem only happens for directories.
2. Problem only happens when logged in as root.
3. As a test, installed from DVD distribution without updating.
Same problem occurred.
However, here I did get a bug buddy dialog and dump, which I attached. The error
is a NULL pointer to g_strsplit, now that makes it easier. Looking at the
nautilus-2.20.0 source from gnome.org, I see the problem in
src/file-manager/fm-properties-window.c The callback, changed_owner_callback()
calls combobox_get_active_entry() to get the "owner_text" which is passed to
g_strsplit() in the following line. Problem is, combobox_get_active_entry() will
return NULL if no owner is selected. Likely is the case for an unknown user
name. So, the g_strsplit() bombs because of the NULL pointer.
Problem also still persists in F9 alapha with the latest update:
Created attachment 297205 [details]
Thanks for the info, I didn't realized this is a root issue. Patch attached.
nautilus-2.20.0-9.fc8 has been submitted as an update for Fedora 8
nautilus-2.20.0-9.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
Tested with nautilus-2.20.0-9.fc8. Problem is solved and how properties works
correctly. So this bug probably could be closed.