Ubuntu gtk leaks references in GtkTreeView / GtTreeModelSort which cause segfault in bluefish
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTK+ |
Fix Released
|
Critical
|
|||
gtk+3.0 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Oneiric |
Won't Fix
|
High
|
Unassigned |
Bug Description
[Impact]
<fill me in with explanation of severity and frequency of bug on users and justification for backporting the fix to the stable release>
[Development Fix]
<fill me in with an explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. >
[Stable Fix]
<fill me in by pointing out a minimal patch applicable to the stable version of the package.>
[Text Case]
<fill me in with detailed *instructions* on how to reproduce the bug. This will be used by people later on to verify the updated package fixes the problem.>
1.
2.
3.
Broken Behavior:
Fixed Behavior:
[Regression Potential]
<fill me in with a discussion of likelihood and potential severity of regressions and how users could get inadvertently affected.
[Original Report]
In Bluefish we get a lot of bugreports from users on Ubuntu 11.10 that have a segfault and all backtraces have something weird: a GtkTreeModelSort is calling it's sort function after the model has been unreffed by bluefish already.
This behaviour cannot be reproduced on Fedora 16 which also has Gtk-3.2.
Checking with libgobject-list (from http://
After a gdb breakpoint g_object_ref and g_object_unref with a condition object == 0x123123123 (the pointer of the GtkTreeModelSort) and doing a backtrace for each break, I found which function does not clean it's reference count:
Breakpoint 2, g_object_ref (object=0xaebbb0) at gobject-list.c:642
642 GObject *obj = G_OBJECT (object);
#0 g_object_ref (object=0xaebbb0) at gobject-list.c:642
#1 0x00007ffff7548abd in gtk_tree_
model=0xaebbb0, path=0x1942660)
at /build/
#2 0x00007ffff75dae49 in cell_info_new (accessible=
path=0x1942660, tv_col=0x746bc0, cell=0x1908dc0)
at /build/
#3 0x00007ffff75de929 in gtk_tree_
at /build/
#4 0x00007ffff75de608 in focus_in (widget=0xaba3c0)
at /build/
#5 0x00007ffff7456f08 in _gtk_marshal_
return_
invocation_
at /build/
#6 0x00007ffff61d00a4 in g_closure_invoke (closure=0x1930ca0,
return_
invocation_
at /build/
#7 0x00007ffff61e202a in signal_
instance=
at /build/
#8 0x00007ffff61eb483 in g_signal_
signal_
at /build/
#9 0x00007ffff61eb852 in g_signal_emit (instance=
signal_
at /build/
#10 0x00007ffff7584fe9 in gtk_widget_
at /build/
#11 0x00007ffff7591492 in gtk_widget_
at /build/
#12 0x00007ffff75968d0 in do_focus_change (widget=0xaba3c0, in=1)
at /build/
#13 0x00007ffff75a2149 in _gtk_window_
at /build/
#14 0x00007ffff75a25ea in gtk_window_
event=
#15 gtk_window_
at /build/
#16 0x00007ffff7456f08 in _gtk_marshal_
return_
invocation_
at /build/
#17 0x00007ffff61d00a4 in g_closure_invoke (closure=0x6d5a90,
return_
invocation_
at /build/
#18 0x00007ffff61e1e5f in signal_
instance=
at /build/
#19 0x00007ffff61eb483 in g_signal_
signal_
at /build/
#20 0x00007ffff61eb852 in g_signal_emit (instance=
signal_
at /build/
#21 0x00007ffff7584fe9 in gtk_widget_
at /build/
#22 0x00007ffff7456da3 in gtk_main_do_event (event=0x1912bb0)
at /build/
#23 0x00007ffff70cf102 in gdk_event_
callback=
at /build/
#24 0x00007ffff55a0a5d in g_main_dispatch (context=0x709090)
at /build/
#25 g_main_
at /build/
#26 0x00007ffff55a1258 in g_main_
block=
at /build/
#27 0x00007ffff55a1792 in g_main_loop_run (loop=0x7fde50)
at /build/
#28 0x00007ffff7455ecd in gtk_main () at /build/
#29 0x0000000000422aff in main (argc=1, argv=0x7fffffff
I don't know what causes this leak. It might be Ubuntu specific patches on gtk, the gtk theme that Ubuntu is using, or accesibility settings that default to a different value on Ubuntu (both on Ubuntu and Fedora I did not change any accessibility option from the default setting).
Changed in gtk+3.0 (Ubuntu): | |
status: | In Progress → Fix Released |
importance: | Undecided → High |
Changed in gtk+3.0 (Ubuntu Oneiric): | |
status: | New → Triaged |
importance: | Undecided → High |
affects: | gtk+3.0 (Ubuntu) → ubuntu |
Changed in ubuntu: | |
assignee: | Dmitry Shachnev (mitya57) → nobody |
Changed in gtk: | |
importance: | Unknown → Critical |
status: | Unknown → Fix Released |
affects: | ubuntu → gtk+3.0 (Ubuntu) |
description: | updated |
I filed this bug in gnome bugzilla at https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 669376