Memory leak

Bug #1058205 reported by Thomas Bechtold on 2012-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
overlay-scrollbar
High
Thomas Bechtold
overlay-scrollbar (Ubuntu)
High
Unassigned

Bug Description

Attached is a small gtk test program which can be run in 2 ways:

1) ./gtkbuildertest
2) LIBOVERLAY_SCROLLBAR=0 ./gtkbuildertest

in the first case, the memory increases over time
in the second case, memory usage is constant

valgrind gives me:
==25644== 1,194,012 bytes in 5,853 blocks are definitely lost in loss record 4,531 of 4,532
==25644== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==25644== by 0x462D7EA: standard_malloc (gmem.c:85)
==25644== by 0x462DB62: g_malloc (gmem.c:159)
==25644== by 0x4643D6F: g_slice_alloc (gslice.c:1003)
==25644== by 0x4644285: g_slice_alloc0 (gslice.c:1029)
==25644== by 0x4040A4D: ??? (in /usr/lib/i386-linux-gnu/gtk-3.0/modules/liboverlay-scrollbar.so)
==25644== by 0x4044548: ??? (in /usr/lib/i386-linux-gnu/gtk-3.0/modules/liboverlay-scrollbar.so)
==25644== by 0x45A4786: g_object_run_dispose (gobject.c:1061)
==25644== by 0x4378BE0: gtk_widget_destroy (gtkwidget.c:3974)
==25644== by 0x4296A64: gtk_scrolled_window_destroy (gtkscrolledwindow.c:1237)
==25644== by 0x45A058E: g_cclosure_marshal_VOID__VOID (gmarshal.c:85)
==25644== by 0x459D6BC: g_type_class_meta_marshal (gclosure.c:970)
==25644== by 0x459E771: g_closure_invoke (gclosure.c:777)
==25644== by 0x45B0960: signal_emit_unlocked_R (gsignal.c:3667)
==25644== by 0x45B8731: g_signal_emit_valist (gsignal.c:3300)
==25644== by 0x45B88B2: g_signal_emit (gsignal.c:3356)
==25644== by 0x4386A23: gtk_widget_dispose (gtkwidget.c:10265)
==25644== by 0x45A4786: g_object_run_dispose (gobject.c:1061)
==25644== by 0x4378BE0: gtk_widget_destroy (gtkwidget.c:3974)
==25644== by 0x410D0E9: gtk_box_forall (gtkbox.c:1865)

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: overlay-scrollbar 0.2.16+r356-0ubuntu2
ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
Uname: Linux 3.5.0-15-generic i686
ApportVersion: 2.5.3-0ubuntu1
Architecture: i386
Date: Fri Sep 28 18:35:31 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423.2)
PackageArchitecture: all
SourcePackage: overlay-scrollbar
UpgradeStatus: Upgraded to quantal on 2012-06-23 (97 days ago)

Related branches

Thomas Bechtold (toabctl) wrote :
Thomas Bechtold (toabctl) wrote :
Omer Akram (om26er) on 2012-09-28
Changed in ayatana-scrollbar:
importance: Undecided → High
Changed in overlay-scrollbar (Ubuntu):
importance: Undecided → High
Omer Akram (om26er) on 2012-09-28
Changed in ayatana-scrollbar:
status: New → In Progress
Changed in overlay-scrollbar (Ubuntu):
status: New → In Progress
Changed in ayatana-scrollbar:
assignee: nobody → Thomas Bechtold (toabctl)
Dimitri John Ledkov (xnox) wrote :

There is no patch here, and the branch proposal targets upstream. Unsubscribing ubuntu-sponsors. Please get this patch into overlay-scrollbar -> and then bugfix overlay-scrollbar package upload will get this fix into Ubuntu.

Thomas Bechtold (toabctl) wrote :

Here's a backtrace with install symbols:

==28849== 1,685,652 bytes in 8,263 blocks are definitely lost in loss record 4,540 of 4,541
==28849== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==28849== by 0x45EF7EA: standard_malloc (gmem.c:85)
==28849== by 0x45EFB62: g_malloc (gmem.c:159)
==28849== by 0x4605D6F: g_slice_alloc (gslice.c:1003)
==28849== by 0x4606285: g_slice_alloc0 (gslice.c:1029)
==28849== by 0x4040A4D: get_private (os-scrollbar.c:655)
==28849== by 0x4044548: hijacked_scrollbar_dispose (os-scrollbar.c:3182)
==28849== by 0x4566786: g_object_run_dispose (gobject.c:1061)
==28849== by 0x4349D60: gtk_widget_destroy (gtkwidget.c:3974)
==28849== by 0x4272E2A: gtk_scrolled_window_destroy (gtkscrolledwindow.c:1247)
==28849== by 0x456258E: g_cclosure_marshal_VOID__VOID (gmarshal.c:85)
==28849== by 0x455F6BC: g_type_class_meta_marshal (gclosure.c:970)
==28849== by 0x4560771: g_closure_invoke (gclosure.c:777)
==28849== by 0x4572960: signal_emit_unlocked_R (gsignal.c:3667)
==28849== by 0x457A731: g_signal_emit_valist (gsignal.c:3300)
==28849== by 0x457A8B2: g_signal_emit (gsignal.c:3356)
==28849== by 0x43570B7: gtk_widget_dispose (gtkwidget.c:10265)
==28849== by 0x4566786: g_object_run_dispose (gobject.c:1061)
==28849== by 0x4349D60: gtk_widget_destroy (gtkwidget.c:3974)
==28849== by 0x4107799: gtk_box_forall (gtkbox.c:1865)
==28849==

Changed in ayatana-scrollbar:
status: In Progress → Fix Committed
Changed in overlay-scrollbar (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package overlay-scrollbar - 0.2.16+r357-0ubuntu1

---------------
overlay-scrollbar (0.2.16+r357-0ubuntu1) quantal; urgency=low

  * Updated to r357, fixes memory leak (lp: #1058205)
 -- Thomas Bechtold <email address hidden> Thu, 04 Oct 2012 21:36:57 +0200

Changed in overlay-scrollbar (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers