SQLite WAL-reset database corruption bug

19 points by cve


ohrv

Based on available telemetry, the occurrence rate of this problem in the wild appears to be less than or equal to the expect occurrence rate of SSD malfunctions and/or cosmic-ray hits.

SQLite - statistically more reliable than the hardware you are running it on.

cve

Unfortunately, there does not seem to be much documentation on this.

The merge commit fixing this is 7168988acbec2d8d. According to the test contained there, it seems to happen under a race condition with tight timing guarantees.