gnome-appearance-properties attempting to access noexistent directory

Bug #218959 reported by Daniel Kopelove
2
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-control-center

Using: Ubuntu 8.04
gnome-control-center package version: 1:2.22.1-0ubuntu4

When I launch gnome-appearance-properties the gui comes up and is frozen. It will not respond to click on tabs or sliders. after 2 or 3 minutes the gui will become responsive and behave normally. At this time a couple of new entries are appended to /var/log/syslog. They are:

Apr 17 17:32:31 sputnikIII automount[5945]: >> mount.nfs: Connection timed out
Apr 17 17:32:31 sputnikIII automount[5945]: mount(nfs): nfs: mount failure duos:/home/.hidden on /home/.hidden
Apr 17 17:32:31 sputnikIII automount[5945]: failed to mount /home/.hidden

The Server log (duos) confirms that the directory requested does not exist:

Apr 17 17:29:59 duos mountd[31106]: can't stat exported dir /home/.hidden: No such file or directory
Apr 17 17:29:00 duos mountd[31106]: authenticated mount request from csel-40.csel:667 for /home/courses (/home)
Apr 17 17:29:07 duos mountd[31106]: authenticated mount request from csel-45.csel:850 for /home/.hidden (/home)

The issue is with this /home/.hidden

I don't know why gnome-appearance-properties is requesting it, but it doesn't exist and this is causing a long timeout issue.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Could you get a stacktrace while it's hanging?

Changed in gnome-control-center:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Could you get a stacktrace while it's hanging?

Revision history for this message
Daniel Kopelove (kopelovd) wrote :

Here is the stack trace. The program hangs at:

stat("/home/guests/swo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/guests/.hidden", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/guests/swo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/home/guests", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/home/.hidden", O_RDONLY) ****here**** = -1 ENOENT (No such file or directory)

Thanks!

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you get a stracktrace using gdb rather than a strace? install gnome-control-center-dbgsym libglib2.0-0-dbgsym libgtk2.0-0-dbgsym and use gdb as explained on https://wiki.ubuntu.com/Backtrace, you can use ctrl-C to get a prompt under gdb while the software is hanging

Revision history for this message
Daniel Kopelove (kopelovd) wrote :

Here is the gdb backtrace.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you install libgtk2.0-0-dbgsym and get a new stracktrace? Does doing a stat on the same filenames on a command line hangs too? Do you get the same issue using other applications?

Revision history for this message
Daniel Kopelove (kopelovd) wrote :

Hi,

Actually, libgtk2.0-0-dbgsym was already installed when I collected the stacktrace. I looked though the stacktrace and yes, I noticed that there were no debug symbols for the backtrace through the gtk functions. However, I don't know how to remedy this.

To answer your other questions: yes stat /home/.hidden hangs. There are other applications that hang also. For instance users-admin hangs while trying to access /home/syslog.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the lack of symbols might be due to a version mismatch between libgtk2.0-0-dbgsym and libgtk2.0-0, stating for those files to know if they are there might be required so it's not clear that's a gtk bug, you should rather fix your installation to not hang when something try to stat a file there

Revision history for this message
Daniel Kopelove (kopelovd) wrote :

stat of any file in the mounted share point (i.e. /home) that does not exist hangs. Stat of the same non-existent file on Ubuntu 7.10 returns immediately.

the 8.04 version of autofs is 4.1.4+debian-2.1ubuntu1
the 7.10 version of autofs is 4.1.4+debian-1

here is my auto.master file:
/home /etc/auto.home --timeout=15

here is my auto.home file
* -intr,soft,nosuid,rsize=8192,wsize=8192,udp duos:/home/&

These files are identical on the 7.10 and 8.04 installs
A wireshark trace on the 8.04 installation shows an immediate return of the NFSerror ENOENT (no such file or directory) so the issue is not with the network or network layer.

*********
While I do not understand why a bunch of gnome applications are trying to access files like /home/.hidden and /home/syslog I do not believe this is a gnome or gtk bug.
I am going to open a new bug with autofs

Thanks
*********

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing this task since that's not a GNOME bug

Changed in gnome-control-center:
status: Incomplete → Invalid
Revision history for this message
Ludwik Trammer (ludwik) wrote :
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.