Project

General

Profile

Actions

Bug #4556

closed

All osmo-iuh fail with asan enabled and gcc 10.1.0

Added by pespin almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/18/2020
Due date:
% Done:

100%

Spec Reference:

Description

+=================================================================
+==99092==ERROR: AddressSanitizer: odr-violation (0x560b019fdfe0):
+  [1] size=4 'asn1_xer_print' /osmo-iuh/src/tests/test-helpers.c:35:5
+  [2] size=4 'asn1_xer_print' /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)
+    #2 0x560b019f7fcc in __libc_csu_init (/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)
+    #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
+==99092==ABORTING

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

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)