omec-project / openmme

OpenMME is a grounds up implementation of the Mobility Management Entity EPC S1 front end to the Cell Tower (eNB). Its design is performance optimized for high speed mobility events over the S1-MME interface, while maintaining state coherent high transaction rate interactions over the S6a interface to the HSS and the S11 interface to the Serving Gateway Control (SGWC). The design allows maximum utilization of the transaction rate allowed by the S1-MME Non-Access Stratum (NAS) messages over SCTP, S6a DIAMETER Attribute Value Pairs (AVPs) over TCP and S11 GTPV2C messages over UDP protocols.
http://www.omecproject.org
Apache License 2.0
49 stars 29 forks source link

S1ap-app fails on new connection #108

Closed unlenen closed 7 months ago

unlenen commented 4 years ago

Hi I try to attach an enodeb to omec epc . When s1InitialContext message received to epc then s1ap-app fails . Here is log below.

S1ap-app : kubectl logs -f -n omec mme-0 s1ap-app

ERROR LOG----------------------------------------------------------------------------------------- INFO-main.c:266:New Connection Established .INFO-main.c:273:Adding to list of sockets at 0 value 31 INFO-main.c:302:SCTP Received msg len : 43 INFO-handlers/s1ap_msg_delegator.c:942:Inside handle_s1ap_message. INFO-handlers/s1ap_msg_delegator.c:1014:proc code 17 INFO-handlers/s1setup.c:241:s1setup 59 DEBUG-handlers/s1setup.c:249:macro eNB id size 3 INFO-handlers/s1setup.c:241:s1setup 60 DEBUG-handlers/s1setup.c:277:S1 Setup Message with eNB name 5G INFO-handlers/s1setup.c:241:s1setup 64 INFO-handlers/s1setup.c:293:S1setup Supported Tac 0 1 size 2 ..Final tac 1 INFO-handlers/s1setup.c:295:S1setup Supported PLMNS 1 INFO-handlers/s1setup.c:301:S1setup Supported PLMN �e Plmn buffer size 3 buffer overflow detected : ./bin/s1ap-app terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f020d7807e5] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f020d82215c] /lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7f020d820160] /lib/x86_64-linux-gnu/libc.so.6(+0x1166c9)[0x7f020d81f6c9] /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f020d7846b0] /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x7bd)[0x7f020d75692d] /lib/x86_64-linux-gnu/libc.so.6(vsprintf_chk+0x84)[0x7f020d81f754] /lib/x86_64-linux-gnu/libc.so.6(sprintf_chk+0x7d)[0x7f020d81f6ad] ./bin/s1ap-app[0x40b565] ./bin/s1ap-app[0x409baa] ./bin/s1ap-app[0x409feb] ./bin/s1ap-app[0x40f8bf] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f020ed066ba] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f020d81041d] ======= Memory map: ======== 00400000-004f6000 r-xp 00000000 fc:01 1041816 /openmme/target/bin/s1ap-app 006f5000-006f6000 r--p 000f5000 fc:01 1041816 /openmme/target/bin/s1ap-app 006f6000-0078e000 rw-p 000f6000 fc:01 1041816 /openmme/target/bin/s1ap-app 0078e000-00f96000 rw-p 00000000 00:00 0 0121c000-0124e000 rw-p 00000000 00:00 0 [heap] 7f01f0000000-7f01f0021000 rw-p 00000000 00:00 0 7f01f0021000-7f01f4000000 ---p 00000000 00:00 0 7f01f8000000-7f01f8021000 rw-p 00000000 00:00 0 7f01f8021000-7f01fc000000 ---p 00000000 00:00 0 7f01ffe4e000-7f01ffe4f000 ---p 00000000 00:00 0 7f01ffe4f000-7f020064f000 rw-p 00000000 00:00 0 7f020064f000-7f0200650000 ---p 00000000 00:00 0 7f0200650000-7f0200e50000 rw-p 00000000 00:00 0 7f0200e50000-7f0200e51000 ---p 00000000 00:00 0 7f0200e51000-7f0201651000 rw-p 00000000 00:00 0 7f0201651000-7f0201652000 ---p 00000000 00:00 0 7f0201652000-7f0201e52000 rw-p 00000000 00:00 0 7f0201e52000-7f0201e53000 ---p 00000000 00:00 0 7f0201e53000-7f0202653000 rw-p 00000000 00:00 0 7f0202653000-7f0202654000 ---p 00000000 00:00 0 7f0202654000-7f0202e54000 rw-p 00000000 00:00 0 7f0202e54000-7f0202e55000 ---p 00000000 00:00 0 7f0202e55000-7f0203655000 rw-p 00000000 00:00 0 7f0203655000-7f0203656000 ---p 00000000 00:00 0 7f0203656000-7f0203e56000 rw-p 00000000 00:00 0 7f0203e56000-7f0203e57000 ---p 00000000 00:00 0 7f0203e57000-7f0204657000 rw-p 00000000 00:00 0 7f0204657000-7f0204658000 ---p 00000000 00:00 0 7f0204658000-7f0204e58000 rw-p 00000000 00:00 0 7f0204e58000-7f0204e59000 ---p 00000000 00:00 0 7f0204e59000-7f0205659000 rw-p 00000000 00:00 0 7f0205659000-7f020565a000 ---p 00000000 00:00 0 7f020565a000-7f0205e5a000 rw-p 00000000 00:00 0 7f0205e5a000-7f0205e5b000 ---p 00000000 00:00 0 7f0205e5b000-7f020665b000 rw-p 00000000 00:00 0 7f020665b000-7f020665c000 ---p 00000000 00:00 0 7f020665c000-7f0206e5c000 rw-p 00000000 00:00 0 7f0206e5c000-7f0206e5d000 ---p 00000000 00:00 0 7f0206e5d000-7f020765d000 rw-p 00000000 00:00 0 7f020765d000-7f020765e000 ---p 00000000 00:00 0 7f020765e000-7f0207e5e000 rw-p 00000000 00:00 0 7f0207e5e000-7f0207e5f000 ---p 00000000 00:00 0 7f0207e5f000-7f020865f000 rw-p 00000000 00:00 0 7f020865f000-7f0208660000 ---p 00000000 00:00 0 7f0208660000-7f0208e60000 rw-p 00000000 00:00 0 7f0208e60000-7f0208e61000 ---p 00000000 00:00 0 7f0208e61000-7f0209661000 rw-p 00000000 00:00 0 7f0209661000-7f0209662000 ---p 00000000 00:00 0 7f0209662000-7f0209e62000 rw-p 00000000 00:00 0 7f0209e62000-7f0209e63000 ---p 00000000 00:00 0 7f0209e63000-7f020a663000 rw-p 00000000 00:00 0 7f020a663000-7f020a664000 ---p 00000000 00:00 0 7f020a664000-7f020ae64000 rw-p 00000000 00:00 0 7f020ae64000-7f020ae65000 ---p 00000000 00:00 0 7f020ae65000-7f020b665000 rw-p 00000000 00:00 0 7f020b665000-7f020b666000 ---p 00000000 00:00 0 7f020b666000-7f020be66000 rw-p 00000000 00:00 0 7f020be66000-7f020be67000 ---p 00000000 00:00 0 7f020be67000-7f020c667000 rw-p 00000000 00:00 0 7f020c667000-7f020c668000 ---p 00000000 00:00 0 7f020c668000-7f020ce68000 rw-p 00000000 00:00 0

