AMF crash on sending ngsetup request via sctp

I was facing an issue with the ngsetup Request, I am able to send a NgSetup Request via SCTP but on receiving the ngap packet the free5gc AMF has a runtime error (“segmentation fault”), and the whole thing crashes. Can someone help me debug the issue?
I have attached the screenshot of the error and the pcap file.


This seems to be a similar issue. How about give the patch a try?

I tried the patch, did not work.

Ngaplog.Infof(“Create a new NG connection for: %s”, conn.RemoteAddr().String()

AMF cannot connect RAN, conn.RemoteAddr() is nil. nil.String() will panic