New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid locking in shell #14520
Comments
What's the reproduction strategy for this bug? It sounds like this is a custom power save state or something and not just the idle thread? If you get a chance, can you cherry pick the two patches in #13800 and reproduce it? Those will give more information about the location of the locks in question, and catch some problems (trying to swap/pend/sleep with a lock yeld) earlier. |
Worth putting in a link here to #13591 , which is a very similar symptom. There it seems like it's plausibly due to a bug in the validation layer, though the rig is complicated enough that I'm not able to reproduce it directly myself. I'm hoping this one is easier. |
@pdunaj Is this still an issue? Can you reply to comments above? |
@carlescufi fyi |
Hi @nashif , to be honest I am not sure if it is still replicating. I am not sure what happened in the bug - I suspected that maybe this was caused by the "simulated system off in debug mode". |
Hi @nordic-krch , do you know if shell handles switch to the deep sleep well? |
Yes, I think this is still an issue. I was having a similar problem disabling the shell when I go to sleep. I submitted a PR #24404 that may address this issue. This likely needs a bit of discussion. |
we should close this, this has been stale for a while. |
Describe the bug
When we put our board to sleep we stop shell. When board is woken up we start shell again.
I have a code that log messages in the loop from one thread. This happens even if we go to sleep.
I just noticed that when board is woken up it deadlocks. After connecting a debugger following backtrace is visible.
To Reproduce
Steps to reproduce the behavior:
See description
Expected behavior
No crashes, no deadlocks.
Impact
Showstopper for projects with always enabled shell. Otherwise annoyance.
Screenshots or console output
N/A
Environment (please complete the following information):
ncs zephyr
745326266d9c32ba3aa67d5af1f727059d9a88e3
(fromd9876be
upstream)Additional context
Add any other context about the problem here.
N/A
The text was updated successfully, but these errors were encountered: