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

[DeviceSanitizer] When link with libc++, link the gcc_s first. #2478

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yingcong-wu
Copy link
Contributor

@yingcong-wu yingcong-wu commented Dec 18, 2024

When trying to static link the libc++, some namespace-less/common symbols got resolved to libc++/libc++abi/libunwind first before it got a chance to resolve to libstdc++ and related libs. This causes a stdlib mismatch problem and leads to one device sanitizer test(options-invalid-values.cpp) SEGV when trying to throw an exception.
By putting gcc_s first, we can prevent such a problem.

@yingcong-wu yingcong-wu requested a review from a team as a code owner December 18, 2024 10:17
@yingcong-wu yingcong-wu requested review from zhaomaosu, AllanZyne and jinge90 and removed request for a team December 18, 2024 10:17
@github-actions github-actions bot added the loader Loader related feature/bug label Dec 18, 2024
@yingcong-wu yingcong-wu marked this pull request as draft December 19, 2024 02:32
@yingcong-wu yingcong-wu marked this pull request as ready for review December 19, 2024 03:24
@yingcong-wu yingcong-wu marked this pull request as draft December 19, 2024 03:25
@yingcong-wu yingcong-wu marked this pull request as ready for review December 19, 2024 03:25
@yingcong-wu yingcong-wu requested review from a team and AllanZyne December 19, 2024 03:25
@yingcong-wu
Copy link
Contributor Author

yingcong-wu commented Jan 2, 2025

Hi @unified-runtime-maintain, please help review this PR.
And please help tag this PR as it is targeted for 0.11.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loader Loader related feature/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants