Getting Segmentation Fault with v3.0.4

Hi,

I am getting segmentation fault on executing “./test.sh TestRegistration” with free5gc v3.0.4
Please note that I am not executing N3IWF.
v3.0.4_pcap.pcapng (362.0 KB) v3.0.4_segv_logs.txt (26.0 KB) logs_pcaps.zip (68.7 KB)
root@ubuntu:/home/free5gc# uname -r
5.0.0-23-generic

Attaching logs & pcap.
Please let me know if you need any other information.

Thanks,
Rashmi

Hi,

Do you insert the gtp5g module?

Yes, I have inserted gtp5g module with below commands:
git clone -b v0.2.0 https://github.com/PrinzOwO/gtp5g.git
cd gtp5g
make
sudo make install

Thanks,
Rashmi

Seems two error on your host,

  1. Epoll Wait error : Invalid argument on UPF
  2. dial error with connection refuse.

What OS are you using? Have you close the firewall?

Hi,

I am using VM with Ubuntu 18.04 and firewall is inactive.

Please see logs below:
root@ubuntu:~/free5gc# lsmod | grep gtp5g
gtp5g 36864 0
udp_tunnel 16384 1 gtp5g

root@ubuntu:~/free5gc# cd lib/libgtp5gnl/tools
bash: cd: lib/libgtp5gnl/tools: No such file or directory

root@ubuntu:~/free5gc# ufw status
Status: inactive

I am running vis ./run.sh and each component is unable to register with NRF.
Request you to help in resolving the issue.
PFA logs with latest run.free5gc_logs_4_oct.txt (30.9 KB)

Let me know if I am missing something.

Thanks,
Rashmi

The error has changed now.

HTTP server setup failed: listen tcp 127.0.0.1:29510: bind: address already in use

Please check which process is binding on the port and kill it.

Hello,

Thank you so much for your reply. Really appreciate your help.
PFA logs with latest run.

I checked and only nrf is binding on port 29510.
root@ubuntu:~/free5gc# ss -lntp
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN0 128 127.0.0.1:29531 0.0.0.0:* users:((“nssf”,pid=38012,fd=31))
LISTEN0 128 127.0.0.1:29502 0.0.0.0:* users:((“smf”,pid=38008,fd=32))
LISTEN0 128 127.0.0.1:29503 0.0.0.0:* users:((“udm”,pid=38011,fd=30))
LISTEN0 128 127.0.0.1:29504 0.0.0.0:* users:((“udr”,pid=38009,fd=33))
LISTEN0 128 127.0.0.1:29507 0.0.0.0:* users:((“pcf”,pid=38010,fd=32))
LISTEN0 128 127.0.0.1:29509 0.0.0.0:* users:((“ausf”,pid=38013,fd=30))
LISTEN0 128 127.0.0.1:29510 0.0.0.0:* users:((“nrf”,pid=38006,fd=32))
LISTEN0 128 127.0.0.1:27017 0.0.0.0:* users:((“mongod”,pid=862,fd=11))
LISTEN0 128 127.0.0.1:29518 0.0.0.0:* users:((“amf”,pid=38007,fd=34))
LISTEN0 128 127.0.0.53%lo:53 0.0.0.0:* users:((“systemd-resolve”,pid=629,fd=13))
LISTEN0 5 127.0.0.1:631 0.0.0.0:* users:((“cupsd”,pid=2761,fd=7))
LISTEN0 128 :5000 : users:((“server”,pid=2991,fd=32))
LISTEN0 5 [::1]:631 [::]:
users:((“cupsd”,pid=2761,fd=6))
root@ubuntu:~/free5gc#

I am following below steps after installation mentioned in Readme.md of v3.0.4 to run & test UE registration with free5GC.
Can you please check and let me know if this is correct ?

Step 1 : First execute “./run.sh” to run the core
Step 2 : Immediately execute “./test.sh TestRegistration” after “./run.sh” to test UE registration with free5gc

I am seeing below error after executing ./run.sh

2020/10/05 06:38:48 http2: server connection error from 127.0.0.1:47448: connection error: PROTOCOL_ERROR
[WARN][PCF][Init] AMF status subscribe Error[http://127.0.0.1:29518: server no response]

I can successful PFCP association in the pcap.

Thanks,
Rashmi

logs_test_registration.txt (2.7 KB) logs_run_sh.txt (27.0 KB)

You don’t need to run ./run.sh before test. The test script will bring up NFs automatically.

I see. Thanks for the immediate reply.
Really appreciate it.

I just ran “./test.sh TestRegistration” and getting following on webconsole.

I can see PFCP Association Request-Response, Establishment Request-Response and Modification Request-Response in the pcap.

How can I check if the UE registered properly & can send data over it.
Can you please help here?
Attaching the latest logs for reference.
ue_reg_logs.txt (27.2 KB)
Thanks,
Rashmi

There is ping procedure at the end of the test.

Check if the ping request and response is sent and received successfully.

Yes, I can see ping request and response.
Any idea why webconsole is throwing an error as shared in screenshot above?

Thanks,
Rashmi

Hi Team,

Can you please help me to understand why I am getting below error on webconsole?

I just ran “./test.sh TestRegistration” and getting following on webconsole.

"Error fetching registered UEs. Is core network up ?

Thank you.

Regards,
Rashmi

The test will end immediately after finish the procedure. You should add some pending after the registration so that web console can catch the status.