Fix the SEGV exception

xyz.openbmc_project.Dump.Manager.service: Main process exited, code=dumped, status=11/SEGV
xyz.openbmc_project.Dump.Manager.service: Failed with result 'core-dump'.

During the process of deleting all dump entries,
the operation on the iterator may lead to segv fault
because the content that the iterator is pointing to has been freed.

We can move the iterator to the next before deleting the entry.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Change-Id: I973e3d3f4df9dc52ee40423553c395e32d3b8d31
1 file changed
tree: 9ea2f753018a35af83f90aa5b0cc291c0367daf7
  1. tools/
  2. xyz/
  3. .clang-format
  4. .gitignore
  5. bootstrap.sh
  6. configure.ac
  7. core_manager.cpp
  8. core_manager.hpp
  9. core_manager_main.cpp
  10. dump_entry.cpp
  11. dump_entry.hpp
  12. dump_internal.hpp
  13. dump_manager.cpp
  14. dump_manager.hpp
  15. dump_manager_main.cpp
  16. dump_serialize.cpp
  17. dump_serialize.hpp
  18. dump_utils.hpp
  19. elog_watch.cpp
  20. elog_watch.hpp
  21. errors_map.mako.hpp
  22. errors_map_gen.py
  23. example_errors_watch.yaml
  24. ffdc
  25. LICENSE
  26. MAINTAINERS
  27. Makefile.am
  28. README.md
  29. watch.cpp
  30. watch.hpp
README.md

phosphor-debug-collector

Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.