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

Does not show line number when link with boost_stacktrace_addr2line. #113

Open
Kidsunbo opened this issue Sep 2, 2021 · 0 comments
Open

Comments

@Kidsunbo
Copy link

Kidsunbo commented Sep 2, 2021

Environment

Package Name/Version: boost/1.76.0
Operating System+version: Linux Ubuntu 20.04.3 LTS (in docker)
Compiler+version: GCC 9
Docker image: ubuntu/latest

Description

I find it does not show the line number if I link with boost_stacktrace_addr2line, but if I link with boost_stacktrace_backtrace, the line number shows up. The stacktrace is always shown but the line number is only shown if I link with boost_stacktrace_backtrace rather than boost_stacktrace_addr2line which is different with what the document says.

The other linked libraries are always the same which are backtrace and dl, and the addr2line is at the path /usr/bin/addr2line.

I have tried to install boost with conan and apt respectively, and the result is the same.
Did I misunderstand the document? And is it expected?

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

1 participant