address sanitiser reporting one odr violation that leads to multiple test failures
https://jenkins.aws.isc.org/job/kea-dev/job/ut-asan/427/
used flags: CXXFLAGS = "-g3 -ggdb -O0 -fsanitize=address -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches"
20:57:49 Running command "/var/tmp/workspace/kea-dev/ut-asan/src/bin/dhcp4/kea-dhcp4 -c /var/tmp/workspace/kea-dev/ut-asan/src/bin/dhcp4/tests/test_config.json".
20:57:49 INFO/test_lib: wait_for_kea .=================================================================
20:57:49 ==160798==ERROR: AddressSanitizer: odr-violation (0x000000859e80):
20:57:49 [1] size=1064 'config_report' config_report.cc:6:26
20:57:49 [2] size=1064 'config_report' config_report.cc:6:26
20:57:49 These globals were registered at these points:
20:57:49 [1]:
20:57:49 #0 0x7f3c7c465e78 in __asan_register_globals.part.0 (/lib64/libasan.so.8+0x3be78)
20:57:49 #1 0x757baa in _sub_I_00099_1 (/var/tmp/workspace/kea-dev/ut-asan/src/bin/dhcp4/.libs/kea-dhcp4+0x757baa)
20:57:49 #2 0x7f3c784af63d in __libc_start_main_impl (/lib64/libc.so.6+0x2963d)
20:57:49
20:57:49 [2]:
20:57:49 #0 0x7f3c7c465e78 in __asan_register_globals.part.0 (/lib64/libasan.so.8+0x3be78)
20:57:49 #1 0x7f3c7ac1ed9c in _sub_I_00099_1 (/var/tmp/workspace/kea-dev/ut-asan/src/lib/process/.libs/libkea-process.so.52+0xead9c)
20:57:49 #2 0x7f3c7cadef7d in call_init /usr/src/debug/glibc-2.35-20.fc36.x86_64/elf/dl-init.c:70
20:57:49 #3 0x7f3c7cadef7d in call_init /usr/src/debug/glibc-2.35-20.fc36.x86_64/elf/dl-init.c:26
20:57:49
20:57:49 ==160798==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
20:57:49 SUMMARY: AddressSanitizer: odr-violation: global 'config_report' at config_report.cc:6:26
20:57:49 ==160798==ABORTING
20:57:49 ....................
Looks like config_report.cc generated from config.report by tools/mk_cfgrpt.sh
Full output https://jenkins.aws.isc.org/job/kea-dev/job/ut-asan/427/execution/node/56/log/?consoleFull search for odr-violation