[Bug 1051952] Re: Nautilus and Thunar freeze system when trashing files in kerberized, NFS mounted homes

Jan Sanders jsanders at techfak.uni-bielefeld.de
Wed Sep 19 11:40:57 UTC 2012


The following will trigger the behaviour, so the common cause seems to
be libgio:

#include <gio/gio.h>
#include <stdio.h>

int main(int argc, char **argv)
{  char *path;
   GFile *file;

   g_type_init();

   if(argc != 2) exit(1);

   path=argv[1];

   printf("Moving %s to trash...\n", path);

   file = g_file_new_for_path(path);

   /* The following call hangs for about one minute
      if path points to NFSv4 mounted volumes with
      Kerberos, then succeeds. */

   if (g_file_trash(file, NULL, NULL))
     printf("true\n");
   else
     printf("false\n");
}

** Also affects: glib2.0 (Ubuntu)
   Importance: Undecided
       Status: New

** Summary changed:

- Nautilus and Thunar freeze system when trashing files in kerberized, NFS mounted homes
+ libgio's move-to-trash funciton freezes system when trashing files in kerberized, NFS mounted filesystems

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1051952

Title:
  libgio's move-to-trash funciton freezes system when trashing files in
  kerberized, NFS mounted filesystems

Status in “glib2.0” package in Ubuntu:
  New
Status in “nautilus” package in Ubuntu:
  New
Status in “thunar” package in Ubuntu:
  New

Bug description:
  Description:    Ubuntu 12.04.1 LTS
  Release:        12.04

  nautilus:
    Installed: 1:3.4.2-0ubuntu4
    Candidate: 1:3.4.2-0ubuntu4
    Version table:
   *** 1:3.4.2-0ubuntu4 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       1:3.4.1-0ubuntu1 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  thunar:
    Installed: 1.2.3-3ubuntu2
    Candidate: 1.2.3-3ubuntu2
    Version table:
   *** 1.2.3-3ubuntu2 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
          100 /var/lib/dpkg/status


  The setting is:

  - the user joeuser has a home directory which is mounted via NFS Version 4
  - the NFS4 mount uses Kerberos (-o sec=krb5) for authentication, which is the only non-default mount option
  - the user uses either Nautilus or Thunar as a graphical file manager
  - the user moves a small number of files to trash using either Thunar or Nautilus, after at most 20 times (independent on uptime or login time) the bug emerges: when the user moves file ~/foobar_21 to trash the operation takes a very long time (30 secs and longer)
  - during the wait we have observerd that nautious/thunar and other applications freeze or will not start
  -- top, as joeuser, will not start until the file ~/foobar_21 has been moved to trash
  -- cat ~/myfile.txt does not work until the file has been moved to trash
  -- the Thunar and Nautilus windows are not redrawn
  - ls does work and we can see that the original file ~/foobar_21 is deleted shortly before the end of the wait time

  The file managers Dolphin and Xfe work as expected taking well under a second to trash files.
  Other file managers have not been tested.

  
  FTR:
  dolphin:
    Installed: 4:4.8.4-0ubuntu0.1
    Candidate: 4:4.8.4-0ubuntu0.1
    Version table:
   *** 4:4.8.4-0ubuntu0.1 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       4:4.8.2-0ubuntu2 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  xfe:
    Installed: 1.32.4-3
    Candidate: 1.32.4-3
    Version table:
   *** 1.32.4-3 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
          100 /var/lib/dpkg/status

  nfs-common:
    Installed: 1:1.2.5-3ubuntu3
    Candidate: 1:1.2.5-3ubuntu3
    Version table:
   *** 1:1.2.5-3ubuntu3 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status

  krb5-user:
    Installed: 1.10+dfsg~beta1-2ubuntu0.3
    Candidate: 1.10+dfsg~beta1-2ubuntu0.3
    Version table:
   *** 1.10+dfsg~beta1-2ubuntu0.3 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
          500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
          100 /var/lib/dpkg/status
       1.10+dfsg~beta1-2 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

  Linux HOSTNAME 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC
  2012 x86_64 x86_64 x86_64 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1051952/+subscriptions




More information about the foundations-bugs mailing list