-
Notifications
You must be signed in to change notification settings - Fork 808
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
rm file causes program to crash #1008
Comments
add some printf in lfs_dir_traverse:
nomal print:line:931 times:1 error print :line:931 times:1 |
Hi @dyergan, thanks for creating an issue, sorry for the late response. If you're experiencing a stack overflow, is it possible there is just not enough stack for littlefs to operate? littlefs uses a bounded RAM, but it can still be relatively large. Currently CI says it needs ~1.5 KiB of stack.
If there was a stack overflow, the in-RAM filesystem state could be corrupted. Or, it's possible that it's not an infinite loop, but just a very long running loop due to performance issues with littlefs and metadata compaction. |
Using EN25QX256A nor flash with system of rt-thread and IC is blueturn(8952F3)
Operation steps:
1.create thirty files,file name (1~30)
2.rm file,one by one.Occasionally the program will crash at this point. Cause lfs_dir_traverse() entering an infinite loop, stack overflow.
3.If stack overflow hanppen, even reboot or burn new program, it will stack overflow.
4.Create a new file, now rm is normal.
Does anyone have a solution?
init :
The text was updated successfully, but these errors were encountered: