是否可以让 valgrind 忽略某些库? [英] Is it possible to make valgrind ignore certain libraries?

查看:27
本文介绍了是否可以让 valgrind 忽略某些库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

或者最好是全部而不是我的代码?我的程序使用 Gtk、Loudmouth 和其他一些东西,这两个(以及它们背后的一些,libgcrypto、libssl)本身导致了很多错误,我无法检测到我自己的错误.是否有可能让 valgrind 忽略来自比我自己的代码更深的东西?

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?

推荐答案

您可以为库的错误生成抑制,但我认为您通常不能排除库.

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.

这篇关于是否可以让 valgrind 忽略某些库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