gedit crashes when I save / open file

Bug #189494 reported by Baptiste Mille-Mathias
100
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Critical
gtk+2.0 (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

gedit 2.21.1-0ubuntu2 from hardy

When I press Ctrl+S ou if I choose Menu -> Save, gedit crashes, it is 100% reproductible

ProblemType: Crash
Architecture: i386
CrashCounter: 1
Date: Wed Feb 6 07:29:33 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gedit
NonfreeKernelModules: nvidia
Package: gedit 2.21.1-0ubuntu2
PackageArchitecture: i386
ProcCmdline: gedit
ProcCwd: /home/baptiste
ProcEnviron:
 PATH=/home/baptiste/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: gedit
StacktraceTop:
 strchr () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /usr/lib/libgtk-x11-2.0.so.0
 ?? ()
 ?? ()
 ?? ()
Title: gedit crashed with SIGSEGV in strchr()
Uname: Linux mushroom 2.6.24-5-generic #1 SMP Thu Jan 24 19:45:21 UTC 2008 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy kvm lpadmin netdev plugdev powerdev scanner video
SegvAnalysis:
 Segfault happened at: 0xb73d9ab7 <strchr+23>: mov (%eax),%cl
 PC (0xb73d9ab7) ok
 source "(%eax)" (0x00000003) not located in a known VMA region (needed readable region)!
 destination "%cl" ok
SegvReason: reading NULL VMA

Tags: apport-crash

Related branches

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:strchr () from /lib/tls/i686/cmov/libc.so.6
_gtk_file_chooser_label_for_uri (uri=0x895a510 "/home/baptiste/Documents")
shortcuts_insert_path (impl=0x87cd1f0, pos=8, shortcut_type=SHORTCUT_TYPE_PATH,
shortcuts_add_bookmarks (impl=0x87cd1f0)
gtk_file_chooser_default_set_property (object=0x87cd1f0, prop_id=4099, value=0xbfa38d98,

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Apport retracing service (apport) wrote : Stack trace with source code
Changed in gedit:
importance: Undecided → Medium
Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

The crash also happens when I open a file in gedit, it also happens with some programs (I found gimp) but not with gedit or with zenity --file-selection; so it could be with gtk or glib.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

Something weird in my filechooser is I'm missing some XDG shortcuts, I have Music, Pictures and Downloads; but I don't have Documents and Vidéos. I'm sure they were present few days or weeks ago.

Not sure this is related

Content of user-dirs.dirs

XDG_DOWNLOAD_DIR="$HOME/Téléchargement"
XDG_TEMPLATES_DIR="$HOME/Modèles"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Musique"
XDG_PICTURES_DIR="$HOME/Images"
XDG_VIDEOS_DIR="$HOME/Vidéos"
XDG_DESKTOP_DIR="$HOME/Bureau"

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

the XDG shortcuts problem doesn't seems to be related. I recreated them and the crash still occurs

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

Could you change the /desktop/gnome/interface/file_chooser_backend gconf key value to gnome-vfs and note if that workaround the issue?

Changed in gedit:
status: Unknown → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

marking this as triaged since it was already sent upstream, thanks.

Changed in gtk+2.0:
assignee: nobody → desktop-bugs
status: New → Triaged
Revision history for this message
neuromancer (neuromancer) wrote :

Same for me.
I use Ubuntu hardy 8.04, and now (I think after some upgrade related to gvfs) after I open a new file in gedit, when I try to save the file the UI hang and nothing happen (It's possible only to force quit the window).
Instead if the file exists before the function Save works correctly.

Revision history for this message
neuromancer (neuromancer) wrote :

The problem is valid also if I try to open an existing file with the function "Open".
Moreover is valid also for gimp (same problem if I try to save file or open an existing file)

Revision history for this message
neuromancer (neuromancer) wrote :

Ok.
I've temporarily solved, downgrading and forcing the version 0.2.4-0ubuntu1 of gvfs,gfvs-backend and gvfs-fuse.
The last version, 0.2.4-0ubuntu2, instead have the problems reported above.

Revision history for this message
Hackbert (paul-kremser) wrote :

As seen here http://bugzilla.gnome.org/show_bug.cgi?id=514843 i checked the content of my .gtkbookmarks, since it was user related to me (so it makes no sense that it was a broken package). I deleted all content of this file (all file choser related bookmarks will be gone) and this solved the Problem.

Kees Cook (kees)
description: updated
Changed in gedit:
importance: Unknown → Critical
Changed in gedit:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+2.0 - 2.24.8-0ubuntu1

---------------
gtk+2.0 (2.24.8-0ubuntu1) precise; urgency=low

  * New upstream release
    - gtkfilechooser should be more robust to malformed URIs
      in .gtk-bookmarks (LP: #189494)
  * debian/patches/010_make_bg_changes_queue_repaint.patch
    - dropped it introduces performance regressions in some gtk2
      apps (LP: #889019)
  * 101_filechooser.patch, 000git_file_chooser.patch: dropped, upstream
 -- Ken VanDine <email address hidden> Thu, 01 Dec 2011 11:40:06 -0500

Changed in gtk+2.0 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
James (james-kenny) wrote :

"Launchpad Janitor (janitor) wrote on 2011-12-01: #14

This bug was fixed in the package gtk+2.0 - 2.24.8-0ubuntu1"

No - its intermittent but saving a file still randomly crashes gedit (the file saves remotely) but gedit crashes

ubuntu 11.x - gedit 3.2.3 -

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.