-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ESP32S3 usbnsh hang on ps command #12712
Comments
@tmedicci @eren-terzioglu @fdcavalcanti please take a look |
I met this kind of bug too. This bug could be triggered after some heavy load such as coremark. |
I met similar some time ago. In my case the default stack was configured to too small value. Setting default task stack to 4K fixed the issue. Here I see the stack is set to 8K, so that should not be an issue. Would be good to enable stack coloration to see the % of stack consumption. |
Ups. Just checked the code and was confused by |
Maybe worth of changing |
Thanks, it's the same issue:
It won't hang if I increase the stack size for nsh. |
Fix apache#12712 If run nsh over usb based serial port, the default stack size is too small, for example simple `ps` command will use more than 2208 bytes stack. Then the stack overflow will happen and the system will hang here. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
When using usbnsh, I find that it frequently hangs:
I'm tested with boards/xtensa/esp32s3/esp32s3-devkit/configs/usbnsh, this issue is easy to reproduce by type
ps
multiple times.The text was updated successfully, but these errors were encountered: