Fix backtrace symbolization. (#6803)

We previously set `LLVM_SYMBOLIZER_PATH` to a bogus path ending
`.../binllvm-symbolizer`. Because this var was set, LLVM's symbolizer
lookup would also skip looking in `$PATH`, so this was causing
symbolization to never happen unless `LLVM_SYMBOLIZER_PATH` was
explicitly set in the environment.
This commit is contained in:
Richard Smith
2026-02-26 23:15:04 +00:00
committed by GitHub
parent bf9219d30e
commit b83dcd4348
+1 -1
View File
@@ -44,7 +44,7 @@ static auto Main(int argc, char** argv) -> ErrorOr<int> {
// for symbolization.
setenv(
"LLVM_SYMBOLIZER_PATH",
(install_paths.llvm_install_bin().native() + "llvm-symbolizer").c_str(),
(install_paths.llvm_install_bin() / "llvm-symbolizer").native().c_str(),
/*overwrite=*/0);
auto fs = llvm::vfs::getRealFileSystem();