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
{{ message }}
This repository was archived by the owner on Jan 24, 2022. It is now read-only.
$ cargo generate --git ~/rust-embedded/cortex-m-quickstart --name app &&cd app
$ cargo add panic-abort
$ # modify examples/panic.rs to use panic-abort
$ # change memory.x to match the memory layout of the STM32F3DISCOVERY
$ # uncomment thumbv7em-none-eabi target and gdb runner in .cargo/config
$ cargo run --example panic(gdb) backtrace # "corrupt stack?"#0 DefaultPreInit () at /home/japaric/.cargo/registry/src/github.spider-man.dpdns.org-1ecc6299db9ec823/cortex-m-rt-0.6.5/src/lib.rs:556#1 0x08000412 in Reset () at /home/japaric/.cargo/registry/src/github.spider-man.dpdns.org-1ecc6299db9ec823/cortex-m-rt-0.6.5/src/lib.rs:496Backtrace stopped: previous frame identical to this frame (corrupt stack?)(gdb) continueBreakpoint 4, main () at examples/panic.rs:2929 panic!("Oops")(gdb) backtrace # where did Reset go?#0 main () at examples/panic.rs:29(gdb) continueBreakpoint 3, rust_begin_unwind (_info=0x10001fb4) at (..)31 unsafe { intrinsics::abort() }(gdb) backtrace # infinite backtrace#0 rust_begin_unwind (_info=0x10001fb4) at (..)#1 0x080006b0 in core::panicking::panic_fmt () at libcore/panicking.rs:77#2 0x080006b0 in core::panicking::panic_fmt () at libcore/panicking.rs:77#3 0x080006b0 in core::panicking::panic_fmt () at libcore/panicking.rs:77(..)
Has anyone experienced these issues? I've seen them with previous releases of cortex-m-rt so I don't think they are related to the recent changes to HardFault. Also, in the above logs all backtrace invocations are before reaching HardFault.
jamwaffles, jonas-schievink, kolen, mattkelly, mvertescher and 1 more