gnb crash with redhat 8
When connecting several UEs, or disconnecting/reconnecting one UE, we observe a crash of the gnb.
For example, in rfsim, connect the ue, then disconnect it after it gets the IP address (ctrl+c). Then run it again. You will have this for the gnb:
[NR_RRC] Receive RRC Reconfiguration Complete message UE 816e
[PDCP] nr_pdcp_add_srbs() with void list
[PDCP] nr_pdcp_add_drbs() with void list
[NGAP] PDUSESSIONSetup initiating message
[NR_RRC] [gNB 0] gNB_ue_ngap_id 0
[NR_RRC] Adding pdusession 0, total nb of sessions 1
00:00:04:00:82:00:0a:0c:3b:9a:ca:00:30:3b:9a:ca:00:00:8b:00:0a:01:f0:ac:15:06:0a:00:00:01:07:00:86:00:01:00:00:88:00:07:00:01:00:00:09:38:40:
Thread 9 "TASK_RRC_GNB" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe37fe700 (LWP 1344461)]
0x0000000000e8aad9 in asn_set_add (asn_set_of_x=0x7fff0000000a,
ptr=0x7fffd4015610) at openair2/RRC/LTE/MESSAGES/asn_SET_OF.c:24
24 if(as->count == as->size) {
Missing separate debuginfos, use: yum debuginfo-install atlas-3.10.3-8.el8.x86_64 blas-3.8.0-8.el8.x86_64 glibc-2.28-211.el8.x86_64 lapack-3.8.0-8.el8.x86_64 libconfig-1.5-9.el8.x86_64 libgcc-8.5.0-10.1.el8_6.x86_64 libgfortran-8.5.0-10.1.el8_6.x86_64 libquadmath-8.5.0-10.1.el8_6.x86_64 libstdc++-8.5.0-10.1.el8_6.x86_64 libxcrypt-4.1.1-6.el8.x86_64 lksctp-tools-1.0.18-3.el8.x86_64 openssl-libs-1.1.1k-7.el8_6.x86_64 zlib-1.2.11-18.el8_5.x86_64
(gdb) bt
#0 0x0000000000e8aad9 in asn_set_add (asn_set_of_x=0x7fff0000000a,
ptr=0x7fffd4015610) at openair2/RRC/LTE/MESSAGES/asn_SET_OF.c:24
#1 0x0000000000ec54de in SET_OF_decode_aper (opt_codec_ctx=0x7fffe37f4258,
td=0x2b9acc0 <asn_DEF_NGAP_ProtocolIE_Container_6810P79>, constraints=0x0,
sptr=0x7fffe37f4078, pd=0x7fffe37f4210)
at openair2/RRC/LTE/MESSAGES/constr_SET_OF.c:1166
#2 0x0000000000e9003a in SEQUENCE_decode_aper (opt_codec_ctx=0x7fffe37f4258,
td=0x2b55380 <asn_DEF_NGAP_PDUSessionResourceSetupRequestTransfer>,
constraints=0x0, sptr=0x7fffe37f46d8, pd=0x7fffe37f4210)
at openair2/RRC/LTE/MESSAGES/constr_SEQUENCE.c:1604
#3 0x0000000000eb42ff in aper_decode (opt_codec_ctx=0x7fffe37f4258,
td=0x2b55380 <asn_DEF_NGAP_PDUSessionResourceSetupRequestTransfer>,
sptr=0x7fffe37f46d8, buffer=0x7fffe400c8e0, size=47, skip_bits=0,
unused_bits=0) at openair2/RRC/LTE/MESSAGES/per_decoder.c:171
#4 0x0000000000b15ed1 in decodePDUSessionResourceSetup (
session=0x7fffd4020f20) at ../../../openair2/RRC/NR/rrc_gNB_NGAP.c:285
#5 0x0000000000b1a31e in rrc_gNB_process_NGAP_PDUSESSION_SETUP_REQ (
msg_p=0x7fffe401ebb0, instance=0)
at ../../../openair2/RRC/NR/rrc_gNB_NGAP.c:762
#6 0x0000000000aedf4e in rrc_gnb_task (args_p=0x0)
at ../../../openair2/RRC/NR/rrc_gNB.c:2832
#7 0x00007ffff779b1ca in start_thread () from /lib64/libpthread.so.0
#8 0x00007ffff3f9ae73 in clone () from /lib64/libc.so.6
I will work on it soon.