-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
runtime error: global allocator may not use TLS on arm64 macos #126948
Comments
The message describes the problem: the global allocator must not use We may in the future decide to allow this by using the system allocator here, but this is fundamentally just the tip of the iceberg: nearly every API in |
@MarinPostma You are searching overly specifically. The first part, "fatal runtime error", is an error from Lines 39 to 42 in a299aa5
The second part is inside the TLS dtor registration, currently: rust/library/std/src/sys/thread_local/destructors/list.rs Lines 4 to 13 in a299aa5
|
@workingjubilee that's not the one, notice the absence of "in destructor" |
Yes, the error message has been tweaked since then but it's still the same error condition. Here's where it is on the 1.79 branch rust/library/std/src/sys/pal/unix/thread_local_dtor.rs Lines 105 to 109 in 129f3b9
|
there are actually 5 copies of it on the 1.79 branch. which is why the refactoring that made there be only one. |
doesn't seem to be anything to fix here, currently? |
When using TLS from the global allocator on arm64 macos, I get the following fatal runtime error:
This doesn't happen on x86 linux, and I can't find any mention of it anywhere. Grepping the rust repo returns nothing for that error either, so I'm not sure where it's coming from
I tried this code:
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: