linux 下多线程读写,_fdb_flash_read函数出现异常问题 #193
Unanswered
maxwell-hub
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
基于linux demo 例程,增加读写线程,读线程每次遍历一边数据库,写线程每秒插入1条bob记录,但是运行一段时间后,出现如下异常
[FlashDB][kv][env] (../../src/fdb_kvdb.c:328) Error: The KV @0x00000817 length has an error.
于是,在read_kv函数中的_fdb_flash_read函数后面增加kv_hdr.len 长度的打印,发现出现问题时候,读取的kv_hdr.len 长度是个异常值
如下这种
最近排查了几天,实在没发现有什么问题,特来请教下大佬们,谢谢 @armink @Spider84 @DavidLin1577 @eggcar
Beta Was this translation helpful? Give feedback.
All reactions