Filipp Andjelo added the comment:
Hi Serhiy,
I tried the short example you gave, but it doesn't crash. I'm getting:
Exception ignored in:
Traceback (most recent call last):
File "./test.py", line 5, in __del__
next(it)
StopIteration
Exception ignored in:
Traceback (most r
Filipp Andjelo added the comment:
The issue26494 seems really suspicious, could be our case. And regarding my
patch, nice to know, you are the same opinion. However, the code there is
looking very strange. I really don't understand, why there are mutex guards
anyway, since close() can only
Filipp Andjelo added the comment:
Hi Serhiy,
unfortunately not, we have one heavy application which is crashing with the
given error non deterministically after about 25 hours of running on 40 CPUs
with 280GiB memory (!) in use. We already made all kind of test to get it
reproducible
New submission from Filipp Andjelo:
Race condition in sqlite close/dealloc crashes the application with double
free(). The pointer is set to NULL outside of mutexed zone, so if close and
dealloc follow each other very shortly application crashes. Please see the
attached patch