Skip to content

Segfault in msaf_context_server_name_set when open5gsIntegration = true #73

@swthorn

Description

@swthorn

Describe the bug
Segfault using default configurations with Open5GS, 5gmg-application-server, 5gms-application-function and having "open5gsIntegration" set to true.

To Reproduce
Steps to reproduce the behavior:

  1. Install Kubuntu 22.04.2
  2. Follow these steps to install Open5GS (latest main branch): https://open5gs.org/open5gs/docs/guide/02-building-open5gs-from-sources/ (Use 5G-SA specific instructions, not EPC)
  3. Follow these steps to install 5g-mag application server (latest main branch): https://github.com/5G-MAG/rt-5gms-application-server
  4. Follow these instructions to install 5g mag application function (latest main branch): https://github.com/5G-MAG/rt-5gms-application-function
  5. Set "open5gsIntegration" to true in /usr/local/etc/open5gs/msaf.yaml

Expected behavior
5g-mag application function & server connect to open5gs.

Screenshots
If applicable, add screenshots to help explain your problem.
output from the AF (in gdb):
image

If I set open5gsIntegration to false, it runs fine:
image

Desktop (please complete the following information):

  • OS: Kubuntu 22.04.2

Additional context
Ask if need additional details.
Here's the code line reference for the segfault in GDB: https://github.com/5G-MAG/rt-5gms-application-function/blob/main/src/5gmsaf/context.c#L734

Perhaps I need to change additional settings in open5gs, the AF or AS? Or, I need to use older commits of open5gs?

Thanks in advance!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions