Skip to content

[Backtracing][Linux] Fix Ubuntu 20.04-aarch64 CI failures. #66568

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

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

al45tair
Copy link
Contributor

These seem to be related to signal handling issues in threads that have been started presumably by the C library or some other library.

Primarily this appears to affect Ubuntu 20.04 on aarch64, though I have seen sporadic issues on 18.04 as well.

We address the problem by making the thread suspension mechanism more robust in the face of threads with masked signals.

rdar://110653167

These seem to be related to signal handling issues in threads that
have been started presumably by the C library or some other library.

Primarily this appears to affect Ubuntu 20.04 on aarch64, though I
have seen sporadic issues on 18.04 as well.

We address the problem by making the thread suspension mechanism
more robust in the face of threads with masked signals.

rdar://110653167
@al45tair al45tair added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Jun 12, 2023
@al45tair al45tair requested review from mikeash and shahmishal June 12, 2023 18:00
@al45tair al45tair requested a review from a team as a code owner June 12, 2023 18:00
@al45tair
Copy link
Contributor Author

al45tair commented Jun 12, 2023

Explanation: The Ubuntu 20.04 aarch64 build fails in the backtracing tests where we perform actual crashes. This appears to be because some system component is injecting an extra thread that has various signals blocked, including the one we're using to suspend threads and capture their thread contexts.
Risk: Low. Only affects Linux.
Original PR: #66567
Reviewed by: @mikeash
Resolves: rdar://110653167
Tests: This fixes a build failure in CI. After merging, the relevant tests should start working reliably.

@al45tair
Copy link
Contributor Author

@swift-ci Please test

@al45tair
Copy link
Contributor Author

@swift-ci Please test macOS platform

@al45tair al45tair requested a review from etcwilde June 13, 2023 09:50
@al45tair al45tair merged commit 259761c into swiftlang:release/5.9 Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants