Minidump_stalkwalk和dump_syms的ID之间的不匹配

发布于 2025-02-05 18:04:03 字数 667 浏览 2 评论 0原文

我正在尝试使用Google障碍物,但我面临一个奇怪的问题。 我在Linux工作。我有自己的库my_lib.so,我使用dump_syms处理并生成此符号:

$ dump_syms my_lib.so|head -2
MODULE Linux mips 3BB485681467218D36EB2FF02287096C0 my_lib.so
INFO CODE_ID 6885B43B67148D2136EB2FF02287096C

我使用适当的子目录创建符号目录。 我为使用My_lib..的程序生成了一个小型设备。

0x77dce000 - 0x77e23fff  my_lib.so  ???  (WARNING: No symbols, my_lib.so, AC40136B433E5A68F66CCE8C2C2E6C250)

然后, 符号。为什么不匹配?

知道它会搜索AC40136B433E5A68F66CCE8C2C2C2E6C250 I手动更改符号中的树目录,以匹配该符号,只是为了测试。我还更改了my_lib.so.sym文件中的ID,然后minidump_stalkwalk并没有抱怨找不到符号,但我仍然看不到堆栈跟踪。

对此不匹配有什么想法吗?

顺便说一句,如果我在原始库和剥离的库上运行阅读-n,我会得到相同的GNU构建ID。

I am trying to use google breakpad, but I am facing a strange issue.
i am working in linux. I have my own library, my_lib.so, which I process with dump_syms and generates this symbol :

$ dump_syms my_lib.so|head -2
MODULE Linux mips 3BB485681467218D36EB2FF02287096C0 my_lib.so
INFO CODE_ID 6885B43B67148D2136EB2FF02287096C

I create the symbols directory with the appropiate subdirectories. I then generate a minidump for the program that uses a stripped version of my_lib.so, but when I try to process it with minidump_stackwalk:

0x77dce000 - 0x77e23fff  my_lib.so  ???  (WARNING: No symbols, my_lib.so, AC40136B433E5A68F66CCE8C2C2E6C250)

It is seaching for a differente ID, AC40136B433E5A68F66CCE8C2C2E6C250, so it does not find the symbols. Why the mismatch?

Knowing that it searches for AC40136B433E5A68F66CCE8C2C2E6C250 I manually changed the tree directory in symbols, to match that one, just to test. I also changed the id inside the my_lib.so.sym file, and then minidump_stalkwalk does not complain about not finding the symbols, but still I can't see the stack trace.

Any ideas about this mismatch?

by the way, if I run readelf -n over the original library and the stripped one, I get the same GNU BUILD ID.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文