[issue26494] Double deallocation on iterator exhausting

2016-03-09 Thread Filipp Andjelo
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

[issue26387] Crash calling sqlite3_close with invalid pointer

2016-03-09 Thread Filipp Andjelo
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

[issue26387] Crash calling sqlite3_close with invalid pointer

2016-03-08 Thread Filipp Andjelo
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

[issue26387] Race condition in sqlite module

2016-02-18 Thread Filipp Andjelo
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