Skip to content

Libunwind and Offline Stack Unwinding for Crash Handling #689

Answered by bregma
Foukoo asked this question in Q&A
Discussion options

You must be logged in to vote

libunwind has the coredump remote for unwinding from ELF core files. A stack dump is insufficient to unwind because you also need to be able to link instruction addresses back to the ELF file they were loaded from, which will lead you to be able to find the DWARF tables in the ELF file itself or in the stripped debug data file. It's possible to get backtraces from only partial core dumps but you need at least the stack, the processor state, and the load tables. Some of these are very OS-specific and if you're not using one of the supported OSes (eg. you're using an RTOS executive) you may need to do some porting work on libunwind to teach it about specifics.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Foukoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants