Marc Gonzalez
unread,Jul 4, 2023, 8:58:00 AM7/4/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-br...@googlegroups.com, Joshua Peraza, Mark Mentovai, Ivan Penkov, Lei Zhang, Yuki Wang, Arnaud Vrac
Data segments are not needed in minidump_stackwalk
---
src/client/linux/minidump_writer/linux_dumper.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/client/linux/minidump_writer/linux_dumper.cc b/src/client/linux/minidump_writer/linux_dumper.cc
index bdf7966e..0be16515 100644
--- a/src/client/linux/minidump_writer/linux_dumper.cc
+++ b/src/client/linux/minidump_writer/linux_dumper.cc
@@ -608,6 +608,11 @@ bool LinuxDumper::EnumerateMappings() {
}
}
#endif
+ char c = 0;
+ sscanf(line, "%*s %*s %*s %*s %*s %c", &c);
+ if (c == '/' && !exec) /* skip non-executable file-based segments */
+ goto next_line;
+
MappingInfo* const module = new(allocator_) MappingInfo;
mappings_.push_back(module);
my_memset(module, 0, sizeof(MappingInfo));
@@ -625,6 +630,7 @@ bool LinuxDumper::EnumerateMappings() {
}
}
}
+next_line:
line_reader->PopLine(line_len);
}
--
2.34.1