incubator-teaclave-sgx-sdk: getting backtrace from panics in the enclave
Hi, Do you have any ideas on how I can get a backtrace when I have a panic in the enclave?
Right now all I get is something like this:
thread panicked at 'Box<Any>', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.3.0/src/raw/mod.rs:1078:9
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 21 (20 by maintainers)
and i have to add more tests for alignment-critical crates — such as crates as hashbrown, ring, other stuffs related to sse or avx instructions. and more tests against low-level APIs.
@elichai
Confused. I enabled the
backtracefeature by editing enclave/Cargo.toml:Then add this to enclave/lib.rs
Then it no longer panics! I don’t even have a chance to inspect on the stack unwinding info…