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

i#5458: Switch suspend signal to SIGFPE #5461

Merged
merged 3 commits into from
Apr 13, 2022
Merged

Conversation

derekbruening
Copy link
Contributor

Changes the signal that DR uses to suspend a thread from SIGUSR2,
which is sometimes blocked by the app at attach time, to SIGFPE, which
as a fatal normally-synchronous signal is less likely to be blocked.

Manually tested on an attach to mysqld which failed with SIGUSR2 but
succeeds now.

Fixes #5458

Changes the signal that DR uses to suspend a thread from SIGUSR2,
which is sometimes blocked by the app at attach time, to SIGFPE, which
as a fatal normally-synchronous signal is less likely to be blocked.

Manually tested on an attach to mysqld which failed with SIGUSR2 but
succeeds now.

Fixes #5458
@derekbruening
Copy link
Contributor Author

Unfortunately it's looking like QEMU does not handle DR sending SIGFPE via SYS_kill.

@derekbruening derekbruening requested a review from bete0 April 13, 2022 14:18
@derekbruening derekbruening merged commit 7795027 into master Apr 13, 2022
@derekbruening derekbruening deleted the i5458-suspend-sig branch April 13, 2022 18:28
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 this pull request may close these issues.

Thread takeover on attach fails b/c SIGUSR2 is blocked: switch to another signal?
2 participants