Replies: 2 comments 11 replies
-
A bit of a technicality, but this isn't a panic, this is an exception raised by the hardware. Note that your PC is 0. Please provide some information about what you are doing, ideally a reproducer we can try. As your top stackframe looks to point at |
Beta Was this translation helpful? Give feedback.
2 replies
-
Try enabling debug assist, here's the example: https://github.com/esp-rs/esp-hal/blob/main/examples/src/bin/debug_assist.rs That should detect if it's a stack overflow. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing an application using
embassy
andpicoserve
web server, and at a certain point it started panicking when serving a page, when I only added a route that wasn't even accessed by the client.Just adding small piece of code, that doesn't get to run, caused the application to panic.
The panic is below.
Eventually I found that if I reduce
embassy
task-arena
size, things get back to work. So seems like lack of memory caused panick.The question is - why would lack of memory result in this kind of exception (InstProhibited)? I would expect it to either panic on allocation if it's alloc, or not compile if it lacks memory for static allocations.
InstrProhibited sounds like data overran the code, can this happen?
Doesn't that mean that it opens the system to buffer over-runs attacks which when using rust the promise is can't take place?
Beta Was this translation helpful? Give feedback.
All reactions