-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Logging with CONFIG_LOG_IMMEDIATE=y from ISR leads to assert #12494
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
Comments
#12327 needs to merge because example uses shell. |
this should be fixed now. @pfalcon can you confirm and close? |
Please leave me some time for that, I'm in the middle of other things. Will try to do during this week though. |
@pfalcon ping |
I'm working on other things and couldn't verify this so far. But I can confirm that CONFIG_LOG_IMMEDIATE itself (under normal, non-ISR conditions) now seems to work as expected. Can make bets how long it will take to make that default ;-). |
So, I proceeded to test this, just to find out that the eth_smsc911x.c driver which on which the issue was reproduced, is broken in the master: https://github.com/zephyrproject-rtos/zephyr/pull/12989/files#r256461904 , with tests which were supposed to keep it from breakage, removed from master either. So, this all will take much more time. |
@pfalcon any news here. I would expect that it should work now. |
Ok, let me close it, will reopen if spot again. |
This was initially reported in meta-issue #11655 (comment) , using a WIP PR #11680 . It's a hope that #12406 would address this. But as it's still in flux, and #11680 seemed to be blocked by this issue, I proceeded to investigate to make sure it's known how to reproduce it to ensure fixing.
So, turns out that if CONFIG_LOG_INPLACE_PROCESS=y is enabled (which currently does not work per expectations, but I enabled it nonetheless, hoping to alleviate at least some issues with deferred processing), then logging from ISR leads to assert failure, if CONFIG_ASSERT is enabled, or to a lockup otherwise.
Assert messages seen are (independently):
(the last line is cut, due to a way QEMU configures terminal)
I was able to reproduce this using following patch:
Then running
samples/net/echo_server
with params:(Which also requires net-setup.sh from net-tools), then
ping 192.0.2.1
.The text was updated successfully, but these errors were encountered: