commit | 0eadeb7e78ea549da1c40016c9dc43f52df8b70d | [log] [tgz] |
---|---|---|
author | Lei YU <yulei.sh@bytedance.com> | Fri Jul 23 15:47:42 2021 +0800 |
committer | Jayanth Othayoth <ojayanth@gmail.com> | Tue Aug 03 10:56:11 2021 +0000 |
tree | f326aee16ef629632a245d5986450c8208c34caa | |
parent | 796a92ee40170fb8936a9509d279fd650f6bbe02 [diff] |
core_manager: Handle dbus exceptions The code was using deprecated is_method_error() to check errors, but the sdbusplus now throws on DBus errors. When there is no space for new dump (by default 1M), it will get an exception and crashes like below: phosphor-dump-monitor[166]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError' phosphor-dump-monitor[166]: what(): sd_bus_call noreply: xyz.openbmc_project.Dump.Create.Error.QuotaExceeded: Dump not captured due to a cap. Add try-catch to handle the exceptions. Tested: Verify when there is no space for new dump there is no more dump-monitor crash and it just prints an error: phosphor-dump-monitor[174]: Failed to create dump Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: Ibd290587fd16c59be98ccff52887f598ee5b5c33
Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.
To build this package with meson, do the following steps:
1. meson builddir 2. ninja -C builddir
To clean the built files run ninja -C builddir clean
.
Tests can be run in the CI docker container, refer local-ci-build
or with an OpenBMC x86 sdk(see below for x86 steps).
meson -Dtests=enabled build ninja -C build test