-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
macOS: v10.13+ doesn't unload .dylibs with TLS #3002
Comments
Not sure if it's related, but at work we struggled with shared libraries not being unloaded with 10.13 (or even 10.12.6 IIRC). It turned out that Apple chose to disable unloading if the shared library uses implicit TLS. |
As our previous macOS image has been phased out, and we'd have to downgrade to the xcode-9.0.1 image if we wanted to stick with macOS 10.12. xcode-11.1.0 is the newest image and comes with macOS 10.14, so we'll probably hit issue ldc-developers#3002. https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
Thanks, this seems to confirm this: rust-lang/rust#28794 (comment) |
…ylibs with TLS Working around ldc-developers#3002.
Well, all non-betterC .dylibs produced by LDC feature at least one TLS symbol, a TLS anchor used for registering with potentially shared druntime, so that's another LDC specificum (and why DMD might pass the test on newer macOS). Edit: Nope, DMD should fail too, as the tested dylib contains explicit TLS symbols (here). |
…ylibs with TLS Working around ldc-developers#3002.
…ylibs with TLS Working around ldc-developers#3002.
Btw, |
Apparently, musl doesn't unload and run destructors either: dlang/druntime#2918 |
See #2839.
I firstly thought it was Xcode-specific, but tests with Azure have shown that it's got to be macOS 10.13 (as 10.13 + Xcode 9.2 fails too) - TLS changes?
Possibly related: #2820 and https://forum.dlang.org/thread/q0l0t6$2mnn$1@digitalmars.com.
The text was updated successfully, but these errors were encountered: