rustc attempts to load non-existent PDB during delay_span_bug()
#116403
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
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.
At various points, rustc may use
std::backtrace::Backtrace::capture()
to get a backtrace of the current thread such as ifdelay_span_bug()
or similar functions are called. On Windows, this results indbghelp.dll
attempting to load the hardcoded path of rustc's PDB which, on normal user machines, never exists.Normally, this is fine and we just simply don't have debug symbols, but in some environments like build systems such as BuildXL, filesystem accesses are monitored to enable fine-grained caching. If we try to load rustc's PDB in this environment, it will trigger build system errors:
Since these paths won't generally resolve (unless you build rustc from source with debuginfo yourself), it would be nice to provide a way to turn this behavior off.
The text was updated successfully, but these errors were encountered: