Valgrind:理解输出(堆摘要还可以,错误摘要令人困惑)
我读了很多关于这个主题的消息,但这有点不同,因为我没有堆错误(我很好地清理了所有内容 - 是的)。但是,我仍然在错误摘要中看到 166 个错误。
我的问题是: 1. 这是我的代码中的问题还是库/系统中的问题 2. 我的程序是一项将持续运行多年(希望如此)的服务。这些 166 错误是否会导致我的程序最终导致内存泄漏?
==1758==
==1758== HEAP SUMMARY:
==1758== in use at exit: 0 bytes in 0 blocks
==1758== total heap usage: 3,658 allocs, 3,658 frees, 4,561,685 bytes allocated
==1758==
==1758== All heap blocks were freed -- no leaks are possible
==1758==
==1758== For counts of detected and suppressed errors, rerun with: -v
==1758== ERROR SUMMARY: 166 errors from 13 contexts (suppressed: 6 from 6)
I read a number of messages on this topic but this is a little different because I have NO heap errors (I cleaned everything up nicely - yay). But, I still see 166 errors in the error summary.
My question is:
1. Is this a problem in MY CODE or in libraries/system stuff
2. My program is a service which will run for years (hopefully) nonstop. Are these 166 errors a concern that my program will cause an eventual memory leak?
==1758==
==1758== HEAP SUMMARY:
==1758== in use at exit: 0 bytes in 0 blocks
==1758== total heap usage: 3,658 allocs, 3,658 frees, 4,561,685 bytes allocated
==1758==
==1758== All heap blocks were freed -- no leaks are possible
==1758==
==1758== For counts of detected and suppressed errors, rerun with: -v
==1758== ERROR SUMMARY: 166 errors from 13 contexts (suppressed: 6 from 6)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)