Skip to content

[Backtracing][Linux] Properly align the stacks. #66626

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 14, 2023

Conversation

al45tair
Copy link
Contributor

We have two stacks that we set up during crash handling, both of which were potentially misaligned. This only tripped us up on Ubuntu 20.04 on aarch64 - my guess is that maybe clone() aligns the stack pointer on newer kernels which is why we didn't see it on 22.04.

rdar://110743884

We have two stacks that we set up during crash handling, both of
which were potentially misaligned.  This only tripped us up on
Ubuntu 20.04 on aarch64 - my guess is that maybe `clone()` aligns
the stack pointer on newer kernels which is why we didn't see it
on 22.04.

rdar://110743884
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

I ran the backtracing tests for this PR on my (temporary) Ubuntu 20.04-aarch64 box:

$ utils/run-test --build-dir ../build/Ninja-RelWithDebInfoAssert/swift-linux-aarch64 --param backtracing test/Backtracing
...
Testing Time: 7.12s
  Unsupported:  1
  Passed     : 13

4 warning(s) in tests

@al45tair al45tair merged commit d06e8c9 into swiftlang:main Jun 14, 2023
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.

2 participants