Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to load debug symbols for system libs? #20

Open
positron96 opened this issue Dec 7, 2020 · 1 comment
Open

Any way to load debug symbols for system libs? #20

positron96 opened this issue Dec 7, 2020 · 1 comment

Comments

@positron96
Copy link

Hello and thanks for this tool! It looks that It might help me, but I have not yet obtained useful information from it.
What might help me are function names in stack info from standard libraries (libc, libstdc++). I have Ubuntu and have installed debug symbols for these libraries. As I understand, they are located in separate files somewhere in /usr/lib/debug. Gdb uses those, but libleak doesn't, so stacks with libc-2.23.so have no function name and only have an address. Is there a way to make use of those symbols?

@WuBingzheng
Copy link
Owner

libleak uses libbacktrace to display the stack information. And it seems that libbacktrace tries to load debug information by build-id. Maybe you can check the build-id of your symbol-file under /usr/lib/debug/.

Another way is tool addr2line. I do not know if it loads debug information or not. But you can try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants