Skip to content

Commit

Permalink
Fix stack traces on Fedora
Browse files Browse the repository at this point in the history
This fixes the main issue (#118) with stack traces on Fedora, which uses a
`/lib64` and `/usr/lib64`.

PiperOrigin-RevId: 437717858
Change-Id: I6986aa84c2be57ae1d9f8d0cb9b508768d27f1c1
  • Loading branch information
cblichmann authored and copybara-github committed Mar 28, 2022
1 parent 480b27f commit b136b31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sandboxed_api/sandbox2/stack_trace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ absl::StatusOr<std::unique_ptr<Policy>> StackTracePeer::GetPolicy(
// Add all possible libraries without the need of parsing the binary
// or /proc/pid/maps.
for (const auto& library_path : {
"/usr/lib64",
"/usr/lib",
"/lib64",
"/lib",
}) {
if (access(library_path, F_OK) != -1) {
Expand Down

0 comments on commit b136b31

Please sign in to comment.