Skip to content

Conversation

@groue
Copy link
Owner

@groue groue commented Dec 8, 2025

The issue #1838 has revealed several bugs that are fixed in this pull request:

  • A GRDB bug where a database transaction might not properly rollback in case of Task cancellation.
  • A GRDB bug where a read-only access might not properly leave the read-only mode in case of Task cancellation.
  • An SQLite bug where some prepared statements leaked by the FTS5 full-text engine prevent a cancelled database access from completing correctly.

groue added 4 commits December 8, 2025 15:13
This should fix a race condition about cancellation that happens during a rollback
This should fix a race condition about cancellation that happens during a read-only access.
groue added 2 commits December 9, 2025 21:38
…lationError, including errors thrown by statement compilation

I did not know statement compilation could fail when database is interrupted until #1838. A ROLLBACK statement would not even compile due to the FTS5 statement leak reported in https://sqlite.org/forum/forumpost/137c7662b389fa18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants