Skip to content

Potential deadlock when starting the encryption thread #8402

@MochalovAlexey

Description

@MochalovAlexey

Inside the encryption thread, before creating an internal connection, the non-recursive mutex Jrd::Database::dbb_thread_mutex is locked. This can lead to a deadlock if an exception is thrown during the connection process and the release_attachment function is called, as it also attempts to lock this mutex.

This issue affects all major versions: 3, 4, 5, and 6. A PR with the fix will be provided shortly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions