1) Clone the code git clone https://github.com/google/breakpad.git 2) cd breakpad 3) ./configure && make 4) we may face an error as given below, In file included from ./src/client/linux/dump_writer_common/thread_info.h:36, from ./src/client/linux/minidump_writer/linux_dumper.h:53, from ./src/client/linux/minidump_writer/minidump_writer.h:41, from src/tools/linux/core2md/core2md.cc:37: ./src/common/memory_allocator.h:49:10: fatal error: third_party/lss/linux_syscall_support.h: No such file or directory 49 | #include "third_party/lss/linux_syscall_support.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:5671: src/tools/linux/core2md/core2md.o] Error 1 5) Download dependency packages git clone https://chromium.googlesource.com/linux-syscall-support src/third_party/lss/ 6) make (recompile) 7) Sample application to generate crash and minidumps #include #include "client/linux/handler/exception_handler.h" // Callback function to handle crash dumps bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, void* context, bool succeeded) { printf("Dump path: %s\n", descriptor.path()); // Add custom handling here (e.g., logging, reporting) return succeeded; } int main() { // Specify the directory for crash dumps google_breakpad::MinidumpDescriptor descriptor("/path/to/dump/directory"); // Initialize Breakpad with the dump directory and callback function google_breakpad::ExceptionHandler eh(descriptor, NULL, DumpCallback, NULL, true, -1); // Trigger a crash (for testing purposes) int* ptr = NULL; *ptr = 42; // This will cause a segmentation fault return 0; } 8) Compile and run this example should generate a minidump file in the specified path g++ -g -I breakpad/src -o test crash_test.cpp breakpad/src/client/linux/libbreakpad_client.a -lpthread 9) cd breakpad/src/tools/linux/dump_syms/ 10)./dump_syms ~/./test > ~/test.sym 11)cd ~/ 12)head -n1 test.sym // MODULE Linux x86_64 B5DE7DCDABA411FD37B2E2F689ED1A3B0 test 13)mkdir -p ./symbols/test/B5DE7DCDABA411FD37B2E2F689ED1A3B0 14)mv test.sym ./symbols/test/B5DE7DCDABA411FD37B2E2F689ED1A3B0 15)cd breakpad/src/processor/ 16)./minidump_stackwalk ~/0142c3f9-850d-4476-2cf942ba-8bc7823f.dmp ~/symbols/