GithubHelp home page GithubHelp logo

lekensteyn / gnome.supp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bert/gnome.supp

0.0 3.0 0.0 101 KB

A repository of Valgrind error suppression files for GNOME software

Makefile 100.00%

gnome.supp's Introduction

This is a repository of Valgrind suppression files intended to be used to detect memory leaks in GNOME software using Valgrind. The goals of this project are:

  1. The suppression files should never suppress a real issue (such as a memory leak).

  2. Unavoidable leaks should be suppressed.

    For example, any allocations by gdk_display_manager_get() can be ignored because there is no API function to clean up after gdk_display_manager_get(), and the return semantics are "transfer none".

  3. As many issues as possible should be suppressed without suppressing a real issue.

    The idea here is to cut down on the volume of output, which can be confusing and bury the real issue. For example, if a hash table is created, and many key/value pairs are inserted into this map (causing the hash table to be re-allocated), but the program fails to destroy the hash table, preferably only one leak will be reported.

Getting started

You will need Valgrind, GNU Make, and sed.

  1. Clone the git repository:

    git clone https://github.com/dtrebbien/GNOME.supp.git
    
  2. Open a terminal and cd into GNOME.supp.

  3. make

GNU Make will generate suppression (SUPP) files in the project root. To use them with Valgrind, pass a --suppressions=SUPP_FILE option for each suppression file that you would like to use. For example, to use the suppressions in glib.supp, you would pass --suppressions=/path/to/GNOME.supp/glib.supp to Valgrind.

See the Valgrind page on GNOME Live! for tips on using Valgrind to detect memory leaks in GNOME software.

License

The contents of the suppression files are Public Domain.

Any other code is licensed under the GNU General Public License, either version 3 of the GPL, or (at your option) any later version.

gnome.supp's People

Contributors

dtrebbien avatar

Watchers

Peter Wu avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.