Skip to content

Conversation

@zouguangxian
Copy link
Collaborator

This PR adds backtrace support for ZeroOS guests, so panics can reliably print a usable stack backtrace (with host-side symbolization) in the Spike/unikernel environment, controlled by a single --backtrace=auto|enable|disable build-policy switch.

- Add --backtrace=auto|enable|disable and thread it through target-json + linker-script rendering

- Inject RUST_BACKTRACE=full into the guest env when backtrace is enabled

- Add runtime .eh_frame registration support and related musl bootstrap changes

- Improve host-side symbolization for low-level frames

- Introduce mini-template and use it for linker/target JSON templates; drop legacy placeholder handling

- Refactor cargo spike commands and update scripts/matrix

- Remove zeroos-libunwind crate
Copy link

@absolute0kelvin absolute0kelvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zouguangxian zouguangxian merged commit 490b071 into main Dec 30, 2025
14 checks passed
@zouguangxian zouguangxian deleted the gx/support-backtrace branch December 30, 2025 14:50
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

Successfully merging this pull request may close these issues.

2 participants