Memory Leaks in NR UE
Minor leak in NR UE
-
nr_rrc_ue_decode_dcch # 1
=================================================================
==211336==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 127 byte(s) in 3 object(s) allocated from:
#0 0x7ffff74b4c38 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:164
#1 0x55555771ded0 in OCTET_STRING_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/OCTET_STRING_uper.c:161
#2 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#3 0x555557734023 in CHOICE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_CHOICE_uper.c:84
#4 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#5 0x555557734023 in CHOICE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_CHOICE_uper.c:84
#6 0x555557734023 in CHOICE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_CHOICE_uper.c:84
#7 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#8 0x555557725211 in uper_decode /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/uper_decoder.c:83
#9 0x555556f83ada in nr_rrc_ue_decode_dcch /repo/openairinterface5g/develop/openair2/RRC/NR_UE/rrc_UE.c:1606
#10 0x555556f98b3e in rrc_nrue /repo/openairinterface5g/develop/openair2/RRC/NR_UE/rrc_UE.c:1790
#11 0x555556fa438e in rrc_nrue_task /repo/openairinterface5g/develop/openair2/RRC/NR_UE/rrc_UE.c:1710
#12 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
-
nr_rrc_ue_decode_dcch # 2
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7ffff74b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x55555771db2f in OCTET_STRING_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/OCTET_STRING_uper.c:89
#2 0x555557786c96 in SET_OF_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/NR/MESSAGES/constr_SET_OF_uper.c:70
#3 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#4 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#5 0x555557734023 in CHOICE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_CHOICE_uper.c:84
#6 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#7 0x555557734023 in CHOICE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_CHOICE_uper.c:84
#8 0x555557734023 in CHOICE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_CHOICE_uper.c:84
#9 0x555557715a8c in SEQUENCE_decode_uper /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/constr_SEQUENCE_uper.c:118
#10 0x555557725211 in uper_decode /repo/openairinterface5g/develop/cmake_targets/ran_build/build/openair2/RRC/LTE/MESSAGES/uper_decoder.c:83
#11 0x555556f83ada in nr_rrc_ue_decode_dcch /repo/openairinterface5g/develop/openair2/RRC/NR_UE/rrc_UE.c:1606
#12 0x555556f98b3e in rrc_nrue /repo/openairinterface5g/develop/openair2/RRC/NR_UE/rrc_UE.c:1790
#13 0x555556fa438e in rrc_nrue_task /repo/openairinterface5g/develop/openair2/RRC/NR_UE/rrc_UE.c:1710
#14 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
-
generateAuthenticationResp # 3
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7ffff74b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x55555818ef78 in generateAuthenticationResp /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:588
#2 0x5555581b101e in nas_nrue /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1403
#3 0x5555581a30c5 in nas_nrue_task /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1213
#4 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
-
generateRegistrationComplete # 4
Direct leak of 10 byte(s) in 1 object(s) allocated from:
#0 0x7ffff74b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x55555819475a in generateRegistrationComplete /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:792
#2 0x5555581a3dc3 in handle_registration_accept /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1224
#3 0x5555581b1088 in nas_nrue /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1412
#4 0x5555581a30c5 in nas_nrue_task /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1213
#5 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
-
generatePduSessionEstablishRequest # 5
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x7ffff74b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x55555819ab89 in generatePduSessionEstablishRequest /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:936
#2 0x5555581a8aec in nas_nrue /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1293
#3 0x5555581a30c5 in nas_nrue_task /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1213
#4 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
-
generatePduSessionEstablishRequest # 6
Direct leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x7ffff74b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x55555819c072 in generatePduSessionEstablishRequest /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:991
#2 0x5555581a8aec in nas_nrue /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1293
#3 0x5555581a30c5 in nas_nrue_task /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1213
#4 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
-
generatePduSessionEstablishRequest # 7
Direct leak of 1 byte(s) in 1 object(s) allocated from:
#0 0x7ffff74b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x55555819b944 in generatePduSessionEstablishRequest /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:985
#2 0x5555581a8aec in nas_nrue /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1293
#3 0x5555581a30c5 in nas_nrue_task /home/guido/repo/openairinterface5g/fix-ue-memory-leaks/openair3/NAS/NR_UE/nr_nas_msg_sim.c:1213
#4 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
Edited by Guido Casati