Re: [sqlite] Bug report: Data race in pcache1.c

2019-02-25 Thread Jan Krčál
Hi Richard, thanks a million for your check-in! It indeed fixed our issues with TSan! Best regards, Jan On Wed, Jan 9, 2019 at 3:55 PM Richard Hipp wrote: > Check-in https://www.sqlite.org/src/info/383437be276719ac will perhaps > silence the harmless false-positives reported by TSAN. Please l

Re: [sqlite] Bug report: Data race in pcache1.c

2019-01-09 Thread Richard Hipp
Check-in https://www.sqlite.org/src/info/383437be276719ac will perhaps silence the harmless false-positives reported by TSAN. Please let us know if it does not solve the problem for you. On 1/7/19, Jan Krčál wrote: > Hi, > > as a Chrome developer, I've run into a data race flagged by ThreadSanit

[sqlite] Bug report: Data race in pcache1.c

2019-01-09 Thread Jan Krčál
Hi, as a Chrome developer, I've run into a data race flagged by ThreadSanitizer in pcache1.c: When two threads write to in-memory sqlite DBs (each to its own separate DB), each thread has its own PCache1 with bPurgeable being false. Thus, in both threads, pCache->pnPurgeable points to the static