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 608947 - valgrind support
valgrind support
Status: RESOLVED DUPLICATE of bug 335126
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-02-04 02:38 UTC by Allison Karlitskaya (desrt)
Modified: 2012-07-06 03:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2010-02-04 02:38:03 UTC
a neat feature in glib would be a ./configure-time check for the presence of valgrind.  this would mainly be for three reasons:


1) allow use of the valgrind client API from glib test caeses.

2) define some macros for glib users to use valgrind, if available, or to do nothing if not.

3) possibly: enabling the use of valgrind calls in various places inside glib (like maybe in the slice allocator, for example).


the valgrind client API allows performing operations like marking certain memory areas inaccessible, uninitialised, etc.  it's also useful for checking things like if a memory area contains defined data (which would only really be useful in tests).
Comment 1 Christian Persch 2010-02-04 12:53:52 UTC
Bug 335126 has patches for 3).
Comment 2 Matthias Clasen 2012-07-06 03:03:55 UTC

*** This bug has been marked as a duplicate of bug 335126 ***