-
Notifications
You must be signed in to change notification settings - Fork 39
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
Cygwin: revert use of CancelSyncronousIo on wait_thread. #243
Cygwin: revert use of CancelSyncronousIo on wait_thread. #243
Conversation
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.
Changes look good to me; I'd love some more details in the commit message, but won't insist on them (following the link provides some context, it's just that it relies on a working internet/GitHub).
This was a quick and dirty commit for testing, in response to msys2/MSYS2-packages#4340 (comment) - I fired up some tests to run while I slept, and they seem to not have hung on either x86_64 or ARM64, so I can come back to this and clean up the commit message and submit to cygwin-patches once approved here |
d8ac68d
to
d142cc5
Compare
It appears this is causing hangs on native x86_64 in similar scenarios as the hangs on ARM64, because `CancelSynchronousIo` is returning `TRUE` but not canceling the `ReadFile` call as expected. Addresses: msys2/MSYS2-packages#4340 (comment) Fixes: b091b47 ("cygthread: suspend thread before terminating.") Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
d142cc5
to
2eb6be1
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.
Makes sense to me!
This change seems to have caused hangs on x86_64, so let's revert it. Addresses msys2#4340 (comment) and corresponds to msys2/msys2-runtime#243. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This change seems to have caused hangs on x86_64, so let's revert it. Addresses #4340 (comment) and corresponds to msys2/msys2-runtime#243. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This change seems to have caused hangs on x86_64, so let's revert it. Addresses msys2/MSYS2-packages#4340 (comment) and corresponds to msys2/msys2-runtime#243. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
It appears this is causing hangs on native x86_64 in similar scenarios
as the hangs on ARM64, because
CancelSynchronousIo
is returningTRUE
but not canceling the
ReadFile
call as expected.Addresses: msys2/MSYS2-packages#4340 (comment)
Fixes: b091b47 ("cygthread: suspend thread before terminating.")
created via
git checkout 16dfe943bcba396ac0b11c5b52cdbaeed4e03a8d -- sigproc.cc pinfo.cc