sel-logger package issue

Will Liang (梁永鉉) Will.Liang at quantatw.com
Tue Nov 5 23:02:27 AEDT 2019


Hi,

I found that the sel-logger service crashed when the "Value out of range"[1] exception occurred.

[1]https://github.com/openbmc/phosphor-sel-logger/blob/6afe9560852c6431c43c8e79a28e2b7cb498e355/include/sensorutils.hpp#L166

It is because the try-catch[2] does not catch the exception type(std::out_of_range).
Therefore, you can change the catch type to "std::exception" to catch all the exception or only catch the "std::out_of_range" type.

[2]https://github.com/openbmc/phosphor-sel-logger/blob/6afe9560852c6431c43c8e79a28e2b7cb498e355/include/threshold_event_monitor.hpp#L162


BRs,
Will


More information about the openbmc mailing list