Skip to content

Issues: rust-lang/rust

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

Author
Filter by author
Loading
Label
Filter by label
Loading
Use alt + click/return to exclude labels
or + click/return for logical OR
Projects
Filter by project
Loading
Milestones
Filter by milestone
Loading
Assignee
Filter by who’s assigned
Sort

Issues list

sys::thread_local::key::tests::destructors fails under x86 Windows 7 A-atomic Area: Atomics, barriers, and sync primitives A-destructors Area: Destructors (`Drop`, …) A-testsuite Area: The testsuite used to check the correctness of rustc A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. O-windows-7 OS: Windows 7 or Windows Server 2008 R2 or etc. O-windows-msvc Toolchain: MSVC, Operating system: Windows O-x86_32 Target: x86 processors, 32 bit (like i686-*) (IA-32) P-low Low priority regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#141300 opened May 20, 2025 by PaulDance
Static thread_local! declarations are moved before Drop is called A-thread-locals Area: Thread local storage (TLS) C-discussion Category: Discussion or questions that doesn't represent real issues. C-feature-request Category: A feature request, i.e: not implemented / a PR. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#140816 opened May 8, 2025 by orlp
Stack overflow when tls_callback called on x86_64-pc-windows-gnu A-panic Area: Panicking machinery A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. O-windows-gnu Toolchain: GNU, Operating system: Windows S-has-bisection Status: A bisection has been found for this issue T-libs Relevant to the library team, which will review and decide on the PR/issue.
#140798 opened May 8, 2025 by Berrysoft
Run TLS destructors for wasm32-wasip1-threads make Node.js stuck A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. O-wasi Operating system: Wasi, Webassembly System Interface O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-libs Relevant to the library team, which will review and decide on the PR/issue.
#137510 opened Feb 24, 2025 by Brooooooklyn
Document thread_local behavior with foreign-created threads A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-thread-locals Area: Thread local storage (TLS) T-libs Relevant to the library team, which will review and decide on the PR/issue.
#136546 opened Feb 4, 2025 by eloff
Heavy usage of TLS causes stack overflow A-panic Area: Panicking machinery A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#136120 opened Jan 27, 2025 by errangutan
Should generate llvm.threadlocal.address for TLS accesses A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#136044 opened Jan 25, 2025 by nikic
#[thread_local]s are pessimized in #[no_mangle] functions A-codegen Area: Code generation A-thread-locals Area: Thread local storage (TLS) C-optimization Category: An issue highlighting optimization opportunities or PRs implementing such F-thread_local `#![feature(thread_local)]` T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#136042 opened Jan 25, 2025 by purplesyringa
#[thread_local] alignment broken on Windows, GNU ABI A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. F-thread_local `#![feature(thread_local)]` I-unsound Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness O-windows-gnu Toolchain: GNU, Operating system: Windows requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#135719 opened Jan 19, 2025 by purplesyringa
#[thread_local] + #[no_mangle] produces a "symbol already defined" error on Windows targets A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. F-thread_local `#![feature(thread_local)]` O-windows Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#134939 opened Dec 30, 2024 by saethlin
Dependency of rustc_fluent_macros getting compiled with -Ztls-model=initial-exec A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#134863 opened Dec 28, 2024 by bjorn3
Tracking Issue for thread spawn hooks A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC F-thread_spawn_hook `#![feature(thread_spawn_hook)]` T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
#132951 opened Nov 12, 2024 by m-ou-se
2 of 4 tasks
thread_local! initialization code panics on some aarch64-apple-darwin envs, works on others A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status O-AArch64 Armv8-A or later processors in AArch64 mode O-macos Operating system: macOS T-libs Relevant to the library team, which will review and decide on the PR/issue.
#132704 opened Nov 6, 2024 by dj8yfo
std: detect stack overflows in TLS destructors on UNIX A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows A-thread-locals Area: Thread local storage (TLS) O-hermit Operating System: Hermit O-SGX Target: SGX O-solid Operating System: SOLID O-unix Operating system: Unix-like O-windows Operating system: Windows S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#131282 opened Oct 5, 2024 by joboet Loading…
Guarantee that thread-local storage destructors run before join() returns A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-discussion Category: Discussion or questions that doesn't represent real issues. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
#127571 opened Jul 10, 2024 by pvillela
Compiler support for Windows TLS destructors A-thread-locals Area: Thread local storage (TLS) C-enhancement Category: An issue proposing an enhancement or a PR with one. O-windows Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#123907 opened Apr 14, 2024 by ChrisDenton
Scoped thread implicit join doesn't wait for thread locals to be dropped A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. disposition-close This PR / issue is in PFCP or FCP with a disposition to close it. finished-final-comment-period The final comment period is finished for this PR / Issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
#116237 opened Sep 28, 2023 by pvillela
Crash during thread teardown using TLS in global allocator on macOS A-allocators Area: Custom and system allocators A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. O-macos Operating system: macOS T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#115149 opened Aug 23, 2023 by jrose-signal
Stack overflow not caught in Drop for TLS data A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows A-stack-probe Area: Stack probing and guard pages A-thread Area: `std::thread` A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug.
#111272 opened May 6, 2023 by ridiculousfish
Tracking issue for cleaning up std's thread_local implementation details A-thread-locals Area: Thread local storage (TLS) C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#110897 opened Apr 27, 2023 by m-ou-se
20 of 24 tasks
Suboptimal code generation for thread_local! A-thread-locals Area: Thread local storage (TLS) C-optimization Category: An issue highlighting optimization opportunities or PRs implementing such I-slow Issue: Problems and improvements with respect to performance of generated code. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#104033 opened Nov 6, 2022 by stepancheg
E0530 when using std::thread_local and a static named init A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#99018 opened Jul 7, 2022 by CGamesPlay
Rustbuild compiles proc macros with -Ztls-model=inital-exec when cross-compiling A-linkage Area: linking into static, shared libraries and binaries A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
#92976 opened Jan 16, 2022 by bjorn3
Segmentation fault when thread using dynamically loaded Rust library exits A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#91979 opened Dec 15, 2021 by devongovett
Check target definitions to see if more should have cfg(target_thread_local) enabled. A-thread-locals Area: Thread local storage (TLS) F-thread_local `#![feature(thread_local)]` O-dragonfly Operating system: DragonFly BSD O-freebsd Operating system: FreeBSD O-netbsd Operating system: NetBSD O-openbsd Operating system: OpenBSD O-windows-gnu Toolchain: GNU, Operating system: Windows
#91659 opened Dec 8, 2021 by thomcc
ProTip! Follow long discussions with comments:>50.