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

Make frame address meaningful without debuginfo #434

Open
quininer opened this issue Sep 1, 2021 · 0 comments
Open

Make frame address meaningful without debuginfo #434

quininer opened this issue Sep 1, 2021 · 0 comments

Comments

@quininer
Copy link

quininer commented Sep 1, 2021

The current address obtained through Frame::ip is meaningless in production environment without debuginfo. The lack of a base address prevents us from resolve symbol afterwards.

We have two solutions to this problem.

  1. Expose backtrace::symbolize::native_libraries, which will allow users to record all loaded libs, and users can get bais from them. but this may reveal too many details.
  2. Add a backtrace::resolve2 or make backtrace::resolve return the correct svma and library name even without debuginfo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants