Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential deadlock when starting the encryption thread #8402

Open
MochalovAlexey opened this issue Jan 20, 2025 · 0 comments · May be fixed by #8403
Open

Potential deadlock when starting the encryption thread #8402

MochalovAlexey opened this issue Jan 20, 2025 · 0 comments · May be fixed by #8403

Comments

@MochalovAlexey
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant