Re: [sqlite] Memory corruption in a mutilthreaded environment

2012-08-10 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/12 18:42, Rittick Gupta wrote: > I have a program with multiple threads. You should run under valgrind/helgrind. > This may or may not anything to do with the problem I'd bet that your underlying problem is that some other part of your code

[sqlite] Memory corruption in a mutilthreaded environment

2012-08-10 Thread Rittick Gupta
I have a program with multiple threads. The threads do not share the same handle.Occcasionally the program dies with a core. I see a thread always with the following stack: #3 0x6000d336b7c0:0 in closeDB () at ../lang/sql/generated/sqlite3.c:35553 #4 0x6000d3388c60:0 in btreeInvalidate