Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant