-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 #5341] addressing deadlock regression in windows dispatcher threads #5421
Conversation
Test pass:
I also tested this against our internal configuration, we're no longer seeing the deadlock occur. We have integration tests for this server, test 7 above, and I'll investigate why it wasn't catching this before. |
include/osquery/dispatcher.h
Outdated
@@ -28,6 +28,7 @@ class Status; | |||
class Dispatcher; | |||
|
|||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;,)
1eda4bb
to
0ffb269
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muffins has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
0ffb269
to
6ac39d0
Compare
@muffins has updated the pull request. Re-import the pull request |
6ac39d0
to
76ebd55
Compare
@muffins has updated the pull request. Re-import the pull request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muffins has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…#5421) Summary: This addresses a slight regression to ensure that we set `set_terminate_threads` on Windows. Without this flag being set, Windows threads will deadlock on exit as the boost managed io service threads never receive termination notifications. I'm opening this PR up against the old master as I feel we should likely cut a 3.3.3, and I'm happy to re-open this PR against the upstream experimental as well, but we'll want a fix for this released as quickly as possible to Windows deployments. Pull Request resolved: osquery#5421 Reviewed By: marekcirkos Differential Revision: D13972916 Pulled By: muffins fbshipit-source-id: 55e3b23c80091d5fb51a97d1efc043b52dc48ba3
This addresses a slight regression to ensure that we set
set_terminate_threads
on Windows. Without this flag being set, Windows threads will deadlock on exit as the boost managed io service threads never receive termination notifications.I'm opening this PR up against the old master as I feel we should likely cut a 3.3.3, and I'm happy to re-open this PR against the upstream experimental as well, but we'll want a fix for this released as quickly as possible to Windows deployments.