Skip to content

[lldb] Disable tests affected by ld_new bug #8610

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

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Apr 19, 2024

Cherry pick llvm#83941 and llvm#84246

@kastiglione kastiglione force-pushed the dl/lldb-Disable-shell-tests-affected-by-ld_new-bug-84246 branch from b2c4b4e to a695d14 Compare April 19, 2024 16:17
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione changed the title [lldb] Disable shell tests affected by ld_new bug (#84246) [lldb] Disable tests affected by ld_new bug Apr 19, 2024
@kastiglione kastiglione force-pushed the dl/lldb-Disable-shell-tests-affected-by-ld_new-bug-84246 branch from 62fdebb to 7057a64 Compare April 19, 2024 17:50
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione force-pushed the dl/lldb-Disable-shell-tests-affected-by-ld_new-bug-84246 branch from 7057a64 to 5eb88c8 Compare April 19, 2024 23:17
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione force-pushed the dl/lldb-Disable-shell-tests-affected-by-ld_new-bug-84246 branch from 5eb88c8 to 5a3094a Compare April 23, 2024 17:19
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test windows

1 similar comment
@kastiglione
Copy link
Author

@swift-ci test windows

kastiglione and others added 2 commits April 24, 2024 14:12
Equivalent to the changes made in llvm#83941,
except to support shell tests.

(cherry picked from commit ecf7db8)
llvm#83941)

When Apple released its new linker, it had a subtle bug that caused
LLDB's TLS tests to fail. Unfortunately this means that TLS tests are
not going to work on machines that have affected versions of the linker,
so we should annotate the tests so that they only work when we are
confident the linker has the required fix.

I'm not completely satisfied with this implementation. That being said,
I believe that adding suport for linker versions in general is a
non-trivial change that would require far more thought. There are a few
challenges involved:
- LLDB's testing infra takes an argument to change the compiler, but
there's no way to switch out the linker.
- There's no standard way to ask a compiler what linker it will use.
- There's no standard way to ask a linker what its version is. Many
platforms have the same name for their linker (ld).
- Some platforms automatically switch out the linker underneath you. We
do this for Windows tests (where we use LLD no matter what).

Given that this is affecting the tests on our CI, I think this is an
acceptable solution in the interim.

(cherry picked from commit d93a126)
@kastiglione kastiglione force-pushed the dl/lldb-Disable-shell-tests-affected-by-ld_new-bug-84246 branch from 5a3094a to b311f6c Compare April 24, 2024 21:14
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test windows

@kastiglione
Copy link
Author

@JDevlieghere can you merge?

@adrian-prantl adrian-prantl merged commit 04bbe1b into swift/release/6.0 Apr 25, 2024
@kastiglione kastiglione deleted the dl/lldb-Disable-shell-tests-affected-by-ld_new-bug-84246 branch May 15, 2024 19:04
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.

4 participants