Project

General

Profile

Bug #4556

Updated by pespin about 4 years ago

<pre> 
 +================================================================= 
 +==99092==ERROR: AddressSanitizer: odr-violation (0x560b019fdfe0): 
 +    [1] size=4 'asn1_xer_print' /osmo-iuh/src/tests/test-helpers.c:35:5 /home/pespin/dev/sysmocom/git/osmo-iuh/src/tests/test-helpers.c:35:5 
 +    [2] size=4 'asn1_xer_print' /osmo-iuh/src/iu_client.c:85:5 /home/pespin/dev/sysmocom/git/osmo-iuh/src/iu_client.c:85:5 
 +These globals were registered at these points: 
 +    [1]: 
 +      #0 0x7faf77adf69a in __asan_register_globals /build/gcc/src/gcc/libsanitizer/asan/asan_globals.cpp:341 
 +      #1 0x560b019f7c6e in _sub_I_00099_1 (/osmo-iuh/src/tests/test-helpers+0x5c6e) (/home/pespin/dev/sysmocom/build/new/tmpdir/osmo-iuh/src/tests/test-helpers+0x5c6e) 
 +      #2 0x560b019f7fcc in __libc_csu_init (/osmo-iuh/src/tests/test-helpers+0x5fcc) (/home/pespin/dev/sysmocom/build/new/tmpdir/osmo-iuh/src/tests/test-helpers+0x5fcc) 
 + 
 +    [2]: 
 +      #0 0x7faf77adf69a in __asan_register_globals /build/gcc/src/gcc/libsanitizer/asan/asan_globals.cpp:341 
 +      #1 0x7faf7742db91 in _sub_I_00099_1 (/osmo-iuh/src/.libs/libosmo-ranap.so.3+0x47db91) (/home/pespin/dev/sysmocom/build/new/tmpdir/osmo-iuh/src/.libs/libosmo-ranap.so.3+0x47db91) 
 +      #2 0x7faf784920f1 in call_init.part.0 (/lib64/ld-linux-x86-64.so.2+0x110f1) 
 + 
 +==99092==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 
 +SUMMARY: AddressSanitizer: odr-violation: global 'asn1_xer_print' at /osmo-iuh/src/tests/test-helpers.c:35:5 /home/pespin/dev/sysmocom/git/osmo-iuh/src/tests/test-helpers.c:35:5 
 +==99092==ABORTING 
 </pre> 

 Since I got newer gcc (9 -> 10), tests fail when building with ASan.

Back

Add picture from clipboard (Maximum size: 48.8 MB)