llvm-project
88b9b253 - [LLVM] Disable IO sandbox in symbolizeAddresses (#194597)

Commit
28 days ago
[LLVM] Disable IO sandbox in symbolizeAddresses (#194597) The function `symbolizeAddresses` is used by debugify to symbolize addresses captured in the current invocation of LLVM, which it does by executing llvm-symbolizer with temporary input and output files. Creating the temporary files has an explicit sandbox exclusion, as temporary files are necessarily not part of the compiler's formal output, but attempting to read back the output file via MemoryBuffer triggers a sandbox violation. Since we are always only operating on temporary files within symbolizeAddresses, this patch disables the IO sandbox in that function.
Author
Parents
Loading