Tailscale Traces Database Corruption to 16y/o SQLite WAL-Reset Bug

Tailscale and SQLite developers traced maddening corruption incidents to find the WAL-Reset data race, then uncovered a second stale expression index bug.
1192 points by ropbear 70 days ago tailscale.com 229 comments

Summary

Tailscale and SQLite developers have identified a long-standing bug in SQLite related to a data race in the WAL-Reset feature, which has been causing database corruption. Their investigation also revealed an additional issue with stale expression indexes, shedding light on critical vulnerabilities in database management.

Comments (229 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open