Crashed at sqlite3LeaveMutexAndCloseZombie+452
I am using "3.22.0", and there's an occasional crash when sqlite3Close() is called.
Part of backtrace:
Then I tracked the code, this should have been caused by a NULL pointer passed to functionDestory():
p = sqliteHashData(i); // P may be NULL in some case
pNext = p->pNext;
p = pNext;
So I intend to change this do-while to while-do to avoid this crash.
Does anyone have the similar situation?
3.22 is 3.5 years old. Lots of bugs fixed since then. I don't recall anything like this though.
If you don't upgrade, it might be worth running your app under valgrind or asan or similar. There shouldn't be NULL values in that hash table. Something is going awry.
Thanks for your reply.
Upgrade is a good idea to solve this problem completely, we will consider that.
But I think before that I need to have some internal evaluation and discussion in my team.
Currently I will try to change the do-while to while-do to see whether it works for my situation.