gedit is unable to open files in some nfs3 mounts

Bug #326237 reported by Arne
2
Affects Status Importance Assigned to Milestone
gedit
Fix Released
High
gedit (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

I have two nfs servers, one runs a kernel-space nfs3, the other runs unfs3.
I'm able to mount shares from either nfs server (with the nolock option):

192.168.2.10:/homeExt /homeExt nfs defaults,nolock
192.168.2.8:/home /mnt nfs defaults,nolock

and I'm also able to open the files saved there with cat or vim. But when I try to open files with gedit in /mnt (the unfs3 share) gedit says it could not open the file and gives no further information. (Error message in German: Die Datei »/mnt/arne/test.txt« konnte nicht geöffnet werden. ). But I have no problems opening files on /homeExt with gedit.

I think this actually might not be a pure gedit problem, because I have got the same effect with ghex.

I also tried this on my laptop, which runs feisty and there I was able to open the files with gedit.

stats from my desktop:
$ lsb_release -rd
Description: Ubuntu 8.04.2
Release: 8.04
$ apt-cache policy gedit
gedit:
  Installiert:2.22.3-0ubuntu1
  Mögliche Pakete:2.22.3-0ubuntu1
  Versions-Tabelle:
 *** 2.22.3-0ubuntu1 0
        500 http://de.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     2.22.1-0ubuntu1 0
        500 http://de.archive.ubuntu.com hardy/main Packages

stats from my laptop:
$ lsb_release -rd
Description: Ubuntu 7.04
Release: 7.04
$ apt-cache policy gedit
gedit:
  Installiert:2.18.1-0ubuntu1
  Mögliche Pakete:2.18.1-0ubuntu1
  Versions-Tabelle:
 *** 2.18.1-0ubuntu1 0
        500 http://de.archive.ubuntu.com feisty/main Packages
        100 /var/lib/dpkg/status

PS: --g-fatal-warnings doesn't make it crash

ProblemType: Bug
Architecture: i386
Date: Fri Feb 6 16:58:11 2009
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.22.3-0ubuntu1
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux 2.6.24-23-generic i686

Tags: apport-bug

Related branches

Revision history for this message
Arne (arne-c-mueller-googlemail) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug, can you see the file correctly using gvfs-cat for example?

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Revision history for this message
Arne (arne-c-mueller-googlemail) wrote :

yes:

arne@arne:/mnt/arne$ gvfs-cat test.txt
huhu irgend ein text

lalala

arne@arne:/mnt/arne$

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

not sure what is the issue then but the bug should be sent to bugzilla.gnome.org where the people writting the software will read it by somebody having the issue

Revision history for this message
Arne (arne-c-mueller-googlemail) wrote :

interesting, I'm currently trying some of the other gvfs commands, the following output might be interesting:

arne@arne:/mnt/arne$ gvfs-open text.txt
gvfs-open: file:///mnt/arne/text.txt: Fehler beim Öffnen des Ortes: Fehler beim Untersuchen der Datei /mnt/arne/text.txt mit fstat(): No such file or directory
arne@arne:/mnt/arne$

arne@arne:/mnt/arne$ gvfs-info test.txt
display name: test.txt
edit name: test.txt
name: test.txt
type: regular
size: 30
attributes:
  standard::name: test.txt
  standard::type: 1
  standard::size: 30
  standard::display-name: test.txt
  standard::edit-name: test.txt
  standard::copy-name: test.txt
  standard::content-type: text/plain
  standard::icon: GThemedIcon:0x8056980
  standard::fast-content-type: text/plain
  unix::device: 23
  unix::inode: 8804771692546
  unix::mode: 33188
  unix::nlink: 1
  unix::uid: 1003
  unix::gid: 100
  unix::rdev: 0
  unix::block-size: 8192
  unix::blocks: 8
  time::modified: 1233604523
  time::modified-usec: 0
  time::access: 1234532582
  time::access-usec: 0
  time::changed: 1233936004
  time::changed-usec: 0
  etag::value: 1233604523:0
  id::file: l23:8804771692546
  id::filesystem: l23
  owner::user: arne
  owner::user-real: Arne Mueller
  owner::group: users
  access::can-read: TRUE
  access::can-write: TRUE
  access::can-execute: FALSE
  access::can-rename: TRUE
  access::can-delete: TRUE
  access::can-trash: FALSE
arne@arne:/mnt/arne$

Revision history for this message
Arne (arne-c-mueller-googlemail) wrote :

thanks a lot, I'll make a report at bugzilla.gnome.org then.

Revision history for this message
Arne (arne-c-mueller-googlemail) wrote :

Finally I found the fix:

both gedit and ghex are missing a AC_SYS_LARGEFILE in their autoconf configure scripts (configure.ac, configure.in).

adding a line with AC_SYS_LARGEFILE fixes it.

I've also posted this at the gedit bugtracker at bugzilla.gnome.org, thus I hope an updated version should be there soon.

For reference: It's bug 571632 there. ( http://bugzilla.gnome.org/show_bug.cgi?id=571632 )

cheers, Arne

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

thank you for your work to get that fixed in GNOME

Changed in gedit:
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gedit - 2.25.8-0ubuntu1

---------------
gedit (2.25.8-0ubuntu1) jaunty; urgency=low

  * New upstream version:
    - Misc bugfixes (lp: #326237)
  * debian/control.in:
    - updated gtksourceview requirement
  * debian/patches/01_lpi.patch:
    - new version update

 -- Sebastien Bacher <email address hidden> Mon, 02 Mar 2009 22:26:53 +0100

Changed in gedit:
status: Triaged → Fix Released
Changed in gedit:
status: Unknown → Fix Released
Changed in gedit:
importance: Unknown → High
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.