-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Fix potential deadlock when starting the encryption thread #8403
Merged
AlexPeshkoff
merged 3 commits into
FirebirdSQL:master
from
MochalovAlexey:crypt_thread_deadlock
Jan 23, 2025
Merged
Fix potential deadlock when starting the encryption thread #8403
AlexPeshkoff
merged 3 commits into
FirebirdSQL:master
from
MochalovAlexey:crypt_thread_deadlock
Jan 23, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…nd the thread where we release the attachment. If they match, use a dummy mutex instead of the actual dbb_thread_mutex to avoid a deadlock
MochalovAlexey
changed the title
Fix potential deadlock when starting the encryption thread (fixes #8402)
Fix potential deadlock when starting the encryption thread
Jan 20, 2025
…crypto thread handle
hvlad
reviewed
Jan 22, 2025
hvlad
reviewed
Jan 22, 2025
dyemanov
pushed a commit
that referenced
this pull request
Jan 27, 2025
* add a check to verify thread matching between the encryption thread and the thread where we release the attachment. If they match, use a dummy mutex instead of the actual dbb_thread_mutex to avoid a deadlock * fix Windows build by introducing a method to retrieve thread id from crypto thread handle * rename the crypt process thread id variable to its actual purpose as handle --------- Co-authored-by: aleksey.mochalov <aleksey.mochalov@red-soft.ru>
dyemanov
pushed a commit
that referenced
this pull request
Jan 27, 2025
* add a check to verify thread matching between the encryption thread and the thread where we release the attachment. If they match, use a dummy mutex instead of the actual dbb_thread_mutex to avoid a deadlock * fix Windows build by introducing a method to retrieve thread id from crypto thread handle * rename the crypt process thread id variable to its actual purpose as handle --------- Co-authored-by: aleksey.mochalov <aleksey.mochalov@red-soft.ru>
MochalovAlexey
pushed a commit
to MochalovAlexey/firebird
that referenced
this pull request
Jan 27, 2025
…QL#8403) B3_0_Release backport add a check to verify thread matching between the encryption thread and the thread where we release the attachment. If they match, use a dummy mutex instead of the actual dbb_thread_mutex to avoid a deadlock
dyemanov
pushed a commit
that referenced
this pull request
Jan 28, 2025
…_0_Release backport (#8412) add a check to verify thread matching between the encryption thread and the thread where we release the attachment. If they match, use a dummy mutex instead of the actual dbb_thread_mutex to avoid a deadlock Co-authored-by: aleksey.mochalov <aleksey.mochalov@red-soft.ru>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #8402
add a check to verify thread matching between the encryption thread and the thread where we release the attachment. If they match, use a dummy mutex instead of the actual
dbb_thread_mutex
to avoid a deadlock