Program name set to ./bin/s1ap-app 7f020ce68000-7f020cf70000 r-xp 00000000 fc:01 1035965 /lib/x86_64-linux-gnu/libm-2.23.so 7f020cf70000-7f020d16f000 ---p 00108000 fc:01 1035965 /lib/x86_64-linux-gnu/libm-2.23.so 7f020d16f000-7f020d170000 r--p 00107000 fc:01 1035965 /lib/x86_64-linux-gnu/libm-2.23.so 7f020d170000-7f020d171000 rw-p 00108000 fc:01 1035965 /lib/x86_64-linux-gnu/libm-2.23.so 7f020d171000-7f020d187000 r-xp 00000000 fc:01 1035954 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f020d187000-7f020d386000 ---p 00016000 fc:01 1035954 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f020d386000-7f020d387000 rw-p 00015000 fc:01 1035954 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f020d387000-7f020d4f9000 r-xp 00000000 fc:01 1036836 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f020d4f9000-7f020d6f9000 ---p 00172000 fc:01 1036836 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f020d6f9000-7f020d703000 r--p 00172000 fc:01 1036836 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f020d703000-7f020d705000 rw-p 0017c000 fc:01 1036836 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f020d705000-7f020d709000 rw-p 00000000 00:00 0 7f020d709000-7f020d8c9000 r-xp 00000000 fc:01 1035933 /lib/x86_64-linux-gnu/libc-2.23.so 7f020d8c9000-7f020dac9000 ---p 001c0000 fc:01 1035933 /lib/x86_64-linux-gnu/libc-2.23.so 7f020dac9000-7f020dacd000 r--p 001c0000 fc:01 1035933 /lib/x86_64-linux-gnu/libc-2.23.so 7f020dacd000-7f020dacf000 rw-p 001c4000 fc:01 1035933 /lib/x86_64-linux-gnu/libc-2.23.so 7f020dacf000-7f020dad3000 rw-p 00000000 00:00 0 7f020dad3000-7f020dad6000 r-xp 00000000 fc:01 1041834 /openmme/target/lib/libsecutil.so 7f020dad6000-7f020dcd5000 ---p 00003000 fc:01 1041834 /openmme/target/lib/libsecutil.so 7f020dcd5000-7f020dcd6000 r--p 00002000 fc:01 1041834 /openmme/target/lib/libsecutil.so 7f020dcd6000-7f020dcd7000 rw-p 00003000 fc:01 1041834 /openmme/target/lib/libsecutil.so 7f020dcd7000-7f020dcda000 r-xp 00000000 fc:01 1041832 /openmme/target/lib/libmonitor_config.so 7f020dcda000-7f020ded9000 ---p 00003000 fc:01 1041832 /openmme/target/lib/libmonitor_config.so 7f020ded9000-7f020deda000 r--p 00002000 fc:01 1041832 /openmme/target/lib/libmonitor_config.so 7f020deda000-7f020dedb000 rw-p 00003000 fc:01 1041832 /openmme/target/lib/libmonitor_config.so 7f020dedb000-7f020dedd000 rw-p 00000000 00:00 0 7f020dedd000-7f020dedf000 r-xp 00000000 fc:01 1041830 /openmme/target/lib/libjson.so 7f020dedf000-7f020e0de000 ---p 00002000 fc:01 1041830 /openmme/target/lib/libjson.so 7f020e0de000-7f020e0df000 r--p 00001000 fc:01 1041830 /openmme/target/lib/libjson.so 7f020e0df000-7f020e0e0000 rw-p 00002000 fc:01 1041830 /openmme/target/lib/libjson.so 7f020e0e0000-7f020e0e4000 r-xp 00000000 fc:01 1041826 /openmme/target/lib/libcmnUtils.so 7f020e0e4000-7f020e2e3000 ---p 00004000 fc:01 1041826 /openmme/target/lib/libcmnUtils.so 7f020e2e3000-7f020e2e4000 r--p 00003000 fc:01 1041826 /openmme/target/lib/libcmnUtils.so 7f020e2e4000-7f020e2e5000 rw-p 00004000 fc:01 1041826 /openmme/target/lib/libcmnUtils.so 7f020e2e5000-7f020e2e7000 r-xp 00000000 fc:01 1041827 /openmme/target/lib/libdatagroupmgr.so 7f020e2e7000-7f020e4e6000 ---p 00002000 fc:01 1041827 /openmme/target/lib/libdatagroupmgr.so 7f020e4e6000-7f020e4e7000 r--p 00001000 fc:01 1041827 /openmme/target/lib/libdatagroupmgr.so 7f020e4e7000-7f020e4e8000 rw-p 00002000 fc:01 1041827 /openmme/target/lib/libdatagroupmgr.so 7f020e4e8000-7f020e4f1000 r-xp 00000000 fc:01 1041835 /openmme/target/lib/libstatemachinefwk.so 7f020e4f1000-7f020e6f0000 ---p 00009000 fc:01 1041835 /openmme/target/lib/libstatemachinefwk.so 7f020e6f0000-7f020e6f1000 r--p 00008000 fc:01 1041835 /openmme/target/lib/libstatemachinefwk.so 7f020e6f1000-7f020e6f2000 rw-p 00009000 fc:01 1041835 /openmme/target/lib/libstatemachinefwk.so 7f020e6f2000-7f020e6f7000 r-xp 00000000 fc:01 1041833 /openmme/target/lib/libs1apctxmgr.so 7f020e6f7000-7f020e8f7000 ---p 00005000 fc:01 1041833 /openmme/target/lib/libs1apctxmgr.so 7f020e8f7000-7f020e8f8000 r--p 00005000 fc:01 1041833 /openmme/target/lib/libs1apctxmgr.so 7f020e8f8000-7f020e8f9000 rw-p 00006000 fc:01 1041833 /openmme/target/lib/libs1apctxmgr.so 7f020e8f9000-7f020e8fa000 r-xp 00000000 fc:01 1041829 /openmme/target/lib/libinterface.so 7f020e8fa000-7f020eafa000 ---p 00001000 fc:01 1041829 /openmme/target/lib/libinterface.so 7f020eafa000-7f020eafb000 r--p 00001000 fc:01 1041829 /openmme/target/lib/libinterface.so 7f020eafb000-7f020eafc000 rw-p 00002000 fc:01 1041829 /openmme/target/lib/libinterface.so 7f020eafc000-7f020eafe000 r-xp 00000000 fc:01 1040958 /usr/lib/x86_64-linux-gnu/libsctp.so.1.0.16 7f020eafe000-7f020ecfd000 ---p 00002000 fc:01 1040958 /usr/lib/x86_64-linux-gnu/libsctp.so.1.0.16 7f020ecfd000-7f020ecfe000 r--p 00001000 fc:01 1040958 /usr/lib/x86_64-linux-gnu/libsctp.so.1.0.16 7f020ecfe000-7f020ecff000 rw-p 00002000 fc:01 1040958 /usr/lib/x86_64-linux-gnu/libsctp.so.1.0.16 7f020ecff000-7f020ed17000 r-xp 00000000 fc:01 1036001 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f020ed17000-7f020ef16000 ---p 00018000 fc:01 1036001 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f020ef16000-7f020ef17000 r--p 00017000 fc:01 1036001 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f020ef17000-7f020ef18000 rw-p 00018000 fc:01 1036001 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f020ef18000-7f020ef1c000 rw-p 00000000 00:00 0 7f020ef1c000-7f020ef42000 r-xp 00000000 fc:01 1035913 /lib/x86_64-linux-gnu/ld-2.23.so 7f020f134000-7f020f13e000 rw-p 00000000 00:00 0 7f020f140000-7f020f141000 rw-p 00000000 00:00 0 7f020f141000-7f020f142000 r--p 00025000 fc:01 1035913 /lib/x86_64-linux-gnu/ld-2.23.so 7f020f142000-7f020f143000 rw-p 00026000 fc:01 1035913 /lib/x86_64-linux-gnu/ld-2.23.so 7f020f143000-7f020f144000 rw-p 00000000 00:00 0 7ffd5ed01000-7ffd5ed22000 rw-p 00000000 00:00 0 [stack] 7ffd5edb5000-7ffd5edb8000 r--p 00000000 00:00 0 [vvar] 7ffd5edb8000-7ffd5edba000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Caught SIGABRT: usually caused by an abort() or assert() sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found sh: 1: addr2line: not found error determining line # for: ./lib/libmonitor_config.so(posix_print_stack_trace+0x1b) [0x7f020dcd889b] error determining line # for: ./lib/libmonitor_config.so(posix_signal_handler+0x47) [0x7f020dcd8977] error determining line # for: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f020ed10390] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f020d73e428] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f020d74002a] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(+0x777ea) [0x7f020d7807ea] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c) [0x7f020d82215c] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(+0x117160) [0x7f020d820160] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(+0x1166c9) [0x7f020d81f6c9] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80) [0x7f020d7846b0] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x7bd) [0x7f020d75692d] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(vsprintf_chk+0x84) [0x7f020d81f754] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(sprintf_chk+0x7d) [0x7f020d81f6ad] error determining line # for: ./bin/s1ap-app() [0x40b565] error determining line # for: ./bin/s1ap-app() [0x409baa] error determining line # for: ./bin/s1ap-app() [0x409feb] error determining line # for: ./bin/s1ap-app() [0x40f8bf] error determining line # for: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f020ed066ba] error determining line # for: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f020d81041d]


Configuration { "mme": { "code": 1, "group_id": 1, "logging": "error", "mcc": { "dig1": 9, "dig2": 0, "dig3": 1 }, "mnc": { "dig1": 5, "dig2": 6, "dig3": -1 }, "name": "argela_ank_epc", "plmnlist": { "plmn1": "mcc=901,mnc=56", "plmn2": "mcc=286,mnc=13" } }, "s11": { "egtp_default_port": 2123 }, "s1ap": { "sctp_port": 36412, "sctp_port_external": 36412 }, "s6a": { "host": "hss.omec.svc.cluster.local", "host_type": "freediameter", "realm": "omec.svc.cluster.local" } }

thakurajayL commented 4 years ago

Can you please use Nucleus MME.
https://github.com/omec-project/Nucleus/ THis is new mme project.