After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348060 - Yet another reference debugging tool...
Yet another reference debugging tool...
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gobject
2.12.x
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-07-19 23:11 UTC by Chris Wilson
Modified: 2018-05-24 10:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
refdbg tool (30.71 KB, patch)
2006-07-19 23:12 UTC, Chris Wilson
none Details | Review
gobject hooks (22.24 KB, patch)
2006-07-19 23:13 UTC, Chris Wilson
none Details | Review
gtk+ annotations (326.16 KB, patch)
2006-07-19 23:14 UTC, Chris Wilson
none Details | Review
Sample output for gtk-demo (38.14 KB, text/plain)
2006-07-19 23:17 UTC, Chris Wilson
  Details
Sample output for unpatched gtk-demo (229.35 KB, text/plain)
2006-07-19 23:22 UTC, Chris Wilson
  Details

Description Chris Wilson 2006-07-19 23:11:11 UTC
A simple Valgrind tool similar in aim to refdbg. The major difference is the introduction of annotations to g_object_(ref|unref) in order to dramatically increase the signal-to-noise ratio. Whilst still imperfect, it already has proven highly effective at pinpointing refleaks in GTK+ and applications...

TofO:
Most references are paired with an unref that is identifiable at compile-time and this information can be passed to the debugger using a token that is unique to that sequence. The debugger can then automatically suppress known pairs, making the unmatched reference much clearer (ideally, the only remaining reference).

Currently, it is in 3 patches.
1) valgrind tool: apply to a valgrind source tree;
2) gobject additions;
3) gtk+ annotations and leak fixes.
Comment 1 Chris Wilson 2006-07-19 23:12:14 UTC
Created attachment 69203 [details] [review]
refdbg tool
Comment 2 Chris Wilson 2006-07-19 23:13:31 UTC
Created attachment 69204 [details] [review]
gobject hooks
Comment 3 Chris Wilson 2006-07-19 23:14:18 UTC
Created attachment 69205 [details] [review]
gtk+ annotations
Comment 4 Chris Wilson 2006-07-19 23:17:48 UTC
Created attachment 69206 [details]
Sample output for gtk-demo
Comment 5 Chris Wilson 2006-07-19 23:22:07 UTC
Created attachment 69207 [details]
Sample output for unpatched gtk-demo
Comment 6 Chris Wilson 2006-07-20 11:09:36 UTC
As hopefully you are aware, I've split out the easy fixes from the gtk-refdbg.patch. The major one remaining is a shake-down of display/screen disposal.
Comment 7 GNOME Infrastructure Team 2018-05-24 10:50:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/59.