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

Cannot print backtrace after syscall interception #108

Open
wujysh opened this issue Mar 22, 2021 · 1 comment
Open

Cannot print backtrace after syscall interception #108

wujysh opened this issue Mar 22, 2021 · 1 comment

Comments

@wujysh
Copy link

wujysh commented Mar 22, 2021

All backtrace functions are not working in the syscall overriden functions, e.g.

int backtrace(void **buffer, int size);
#include <boost/stacktrace.hpp>
std::cout << boost::stacktrace::stacktrace();

Looks like the interception assembly doesn't set the ss and sp back correctly. Not sure if this is the root cause.
Is it possible to recover the full stack trace to ease trouble-shooting?

@wujysh
Copy link
Author

wujysh commented Mar 26, 2021

@GBuella Can you help take a look? 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

1 participant