Comments (6)
doesn't seem to be anything to fix here, currently?
from rust.
The message describes the problem: the global allocator must not use thread_local!
, as the implementation of the macro needs to allocate on most platforms.
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 std
may allocate – I'd argue that you should not use std
at all when implementing your own global allocator.
from rust.
Grepping the rust repo returns nothing for that error either,
@MarinPostma You are searching overly specifically. The first part, "fatal runtime error", is an error from rtabort!
:
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
from rust.
@workingjubilee that's not the one, notice the absence of "in destructor"
from rust.
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
from rust.
there are actually 5 copies of it on the 1.79 branch.
which is why the refactoring that made there be only one.
from rust.
Related Issues (20)
- ICE: Cannot Eq compare incompatible types *mut T/#0 and *const T/#0 HOT 2
- Rust binaries cannot load relocatable libraries on macOS without `-rpath`
- Rust suggests invalid syntax for returning a method call in E0282
- Should tokens passed through `macro_rules` be able to join? HOT 1
- rustc ignores first exposed private type / span incorrect
- spurious ci failure: `The process cannot access the file because it is being used by another process` HOT 1
- A problem has to do with tuple and println!()
- Unresolved symbol linker error when running `cargo test` with an `#[used]` static variable on Windows HOT 2
- Assertion failure: Unexpected captures in ABI-compatible shim for Fn/FnMut implementation of coroutine-closure HOT 1
- ICE: assertion failed `Alias(Projection, ..` != `FreshTy(0)` HOT 3
- ICE: `associated_type_for_effects: Defid .. should be Trait or Impl but is TraitAlias` HOT 1
- ICE: `expected type for .. but found Const(false) when instantiating` HOT 1
- ICE: `parent item: DefId(0:5 ~ a[9a36]::{impl#1}) not marked as default` HOT 5
- `-Znext-solver` errors with `impl` for projected `Self` type
- Tracking Issue for anonymous pipe API HOT 2
- tests: double check if tests contain incorrect follow-up error annotation syntax `//|` instead of `//~|` HOT 1
- error: internal compiler error: compiler/rustc_infer/src/infer/at.rs:400:21: relating different kinds. HOT 3
- rustdoc json output on stdout ? HOT 1
- cannot run cargo because windows CMD error : "[0x7FFBC7A07FA4] ANOMALY: use of REX.w is meaningless (default operand size is 64)" HOT 6
- ICE because of a bad file on disk? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.