Valgrind 丢失符号信息

发布于 2024-09-13 23:12:58 字数 633 浏览 6 评论 0原文

运行 Valgrind 后,生成的日志文件包含许多错误,看起来像

Conditional jump or move depends on uninitialised value(s)
  at 0x3D9863AA: ???
  by 0x3D986287: ???
  by 0x3D9854AC: ???
Uninitialised value was created by a heap allocation
  at 0x7FCC050: operator new(unsigned int) (vg_replace_malloc.c:214)
  by 0x3D9A56A4: ???
  by 0x3D9A4EB9: ???

在环顾四周后,我发现了以下行,我认为这对于获取实际内容很重要,而不仅仅是 ???

Discarding syms at 0x3d97dba0-0x3da53de8 in /path/SomeDLL.so due to munmap()

请注意,所有??? 来自 Discarding syms 行指定范围内的地址。

是什么导致 Valgrind 丢弃共享库的符号信息以及如何修复它?

After running Valgrind, the resultant log file contains a number of errors that look like

Conditional jump or move depends on uninitialised value(s)
  at 0x3D9863AA: ???
  by 0x3D986287: ???
  by 0x3D9854AC: ???
Uninitialised value was created by a heap allocation
  at 0x7FCC050: operator new(unsigned int) (vg_replace_malloc.c:214)
  by 0x3D9A56A4: ???
  by 0x3D9A4EB9: ???

After looking around I found the following line which I think is important to getting actual content instead of just ???:

Discarding syms at 0x3d97dba0-0x3da53de8 in /path/SomeDLL.so due to munmap()

Note that all ??? come from addresses in the ranges specified by Discarding syms lines.

What is causing Valgrind to throw away symbol information for shared libraries and how do I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南烟 2024-09-20 23:12:58

也许您的共享库已被 dlclose 调用卸载。尽量避免这种情况。请参阅 Valgrind 常见问题解答

Maybe your shared library was unloaded by dlclose call. Try to avoid this. See Valgrind FAQ

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文