错误 #541
amf处理PDUSessionResourceSetupResponse消息时 挂死
0%
描述
2021-05-12T17:59:15+08:00 [INFO][AMF][NGAP][192.168.2.247:38412] Handle PDU Session Resource Setup Response (/home/ngc/go/src/free5gc/NFs/amf/ngap/handler.go:1034 github.com/free5gc/amf/ngap.HandlePDUSessionResourceSetupResponse)
2021-05-12T17:59:15+08:00 [ERRO][AMF][NGAP][192.168.2.247:38412][AMF_UE_NGAP_ID:37] SmContext[PDU Session ID:5] not found (/home/ngc/go/src/free5gc/NFs/amf/ngap/handler.go:1087 github.com/free5gc/amf/ngap.HandlePDUSessionResourceSetupResponse)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd3554b]
goroutine 1282 [running]:
github.com/free5gc/amf/context.(*SmContext).SmfUri(0x0, 0x0, 0x0)
/home/ngc/go/src/free5gc/NFs/amf/context/sm_context.go:148 +0x3b
github.com/free5gc/amf/consumer.SendUpdateSmContextRequest(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ngc/go/src/free5gc/NFs/amf/consumer/sm_context.go:402 +0x108
github.com/free5gc/amf/consumer.SendUpdateSmContextN2Info(0xc0000d0100, 0x0, 0x1198528, 0x11, 0xc0007e16c0, 0xe, 0x10, 0xc00016c150, 0x5555555555555555, 0x0, ...)
/home/ngc/go/src/free5gc/NFs/amf/consumer/sm_context.go:256 +0x140
github.com/free5gc/amf/ngap.HandlePDUSessionResourceSetupResponse(0xc0002d2000, 0xc0000ad540)
/home/ngc/go/src/free5gc/NFs/amf/ngap/handler.go:1089 +0x8a1
github.com/free5gc/amf/ngap.Dispatch(0x1553980, 0xc0001489a0, 0xc0000ec000, 0x29, 0x2000)
/home/ngc/go/src/free5gc/NFs/amf/ngap/dispatcher.go:115 +0x7f3
github.com/free5gc/amf/ngap/service.handleConnection(0xc0001489a0, 0x2000, 0x11d6c48, 0x11d6c50)
/home/ngc/go/src/free5gc/NFs/amf/ngap/service/service.go:204 +0x700
created by github.com/free5gc/amf/ngap/service.listenAndServe
/home/ngc/go/src/free5gc/NFs/amf/ngap/service/service.go:136 +0xc43
文件