SQLite

Artifact [cc324cdb]
Login

Artifact cc324cdb97320e583cec70211445c68a2ab2372a:

Ticket change [cc324cdb] - New ticket [7ff3120e] Recovery race condition leads to database corruption on Windows. by drh 2013-04-11 18:04:38.
D 2013-04-11T18:04:38.707
J icomment The\sxCheckReservedLock()\smethod\son\sthe\swindows\sVFS\scan\ssometimes\sreturn\sa\r\nfalse\spositive,\sif\stwo\sdifferent\sprocesses\scall\sit\son\sthe\ssame\sfile\sat\sthe\r\nsame\stime.\s\sThis\sleads\sone\sof\sthe\sprocesses\s(the\sone\sthat\sgot\sthe\sfalse\r\npositive)\sto\sbelieve\sthat\sthe\sother\sprocess\sis\staking\scare\sof\srecovering\r\nfrom\sa\sprior\scrash.\s\sThat\sprocess\smight\sthen\swrite\sinto\sthe\sdatabase\swithout\r\nfirst\srunning\srecovery,\sleading\sto\scorruption.\r\n\r\nTo\ssee\sthis\soccur,\scompile\sand\srun\sthe\s"mptester"\sutility\swith\sthe\smptest/crash01.test\sscript\smany\stimes\son\sa\sfast\smulti-core\swin8\smachine\susing\r\ncheck-in\s[663f04bd48bc6f3022]\sand\syou\swill\seventually\sget\sintegrity_check\r\nfailures.
J login drh
J mimetype text/x-fossil-wiki
J severity Critical
J status Open
J title Recovery\srace\scondition\sleads\sto\sdatabase\scorruption\son\sWindows
J type Code_Defect
K 7ff3120e4fa54abb551b1b7d1bc3835604e8b879
U drh
Z 50d59a36f8e7e3aa880c8af153a609c4