-
Robert Schmidt authored
address sanitizer fails with this error upon starting the DU: ==7==ERROR: AddressSanitizer: odr-violation (0x7f8ed2594a00): [1] size=4 'log_mem_write_side' /oai-ran/common/utils/LOG/log.c:78:14 [2] size=4 'log_mem_write_side' /oai-ran/common/utils/LOG/log.c:78:14 These globals were registered at these points: [1]: #0 0x7f8ed5092658 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341 #1 0x7f8ed570d47d in call_init elf/dl-init.c:70 [2]: #0 0x7f8ed5092658 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341 #1 0x7f8ed3fe3eba in call_init ../csu/libc-start.c:145 #2 0x7f8ed3fe3eba in __libc_start_main_impl ../csu/libc-start.c:379 ==7==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 SUMMARY: AddressSanitizer: odr-violation: global 'log_mem_write_side' at /oai-ran/common/utils/LOG/log.c:78:14 So we do as suggested and disable ODR violations to make the test pass. A proper solution would be to link this function only once.
fcc5be01