Package: gedit
Version: 2.30.3-1
Severity: normal

*** Please type your report below this line ***

This bug occures with gedit running in Debian Linux in VirtualBox on WinXP with an NTFS filesystem.

Editing a file on the host filesysten and saving it gives the following error in a red bar on the screen:

Could not save the file /C/Temp/test-gedit.
Unexpected error: Error renaming temporary file: Text file busy

** (gedit:20691): WARNING **: Hit unhandled case 0 (Error renaming temporary file: Text file busy) in parse_error.

The condensed strace output for this error is as follows:

20724 open("/C/Temp/test-gedit", O_RDWR|O_CREAT|O_LARGEFILE, 0666 <unfinished ...>
20724 <... open resumed> )              = 25
20724 open("/C/Temp/.goutputstream-P3PXHV", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666 <unfinished ...>
20724 <... open resumed> )              = 26
20724 write(26, "hallo\nhallo\nhallo\n\n\n", 20 <unfinished ...>
20724 <... write resumed> )             = 20
20724 unlink("/C/Temp/test-gedit~" <unfinished ...>
20724 <... unlink resumed> )            = 0
20724 link("/C/Temp/test-gedit", "/C/Temp/test-gedit~") = -1 EPERM (Operation not permitted)
20724 rename("/C/Temp/test-gedit", "/C/Temp/test-gedit~" <unfinished ...>
20724 <... rename resumed> )            = 0
20724 rename("/C/Temp/.goutputstream-P3PXHV", "/C/Temp/test-gedit" <unfinished ...>
20724 <... rename resumed> )            = -1 ETXTBSY (Text file busy)
20724 close(26 <unfinished ...>

This suggests the reason for the problem:
The .goutputstream-P3PXHV file is being renamed before it is closed.
I believe this is a problem on NTFS...


This also suggests a workaround: make sure the 'Create backup copy' editor mode is checked,
                 and do the save twice (ignoring the error on the first...)

Please change gedit and/or glib to aviod this error.

-- Package-specific info:
Active plugins:
  - quickopen
  - codecomment
  - commander
  - smartspaces
  - spell
  - drawspaces
  - bracketcompletion
  - docinfo
  - modelines
  - externaltools
  - time
  - filebrowser
  - terminal
  - multiedit

No plugin installed in $HOME.

Module versions:
  - glib                  2.24.1
  - gtk+                  2.20.1
  - gtksourceview         2.10.3
  - pygobject             2.21.1
  - pygtk                 2.17.0
  - pygtksourceview       2.10.1
  - enchant               1.6.0
  - iso-codes             3.19

Python module versions:
  - python                2.6.6rc1+
  - pygtk                 2.17.0 (GTK+ 2.20.1)


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gedit depends on:
ii gconf2 2.28.1-3 GNOME configuration database syste ii gedit-common 2.30.3-1 official text editor of the GNOME ii iso-codes 3.19-1 ISO language, territory, currency,
ii  libatk1.0-0                 1.30.0-1     The ATK accessibility toolkit
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-4 The Cairo 2D vector graphics libra ii libenchant1c2a 1.6.0-1 a wrapper library for various spel ii libgconf2-4 2.28.1-3 GNOME configuration database syste
ii  libglib2.0-0                2.24.1-1     The GLib library of C routines
ii libgtk2.0-0 2.20.1-1 The GTK+ graphical user interface ii libgtksourceview2.0-0 2.10.3-1 shared libraries for the GTK+ synt ii libice6 2:1.0.6-1 X11 Inter-Client Exchange library ii libpango1.0-0 1.28.1-1 Layout and rendering of internatio ii libpython2.6 2.6.6~rc1-1 Shared Python runtime library (ver
ii  libsm6                      2:1.1.1-1    X11 Session Management library
ii  libx11-6                    2:1.3.3-3    X11 client-side library
ii  libxml2                     2.7.7.dfsg-4 GNOME XML library
ii python 2.6.5-11 interactive high-level object-orie ii python-gobject 2.21.1-2 Python bindings for the GObject li ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge ii python-gtksourceview2 2.10.1-1 Python bindings for the GtkSourceV ii python-support 1.0.9 automated rebuilding support for P

Versions of packages gedit recommends:
ii python-gnome2 2.28.1-1 Python bindings for the GNOME desk ii zenity 2.30.0-1 Display graphical dialog boxes fro

gedit suggests no packages.

-- no debconf information




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to