Skip to content

The core's tests don't crash at exit when a database query is still running #308

Done

Description

@pitis

Seen while fixing #292 (PR #305): a desktop test run passed all tests, then crashed with SIGSEGV at exit. The crash report shows a sqlx worker still running a query while SQLCipher's exit handler ran. Binaries built without #305's change crash the same way; a rerun passed. #197 ("The core's tests no longer crash at exit: they wait for databases still closing") fixed a similar exit race; this looks like a case it misses.

Done when

  • The exit race is found (which database/worker outlives the tests) and closed, with the crash no longer reproducible over many runs under load.

Activity

  1. added
    bug
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions