Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Stack backtrace is printed after shell prompt #124

Open
jonas-schievink opened this issue Dec 17, 2020 · 2 comments
Open

Stack backtrace is printed after shell prompt #124

jonas-schievink opened this issue Dec 17, 2020 · 2 comments
Labels
difficulty: easy Pretty easy to solve priority: low Low priority for the Knurling team status: needs info Requires more information to move forward topic: backtrace type: bug Something isn't working

Comments

@jonas-schievink
Copy link
Contributor

...
0.000000 INFO  (7/10) running `filter_list32_std`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:73
0.000000 INFO  (8/10) running `filter_list32_ext`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:73
0.000000 INFO  (9/10) running `dequeue_lower_priority_frame`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:73
0.000000 INFO  (10/10) running `ext_roundtrip`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:73
^C⏎
~/dev/bxcan/testsuite *master> stack backtrace:
   0: core::ptr::read_volatile
        at /home/jonas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1042
   1: vcell::VolatileCell<T>::get
        at /home/jonas/.cargo/registry/src/github.com-1ecc6299db9ec823/vcell-0.1.2/src/lib.rs:32
   2: bxcan::pac::generic::Reg<U,REG>::read
        at /home/jonas/dev/bxcan/src/pac/generic.rs:52
   3: bxcan::Tx<I>::is_idle
        at /home/jonas/dev/bxcan/src/lib.rs:589
   4: bxcan::Can<I>::is_transmitter_idle
        at /home/jonas/dev/bxcan/src/lib.rs:385
   5: integration::tests::ext_roundtrip
        at tests/integration.rs:417
   6: main
        at tests/integration.rs:73
   7: Reset
        at /home/jonas/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.6.13/src/lib.rs:526

Note how the shell prompt shows up between the defmt output and the stacktrace. Not really sure what causes this behavior, but we might need to add a flush somewhere?

@jonas-schievink jonas-schievink added type: bug Something isn't working status: needs PR Issue just needs a Pull Request implementing the changes labels Dec 17, 2020
@jonas-schievink jonas-schievink added this to Incoming in Issue Triage Jan 15, 2021
@Urhengulas Urhengulas added difficulty: easy Pretty easy to solve priority: low Low priority for the Knurling team labels Mar 1, 2021
@Urhengulas Urhengulas moved this from Incoming to Triaged in Issue Triage Mar 1, 2021
@Lotterleben Lotterleben self-assigned this Mar 23, 2021
@Lotterleben
Copy link

Were these the tests you were running? https://github.com/stm32-rs/bxcan/blob/master/testsuite/tests/integration.rs

@jonas-schievink
Copy link
Contributor Author

Yeah

@Urhengulas Urhengulas added status: needs info Requires more information to move forward help wanted and removed status: needs PR Issue just needs a Pull Request implementing the changes help wanted labels Feb 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
difficulty: easy Pretty easy to solve priority: low Low priority for the Knurling team status: needs info Requires more information to move forward topic: backtrace type: bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

3 participants