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
I have the sneaking suspicion that unwinding is taking place and is blowing up something (the stack? the unwinding stack?) which in turn generates a new panic with no message. gdb shows a call stack with thousands of frames, all pointing to core::panicking::panic_fmt, but then again this could be a gdb issue.
Shouldn't panic_nounwind_fmt be called instead, given that the panic_strategy on aarch64-uknown-none is Abort?
jieyouxu
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
A-panic
Area: Panicking machinery
labels
May 21, 2024
I am closing this issue as this was a pilot error on my part. One should use message() to obtain the panic message, not payload(). After some tweaking of the boiler plate code, I was able to compare the panic message against the expectation.
I tried this code on
aarch64-unknown-none
:The code shown above was produced by a script, hence some of the silliness.
I expected to see this happen:
1u32.ilog(0)
should have panicked with message"base of integer logarithm must be at least 2"
, thus resulting in the following output:Instead, this happened:
In
gdb
, the value ofpayload
iscore::option::Option<&&str>::None
.Compilation command:
I have the sneaking suspicion that unwinding is taking place and is blowing up something (the stack? the unwinding stack?) which in turn generates a new panic with no message.
gdb
shows a call stack with thousands of frames, all pointing tocore::panicking::panic_fmt
, but then again this could be agdb
issue.Shouldn't
panic_nounwind_fmt
be called instead, given that thepanic_strategy
onaarch64-uknown-none
isAbort
?Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: