summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chromium/base/debug/stack_trace_posix.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/base/debug/stack_trace_posix.cc b/chromium/base/debug/stack_trace_posix.cc
index f3f05dad26b..54a22c0cc9f 100644
--- a/chromium/base/debug/stack_trace_posix.cc
+++ b/chromium/base/debug/stack_trace_posix.cc
@@ -49,6 +49,7 @@
#include "base/numerics/safe_conversions.h"
#include "base/posix/eintr_wrapper.h"
#include "base/strings/string_number_conversions.h"
+#include "base/strings/string_util.h"
#include "build/build_config.h"
#if defined(USE_SYMBOLIZE)
@@ -690,6 +691,11 @@ class SandboxSymbolizeHelper {
// Skip pseudo-paths, like [stack], [vdso], [heap], etc ...
continue;
}
+ if (base::EndsWith(region.path, " (deleted)",
+ base::CompareCase::SENSITIVE)) {
+ // Skip deleted files.
+ continue;
+ }
// Avoid duplicates.
if (modules_.find(region.path) == modules_.end()) {
int fd = open(region.path.c_str(), O_RDONLY | O_CLOEXEC);