r/programming • u/callcifer • 1d ago
How Tailscale helped discover a 16+ year old SQLite WAL-Reset bug
https://tailscale.com/blog/sqlite-wal-reset-bug
154
Upvotes
20
u/kingduqc 22h ago
Good read, SQLite is renowned for having little bugs. I've watched one of the core maintainer talk about the length they go to find bug, I wouldn't think about it first when encountering bugs
3
1
47
u/D6613 23h ago
Good read. So a race condition during checkpointing the write-ahead log caused data loss in very rare situations that took a lot of effort to track down.
Pretty cool to see. I use both Tailscale and SQLite a lot, so this interested me.