-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Patch libunwind manually to fix the access violation to unblock source build #97813
Conversation
Tagging subscribers to this area: @tommcdon Issue DetailsThis is meant to port libunwind/libunwind#717 directly from libunwind to unblock source build. It is meant to be temporarily, once we have the libunwind updated we will revert this an take a proper update from there.
|
@cshung is the issue that this fixes really blocking the source build? I believe this blocks debuggers only as it is remote unwind specific. I have thought that the issue that was blocking the source build was the race that I've found yesterday. |
I don't actually know exactly what happened there, I attached the link to the conversation leading to this PR above. Note that it also unblocks collecting dump on CI. |
Please add a line |
818ddae
to
459eae6
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.
Looks great, thank you! :)
For the future, maybe we can add a few tests to catch these issues earlier, if possible? (as a separate PR)
My patch PR for the other issue is here: |
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.
LGTM, thank you!
We chatted about it, since this is a regression in libunwind, it makes sense to have the test there so that we catch it upstream. We were invited to write a unit test for it here. It would be great if you can help. |
I meant if we could create a test in runtime repo, that would be useful. We are updating libunwind once a year, failing one build leg like the CG2 error message in source-build CI would be enough to catch it earlier on. I’m actually interested in writing an integration test in libunwind, which will run periodically and test build runtime (docker container in GitHub Actions pipeline), so we don’t have to troubleshoot one year worth of issues after the release. Will draft a proposal to libunwind maintainers over this weekend or so. |
This is meant to port libunwind/libunwind#717 directly from libunwind to unblock source build.
It is meant to be temporarily, once we have the libunwind updated we will revert this an take a proper update from there.
See the conversation here for the context.
@am11, @EgorBo