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

[Bug]: Swift 6 doesn't work on Android 7-9 #22229

Open
finagolfin opened this issue Nov 12, 2024 · 0 comments
Open

[Bug]: Swift 6 doesn't work on Android 7-9 #22229

finagolfin opened this issue Nov 12, 2024 · 0 comments
Labels
android-7.x Issue happens on devices running Android 7.x android-8.x Issue happens on devices running Android 8.x android-9 Issue happens on devices running Android 9 bug report Something is not working properly upstream issue It is an upstream issue

Comments

@finagolfin
Copy link
Member

Problem description

The Swift 6 stdlib added a thread-local variable for the first time to an inline method defined in one of its C++ headers (the Swift stdlib is written in a mix of Swift and C++), but the Swift compiler probably doesn't pass the Android API when compiling that C++ method, so it wrongly tries to use native thread-local storage with Android API 24, even though Android didn't support that till API 29.

I will look into a fix and update the compiler once I have one, in the meantime, this is to let everyone know this package is currently expected to fail on older Android devices.

What steps will reproduce the bug?

Running the Swift toolchain on Android 7-9 makes it segfault

What is the expected behavior?

Running fine, as it does on Android 10 or later

System information

Saw this on an old tablet running Android 9 AArch64 and the x86_64 emulator on github Actions
@finagolfin finagolfin added bug report Something is not working properly untriaged labels Nov 12, 2024
@finagolfin finagolfin added android-9 Issue happens on devices running Android 9 android-7.x Issue happens on devices running Android 7.x android-8.x Issue happens on devices running Android 8.x upstream issue It is an upstream issue and removed untriaged labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android-7.x Issue happens on devices running Android 7.x android-8.x Issue happens on devices running Android 8.x android-9 Issue happens on devices running Android 9 bug report Something is not working properly upstream issue It is an upstream issue
Projects
None yet
Development

No branches or pull requests

1 participant