-
Notifications
You must be signed in to change notification settings - Fork 866
V2 alpha: lfs_cache_prog: assert(pcache->block == 0xffffffff) #142
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
Backtrace with locals (from GDB):
|
Thanks for raising an issue and the great example, sorry about the long delay. I've pushed up a fix on the v2-alpha branch: #85 The issue was with Properly handling all block device errors is one area that needs work and would benefit greatly from actual coverage information. |
Adafruit nRF52 board support V1.3.0 still has this problem. Seems to triggered by truncate(0) This method fails
This method seems to work (so far)
|
Uh oh!
There was an error while loading. Please reload this page.
The following test case:
Dies with
lfs.c:223: lfs_bd_prog: Assertion 'pcache->block == 0xffffffff' failed.
It looks as though the lfs_file_sync isn't properly clearing out pcache if the program fails with a non-LFS_ERR_CORRUPT error code.
Stack trace:
Other info:
10dfc36 Fixed issue with long names causing unbounded recursion
(v2-alpha)The text was updated successfully, but these errors were encountered: