Bug#676674: gconf-editor: Crash when searching a key

Simon Valiquette v.simon at ieee.org
Wed Sep 19 05:03:28 UTC 2012


Package: gconf-editor
Version: 3.0.1-1
Followup-For: Bug #676674

I don't know why it haven't been fixed yet, but Ubuntu fixed this bug
many months ago and upstream seems to have fixed it as described here:

https://bugzilla.gnome.org/show_bug.cgi?id=670586

I have applied the following patch from upstream to the Debian source
paquage and I can't make gconf-editor crash anymore.

Simon Valiquette.



>From f82dcfe99dafc9b6eac331bcf22662c9254f8a40 Mon Sep 17 00:00:00 2001
From: Edward Sheldrake <ejsheldrake at gmail.com>
Date: Wed, 11 Apr 2012 08:27:16 +0100
Subject: [PATCH] Fix assertion failed crash

Fix "assertion failed: (last_slash != NULL)" crash while navigating the
left tree view, fixed by having the model for the right list view emit
all the row deleted signals before deleting any of its data.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=670586
---
 src/gconf-list-model.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/gconf-list-model.c b/src/gconf-list-model.c
index 27e1af6..4fc60f8 100644
--- a/src/gconf-list-model.c
+++ b/src/gconf-list-model.c
@@ -133,11 +133,14 @@ gconf_list_model_set_root_path (GConfListModel *model, const gchar *root_path)
 
 	if (model->root_path != NULL) {
 		for (list = model->values; list; list = list->next) {
+			model->stamp++;
+			gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
+		}
+
+		for (list = model->values; list; list = list->next) {
 			GConfEntry *entry = list->data;
 
 			g_hash_table_remove (model->key_hash, gconf_entry_get_key (entry));
-			model->stamp++;
-			gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
 
 			gconf_entry_unref (entry);
 		}
-- 
1.7.9.6



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

Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_CA, LC_CTYPE=fr_CA (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages gconf-editor depends on:
ii  gconf-defaults-service  3.2.5-1+build1
ii  gconf2                  3.2.5-1+build1
ii  libc6                   2.13-35
ii  libgconf2-4             3.2.5-1+build1
ii  libglib2.0-0            2.32.3-1
ii  libgtk-3-0              3.4.2-3
ii  libpango1.0-0           1.30.0-1
ii  policykit-1-gnome       0.105-2

gconf-editor recommends no packages.

gconf-editor suggests no packages.

-- no debconf information




More information about the pkg-gnome-maintainers mailing list