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

Why can't I print out stack information #116

Closed
zuowanbushiwo opened this issue May 22, 2018 · 2 comments
Closed

Why can't I print out stack information #116

zuowanbushiwo opened this issue May 22, 2018 · 2 comments

Comments

@zuowanbushiwo
Copy link

like this:
Stack trace (most recent call last):
#1 Object "/lib/libc.so.6", at 0xf6f499bf, in __default_rt_sa_restorer_v1
#0 | Source "backward.hpp", line 2254, in backward::SignalHandling::sig_handler(int, siginfo_t*, void*)
| Source "backward.hpp", line 2232, in backward::SignalHandling::handleSignal(int, siginfo_t*, void*)
Source "backward.hpp", line 710, in backward::StackTraceImplbackward::system_tag::linux_tag::load_from(void*, unsigned int) [0x17183]

Which line in my source file is not located? I have follow define:
#define BACKWARD_HAS_BFD 1
#define BACKWARD_HAS_UNWIND == 1

thanks!

@dtsmith2001
Copy link

@zuowanbushiwo your second define is not formatted properly. Also, you must link with libbfd using -lbfd and supply the library location using -L/path/to/libbfd.so.

@zuowanbushiwo
Copy link
Author

thanks!

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