You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The executable is non-relocatable, __eh_frame and __etext exist, and the stack trace code from panic_handler.rs also prints output for me, it just reaches from stack_trace() up to with_context(|...| ...), but I'm not sure if that's the same problem.
I'd like to understand why it doesn't start to unwind. I've debugged through and it goes through the loop in _Unwind_RaiseException a few times, but ultimately returns from it with END_OF_STACK. What is it looking for, and if it finds the stack frames, why doesn't it unwind?
The text was updated successfully, but these errors were encountered:
When I call begin_panic directly in catch_unwind, the with_context loop finds a personality in the end and it correctly unwinds. If I call it as in the above code though, no personality is found ever (I don't know why).
Hi,
I'm compiling my bare-metal project (x86_64) with
panic = "unwind"
, however, when I try tobegin_panic
, it just returns with5
.My code (basically the code in
panic_handler.rs
but without the stack trace):Cargo.toml:
config.toml (more
panic=unwind
= better)The executable is non-relocatable,
__eh_frame
and__etext
exist, and the stack trace code frompanic_handler.rs
also prints output for me, it just reaches fromstack_trace()
up towith_context(|...| ...)
, but I'm not sure if that's the same problem.I'd like to understand why it doesn't start to unwind. I've debugged through and it goes through the loop in
_Unwind_RaiseException
a few times, but ultimately returns from it withEND_OF_STACK
. What is it looking for, and if it finds the stack frames, why doesn't it unwind?The text was updated successfully, but these errors were encountered: