Search code examples
valgrindsuppress-warnings

Is it possible to make valgrind ignore certain libraries?


Or preferably all of them instead of just my code? My program uses Gtk, Loudmouth and few other things, and these two (and some behind them, libgcrypto, libssl) are causing so many errors themselves that I'm unable to detect my own. Is it possible to make valgrind ignore things coming from deeper than my own code?


Solution

  • You can generate suppressions for the errors for the libraries, but I don't think you can exclude the libraries generally.

    Also it's hard to automatically know if a memory error in the library is caused by a problem in your code or not.