This repository was archived by the owner on Jan 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 74
This repository was archived by the owner on Jan 30, 2024. It is now read-only.
False positive "call stack was corrupted" warning on 0.3 #277
Copy link
Copy link
Closed
rust-embedded/cortex-m-rt
#337Labels
status: needs PRIssue just needs a Pull Request implementing the changesIssue just needs a Pull Request implementing the changestopic: unwindingtype: bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm seeing a (HOST) WARN call stack was corrupted; unwinding could not be completed
, even though unwinding seems to have worked fine and nothing happened that could have corrupted the stack.
To Reproduce
Steps to reproduce the behavior:
- Check out Add support for defmt 0.3 stm32-rs/bxcan#47
cd testsuite; cargo test
Expected and observed behavior
Actual output:
Finished test [unoptimized + debuginfo] target(s) in 0.01s
Running tests/integration.rs (/home/jonas/dev/bxcan/target/thumbv7m-none-eabi/debug/deps/integration-7c7caa16bcb9d813)
(HOST) INFO flashing program (16.20 KiB)
(HOST) INFO success!
────────────────────────────────────────────────────────────────────────────────
(1/11) running `split_filters`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:18
(2/11) running `basic_roundtrip`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:43
(3/11) running `no_filters_no_frames`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:58
(4/11) running `filter_mask32_std`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:68
(5/11) running `filter_mask32_ext`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:112
(6/11) running `filter_mask16`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:153
(7/11) running `filter_list32_std`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:193
(8/11) running `filter_list32_ext`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:226
(9/11) running `dequeue_lower_priority_frame`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:264
(10/11) running `enable_non_blocking`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:317
(11/11) running `ext_roundtrip`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:330
all tests passed!
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:4
────────────────────────────────────────────────────────────────────────────────
stack backtrace:
0: _ZN3lib6inline6__bkpt17h78c2a3232bb722b9E
at ./asm/inline.rs:13:5
1: __bkpt
at ./asm/lib.rs:49:17
2: _ZN10defmt_test6export4exit17h45e5ec6423f16273E
at /home/jonas/.cargo/registry/src/github.com-1ecc6299db9ec823/defmt-test-0.3.0/src/export.rs:8:9
3: main
at tests/integration.rs:4:1
4: Reset
(HOST) WARN call stack was corrupted; unwinding could not be completed
(HOST) INFO device halted without error
Running tests/interrupts.rs (/home/jonas/dev/bxcan/target/thumbv7m-none-eabi/debug/deps/interrupts-fc17b8c8f4ece88b)
(HOST) INFO flashing program (19.87 KiB)
(HOST) INFO success!
────────────────────────────────────────────────────────────────────────────────
(1/6) running `tx_interrupt`...
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:37
(2/6) running `rx_interrupt_message_pending`...
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:71
(3/6) running `rx_interrupt_fifo_full`...
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:105
(4/6) running `rx_interrupt_fifo_overrun`...
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:145
(5/6) running `sce_interrupt_sleep`...
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:195
(6/6) running `sce_interrupt_wakeup`...
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:219
all tests passed!
└─ interrupts::tests::__defmt_test_entry @ tests/interrupts.rs:4
────────────────────────────────────────────────────────────────────────────────
stack backtrace:
0: _ZN3lib6inline6__bkpt17h78c2a3232bb722b9E
at ./asm/inline.rs:13:5
1: __bkpt
at ./asm/lib.rs:49:17
2: _ZN10defmt_test6export4exit17h45e5ec6423f16273E
at /home/jonas/.cargo/registry/src/github.com-1ecc6299db9ec823/defmt-test-0.3.0/src/export.rs:8:9
3: main
at tests/interrupts.rs:4:1
4: Reset
(HOST) WARN call stack was corrupted; unwinding could not be completed
(HOST) INFO device halted without error
Expected output: the same, but without the warning.
Metadata
Metadata
Assignees
Labels
status: needs PRIssue just needs a Pull Request implementing the changesIssue just needs a Pull Request implementing the changestopic: unwindingtype: bugSomething isn't workingSomething isn't working