StarlingX Fault Management
47209218ac
As C++ references cannot be NULL, new compilers optimizes the code assuming this condition. Therefore, in new compilers, from GCC 6 to 8 the fn_snmp_util_gen_trap will segfault trying to deference data.entity_instance_id as the if (&data != NULL) will be always optimized to be true. Turns out that the case where SFmAlarmDataT is expected to be NULL (or empty) is when the alarm type is WARM_START. So changing the if statement to look for WARM_START instead of checking the null reference seems to be a feasible solution. Story: 2003498 Task: 24775 Change-Id: Ica07ec8d7ad009e1048f014b0a6440c76de09eef Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com> |
||
---|---|---|
fm-api | ||
fm-common | ||
fm-doc | ||
fm-mgr | ||
fm-rest-api | ||
python-fmclient | ||
snmp-audittrail | ||
snmp-ext | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
centos_pkg_dirs | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
mwa-cleo.map | ||
README.rst | ||
test-requirements.txt | ||
tox.ini |
stx-fault
StarlingX Fault Management