RE: Valgrind questions



I've been updating the suppression file to work with the new version of Gtk. I'm getting a few errors for 
widgets which are deleted by Gtk (using the manage function), which look like this (N.B. it's actually a 
Gtkmm app):

==13910== 20 bytes in 1 blocks are definitely lost in loss record 5,230 of 10,037
==13910==    at 0x4028876: malloc (vg_replace_malloc.c:236)
==13910==    by 0x4E0D80A: standard_malloc (gmem.c:88)
==13910==    by 0x4E0DD61: g_malloc (gmem.c:164)
==13910==    by 0x4DE9084: g_datalist_id_set_data_full (gdataset.c:467)
==13910==    by 0x44B4EE0:   (gobject.c:2844)
==13910==    by 0x42D17DF: Gtk::Object::disconnect_cpp_wrapper() (object.cc:197)
==13910==    by 0x42D18AF: Gtk::Object::_release_c_instance() (object.cc:100)
==13910==    by 0x42D1B6B: Gtk::Object::destroy_() (object.cc:260)
==13910==    by 0x41EC946: Gtk::CellRendererText::~CellRendererText() (cellrenderertext.cc:202)
==13910==    by 0x41ECA11: Gtk::CellRendererText::~CellRendererText() (cellrenderertext.cc:203)
==13910==    by 0x42D1383: Gtk::Object::destroy_notify_() (object.cc:229)
==13910==    by 0x4477F62: Glib::ObjectBase::destroy_notify_callback_(void*) (objectbase.cc:194)

any suggestions for what's causing this leak report and the best way to suppress it?

Tom
________________________________________
From: Thomas Harty
Sent: 23 November 2011 15:20
To: Andrew Cowie; gtk-app-devel-list gnome org
Subject: RE: Valgrind questions

I've been updating the suppression file to work with the new version of Gtk. I'm getting a few errors for 
widgets which are deleted by Gtk (using the manage function), which look like this:

________________________________________
From: gtk-app-devel-list-bounces gnome org [gtk-app-devel-list-bounces gnome org] on behalf of Andrew Cowie 
[andrew operationaldynamics com]
Sent: 07 October 2011 10:09
To: gtk-app-devel-list gnome org
Subject: Re: Valgrind questions

On Tue, 2011-09-20 at 12:48 +0100, jcupitt gmail com wrote:

Ooop, thanks. I hadn't realised but I'd not updated the version on the
website for a while. I've put my current one up now and it includes a
thing for g_type_add_interface_static(), as you also found.

Might it be a good idea to put the suppression file directly into the
GTK sources, and perhaps even distribute it via the -dev / -devel
packages for libgtk?

Might help the FAQ factor a bit if everyone can just be told to find The
Suppression File in /usr/share/something...

AfC
Sydney


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]