Closed
Description
The dbghelp library on MSVC is not safe to use concurrently from multiple threads. There is no synchronization between the standard library's usage of RUST_BACKTRACE=1
and this crate generating a backtrace, meaning that it's not technically possible to 100% safely use this crate on MSVC.
Fixing this will likely require some form of global lock exported by the standard library specifically for backtraces and specifically for MSVC (it can be a noop on all other platforms). This library would then, when compiled on crates.io, need to coordinate with the standard library in terms of locking to ensure that only one implementation is using dbghelp at a time.
Metadata
Metadata
Assignees
Labels
No labels