open5gs/src/mme
Sukchan Lee e8a3b76af3 [SMF] Crash SMF when no GTP-C config (#3094)
When GTP-C secition of smf.yaml is deleted as follows to run smf as 5G,
it crashed.

```diff
--- smf.yaml.orig       2024-03-26 14:13:12.000000000 +0900
+++ smf.yaml    2024-03-26 14:29:40.701508424 +0900
@@ -23,9 +23,6 @@
     client:
       upf:
         - address: 127.0.0.7
-  gtpc:
-    server:
-      - address: 127.0.0.4
   gtpu:
     server:
       - address: 127.0.0.4
@@ -47,7 +44,7 @@
 #    - ::1
 #  ctf:
 #    enabled: auto   # auto(default)|yes|no
-  freeDiameter: /root/open5gs/install/etc/freeDiameter/smf.conf
+#  freeDiameter: /root/open5gs/install/etc/freeDiameter/smf.conf

 ################################################################################
 # SMF Info
Open5GS daemon v2.7.0-119-g581d255

03/26 14:39:42.844: [app] INFO: Configuration: 'install/etc/open5gs/smf.yaml' (../lib/app/ogs-init.c:130)
03/26 14:39:42.845: [app] INFO: File Logging: '/root/open5gs/install/var/log/open5gs/smf.log' (../lib/app/ogs-init.c:133)
03/26 14:39:42.913: [metrics] INFO: metrics_server() [http://127.0.0.4]:9090 (../lib/metrics/prometheus/context.c:299)
03/26 14:39:42.913: [smf] WARNING: No diameter configuration (../src/smf/fd-path.c:30)
03/26 14:39:42.913: [smf] FATAL: smf_gtp_open: Assertion `ogs_gtp_self()->gtpc_sock || ogs_gtp_self()->gtpc_sock6' failed. (../src/smf/gtp-path.c:253)
03/26 14:39:42.913: [core] FATAL: backtrace() returned 8 addresses (../lib/core/ogs-abort.c:37)
./install/bin/open5gs-smfd(+0x391ab) [0x55d28319b1ab]
./install/bin/open5gs-smfd(+0x10046) [0x55d283172046]
./install/bin/open5gs-smfd(+0xf3de) [0x55d2831713de]
./install/bin/open5gs-smfd(+0xfcf9) [0x55d283171cf9]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f0a145f9d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f0a145f9e40]
./install/bin/open5gs-smfd(+0xf305) [0x55d283171305]
Aborted (core dumped)
```

So, Fixed to run SMF with GTP-C disabled for 5G.
2024-03-31 20:25:25 +09:00
..
app-init.c A minor typo fix (#2707) 2023-10-28 22:11:58 +09:00
emm-build.c [MME] Gn: Introduce initial support for 2G->4G cell reselection 2024-01-17 23:05:19 +09:00
emm-build.h [MME] Follow-up Cancel Location Handling (#1698) 2022-08-19 16:52:39 +09:00
emm-handler.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
emm-handler.h [MME] Gn: Introduce initial support for 2G->4G cell reselection 2024-01-17 23:05:19 +09:00
emm-sm.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
esm-build.c [MME/SMF] Added Extended-PCO in 4G/LTE (#2261) 2023-04-22 00:06:50 +09:00
esm-build.h Distinguish the type of session creation 2022-04-14 17:34:55 +09:00
esm-handler.c [MME] incorrect behavior of the SGsAP 2024-03-24 20:31:56 +09:00
esm-handler.h [ALL] Fix differences in function parameter names between definition and declaration 2022-07-01 21:38:47 +09:00
esm-sm.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
meson.build mme: Introduce initial Gn iface (GTPv1C) support 2023-07-15 23:44:57 +09:00
metrics.c [AMF metrics] Initial histogram support 2023-03-24 23:03:49 +09:00
metrics.h [METRICS] Re-order init/final (#1985, #2001) 2023-01-20 21:16:45 +09:00
mme-context.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
mme-context.h [MME] Added log messages to find memory problem 2024-02-27 21:16:50 +09:00
mme-event.c [MME] Gn: Introduce initial support for 4G->2G cell reselection 2023-12-23 09:56:55 +09:00
mme-event.h [MME] Gn: Introduce initial support for 4G->2G cell reselection 2023-12-23 09:56:55 +09:00
mme-fd-path.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
mme-fd-path.h [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
mme-gn-build.c [mme] cosmetic: Document spec references stating NSAPI=EBI 2024-03-08 06:46:31 +09:00
mme-gn-build.h [MME] Gn: Introduce initial support for 2G->4G cell reselection 2024-01-17 23:05:19 +09:00
mme-gn-handler.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
mme-gn-handler.h [MME] Gn: Introduce initial support for 2G->4G cell reselection 2024-01-17 23:05:19 +09:00
mme-gtp-path.c [SMF] Crash SMF when no GTP-C config (#3094) 2024-03-31 20:25:25 +09:00
mme-gtp-path.h [MME] Gn: Introduce initial support for 2G->4G cell reselection 2024-01-17 23:05:19 +09:00
mme-init.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
mme-path.c Rollback Pull Request (#1911) 2024-02-03 16:18:26 +09:00
mme-path.h no Purge Timer, no config, expanded code 2023-01-24 12:35:47 -06:00
mme-s6a-handler.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
mme-s6a-handler.h [MME] Add Purge-UE Capability (#1991) 2023-01-14 09:13:48 +09:00
mme-s11-build.c [MME] Added log messages to find memory problem 2024-02-27 21:16:50 +09:00
mme-s11-build.h [ALL] Fix differences in function parameter names between definition and declaration 2022-07-01 21:38:47 +09:00
mme-s11-handler.c Revert "[GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043)" 2024-03-26 08:04:26 +09:00
mme-s11-handler.h [ALL] Fix differences in function parameter names between definition and declaration 2022-07-01 21:38:47 +09:00
mme-sm.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
mme-sm.h [CSFB] Create a state machine 2019-06-16 15:40:26 +09:00
mme-timer.c [MME] Gn: Introduce initial support for 4G->2G cell reselection 2023-12-23 09:56:55 +09:00
mme-timer.h [MME] Gn: Introduce initial support for 4G->2G cell reselection 2023-12-23 09:56:55 +09:00
nas-path.c [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
nas-path.h [MME] Race condition between S1AP and S6A 2024-03-16 23:08:07 +09:00
nas-security.c Shall cipher in the NAS message container IE 2022-01-05 22:39:06 +09:00
nas-security.h Add AUSF, UDM, and UDR 2020-06-04 14:12:05 -04:00
s1ap-build.c [MME] Fixes crash in building s1ap message 2024-02-02 21:17:41 +09:00
s1ap-build.h [MME] Implement ENBConfigurationUpdate (#2589) 2023-09-16 20:58:58 +09:00
s1ap-handler.c [MME] Added log messages to find memory problem 2024-02-27 21:16:50 +09:00
s1ap-handler.h [MME] Implement ENBConfigurationUpdate (#2589) 2023-09-16 20:58:58 +09:00
s1ap-path.c [MME/AMF] Fixed crash following Handover Request (#3014) 2024-02-29 23:02:38 +09:00
s1ap-path.h [MME] Implement ENBConfigurationUpdate (#2589) 2023-09-16 20:58:58 +09:00
s1ap-sctp.c [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
s1ap-sm.c [MME] Implement ENBConfigurationUpdate (#2589) 2023-09-16 20:58:58 +09:00
sbc-handler.c [AMF/MME] Fixed crash when no NG/S1 context(#2012) 2023-01-23 10:37:22 +09:00
sbc-handler.h [CSFB] Fix the MacOSX 2019-07-08 21:03:39 +09:00
sbc-message.h NGSetup is added 2020-05-25 12:15:22 -04:00
sgsap-build.c [MME] SGaAP-MO-CSFB-INDICATION w/ TAI/ECGI (#2664) 2023-10-11 20:37:12 +09:00
sgsap-build.h Refact paging module (#1676) 2022-07-30 14:44:34 +09:00
sgsap-conv.c Re-factoring the all library 2019-09-13 21:07:47 +09:00
sgsap-conv.h Move src/../nf-sm.[ch] to lib/sbi/nf-sm.[ch] 2022-08-12 14:03:53 +09:00
sgsap-handler.c [MME] incorrect behavior of the SGsAP 2024-03-24 20:31:56 +09:00
sgsap-handler.h [SGsAP] add MM-INFORMATION-REQUEST(Discard by Option2) 2019-07-21 22:52:28 +09:00
sgsap-path.c Fixed MacOSX compile error 2023-04-04 21:53:39 +09:00
sgsap-path.h [SGsAP] Changed message if Paging failed (#1701) 2022-08-19 18:58:55 +09:00
sgsap-sctp.c [ASN1C] Fixed asn1c library on 32bit (#2934) 2024-02-12 14:00:06 +09:00
sgsap-sm.c [LOG] remove ogs_expect_or_return()/return_val() 2023-01-24 00:01:36 +09:00
sgsap-types.h [MME] SGaAP-MO-CSFB-INDICATION w/ TAI/ECGI (#2664) 2023-10-11 20:37:12 +09:00