the above bin was running fine on the board and it catches the segfault and produced the minidump as well
crash while producing the text-format symbols.
google-breakpad/breakpad_exercise$ gdb --args ../src/tools/linux/dump_syms/dump_syms breakpad_exercise
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<
http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../src/tools/linux/dump_syms/dump_syms...
(gdb) run
Starting program: /home/wio/project/nw/tools/google-breakpad/src/tools/linux/dump_syms/dump_syms breakpad_exercise
Program received signal SIGSEGV, Segmentation fault.
0x000055555558a369 in google_breakpad::(anonymous namespace)::FindElfClassSegment<google_breakpad::ElfClass32> (segments=0x7fffffffd6c0, segment_type=4,
elf_base=0x7ffff791e000 "\177ELF\001\002\001") at src/common/linux/elfutils.cc:102
102 for (int i = 0; i < elf_header->e_phnum; ++i) {
(gdb) bt
#0 0x000055555558a369 in google_breakpad::(anonymous namespace)::FindElfClassSegment<google_breakpad::ElfClass32> (segments=0x7fffffffd6c0, segment_type=4,
elf_base=0x7ffff791e000 "\177ELF\001\002\001") at src/common/linux/elfutils.cc:102
#1 google_breakpad::FindElfSegments (elf_mapped_base=elf_mapped_base@entry=0x7ffff791e000, segment_type=segment_type@entry=4, segments=segments@entry=0x7fffffffd6c0)
at src/common/linux/elfutils.cc:172
#2 0x000055555558ac0d in google_breakpad::FindElfBuildIDNote (identifier=..., elf_mapped_base=0x7ffff791e000) at src/common/linux/file_id.cc:101
#3 google_breakpad::FileID::ElfFileIdentifierFromMappedFile (base=base@entry=0x7ffff791e000, identifier=...) at src/common/linux/file_id.cc:150
#4 0x0000555555582ec9 in (anonymous namespace)::InitModuleForElfClass<google_breakpad::ElfClass32> (elf_header=0x7ffff791e000, obj_filename="breakpad_exercise", obj_os="Linux",
module=...) at /usr/include/c++/9/ext/new_allocator.h:89
#5 0x0000555555587ef8 in (anonymous namespace)::ReadSymbolDataElfClass<google_breakpad::ElfClass32> (out_module=0x7fffffffdcb0, options=...,
debug_dirs=std::vector of length 0, capacity 0, obj_os="Linux", obj_filename="breakpad_exercise", elf_header=0x7ffff791e000) at ./src/common/scoped_ptr.h:92
#6 google_breakpad::ReadSymbolDataInternal (obj_file=0x7ffff791e000 "\177ELF\001\002\001", obj_filename="breakpad_exercise", obj_os="Linux",
debug_dirs=std::vector of length 0, capacity 0, options=..., module=0x7fffffffdcb0) at src/common/linux/dump_symbols.cc:1053
#7 0x00005555555889c1 in google_breakpad::ReadSymbolData (load_path=..., obj_file="breakpad_exercise", obj_os="Linux", debug_dirs=std::vector of length 0, capacity 0, options=...,
module=0x7fffffffdcb0) at src/common/linux/dump_symbols.cc:1136
#8 0x0000555555588a0a in google_breakpad::WriteSymbolFile (load_path=..., obj_file=..., obj_os=..., debug_dirs=..., options=..., sym_stream=...)
at src/common/linux/dump_symbols.cc:1073
#9 0x000055555555d7b1 in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/c++/9/ext/new_allocator.h:80
(gdb)
host machine;