Skip to content

@_implementationOnly import _AtomicsShims triggers compiler assertions on 5.9 #107

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

Closed
lorentey opened this issue Oct 13, 2023 · 1 comment · Fixed by #110
Closed

@_implementationOnly import _AtomicsShims triggers compiler assertions on 5.9 #107

lorentey opened this issue Oct 13, 2023 · 1 comment · Fixed by #110
Labels
bug Something isn't working
Milestone

Comments

@lorentey
Copy link
Member

Under certain unknown circumstances, using Swift Atomics as a dependency triggers a compiler assertion due to the way it imports _AtomicsShims in 5.9.

error: fatal error encountered while reading from module '[...]'; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<binary format>
^
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
[...]
6.      *** DESERIALIZATION FAILURE ***
[...]
module '_AtomicsShims' was not loaded
@lorentey lorentey added the bug Something isn't working label Oct 13, 2023
@lorentey
Copy link
Member Author

I added the @_implementationOnly import to prevent issues when library evolution is enabled:

#104 (comment)

Not sure what we can do here, other than getting rid of this C module as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant