Skip to content

[E2 Agent] Fix E2 Setup Request for ASan and SWIG fix for python xApps

Teodora Vladic requested to merge e2-setup into develop

Previously, there was a bug when running E2 agent with ASan:

[E2 AGENT]: Opening plugin from path37310738.929975 [UTIL] I Creating thread ru_thread with affinity -1 and priority 97
=================================================================
37310738.931214 [UTIL] I threadCreate for ru_thread, affinity ffffffff, priority 97
==7==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5590cd280198 at pc 0x5590c84c5f2a bp 0x7f4d6d076b40 sp 0x7f4d6d076b30
READ of size 8 at 0x5590cd280198 thread T12
#0 0x5590c84c5f29 in read_kpm_setup_sm ../../../openair2/E2AP/RAN_FUNCTION/O-RAN/ran_func_kpm.c:479
#1 0x7f4d6d15213a in UplinkId.h (/usr/local/lib/flexric/libkpm_sm.so+0x2b13a)
#2 0x5590c83dafa7 in gen_setup_request_v2 ../../../openair2/E2AP/flexric/src/agent/gen_msg_agent.c:92
#3 0x5590c83cdda2 in e2_start_agent ../../../openair2/E2AP/flexric/src/agent/e2_agent.c:487
#4 0x5590c83c95c3 in static_start_agent ../../../openair2/E2AP/flexric/src/agent/e2_agent_api.c:46
#5 0x7f4d773b7608 in start_thread /build/glibc-wuryBv/glibc-2.31/nptl/pthread_create.c:477
#6 0x7f4d762a6352 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x11f352)

Now it should be fixed

Edited by Teodora Vladic

Merge request reports