ibireme/YYCache

containsObjectForKey导致crash

luzsyn opened this issue · 0 comments

多线程中,使用YYDiskCache对象调用containsObjectForKey方法,导致crash,不稳定复现,求指这是什么错误?
报错堆栈如下:

libsqlite3.dylib 0x0000000226661568 sqlite3_finalize + 24880
1 libsqlite3.dylib 0x000000022665fe1c sqlite3_finalize + 18916
2 libsqlite3.dylib 0x000000022665fe1c sqlite3_finalize + 18916
3 libsqlite3.dylib 0x000000022665f6ec sqlite3_finalize + 17076
4 libsqlite3.dylib 0x000000022665db58 sqlite3_finalize + 10016
5 libsqlite3.dylib 0x000000022665cf98 sqlite3_finalize + 7008
6 libsqlite3.dylib 0x000000022667c3d4 sqlite3_step + 12952
7 libsqlite3.dylib 0x00000002266792ec sqlite3_step + 432
8 YYKit 0x0000000102b53e30 -[YYKVStorage _dbGetItemCountWithKey:] + 120
9 YYKit 0x0000000102b568e8 -[YYKVStorage itemExistsForKey:] + 64
10 YYKit 0x0000000102b3faa0 -[YYDiskCache containsObjectForKey:] + 88
11 XinRen 0x0000000100e3fb24 0x0000000100a6c000 + 4012836