是否可以让 valgrind 忽略某些库?

编程入门 行业动态 更新时间:2024-10-23 13:38:27
本文介绍了是否可以让 valgrind 忽略某些库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

或者最好是全部而不是我的代码?我的程序使用 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-28 07:39:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1169692.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:valgrind

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!