-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: segmentation fault when removing gNB with (previous) user session and then killing UPF process #121
Comments
The segmentation fault comes from this piece of code in rspData, statusCode, err := p.Consumer().N1N2MessageTransfer(ctx, smContext.Supi, n1n2Request, smContext.CommunicationClientApiPrefix)
if err != nil {
logger.ConsumerLog.Warnf("N1N2MessageTransfer for RequestAMFToReleasePDUResources failed: %+v", err)
}
switch *statusCode {
...
} As the SMF warns about One possible solution could be to return and remove the SM context after throwing the warning, e.g.: rspData, statusCode, err := p.Consumer().N1N2MessageTransfer(ctx, smContext.Supi, n1n2Request, smContext.CommunicationClientApiPrefix)
if err != nil {
logger.ConsumerLog.Warnf("N1N2MessageTransfer for RequestAMFToReleasePDUResources failed: %+v", err)
return false, true // remove SM context
} |
Another solution that comes to mind is handling a graceful release of all user sessions that are associated with the removed RAN context in the AMF, so for example informing the SMF about necessary session releases, or returning a useful status code when the SMF tries to remove such a previously removed context from the AMF in the |
Hi @LaumiH , |
Thanks for reporting this bug. Fix at |
I want to report a segmentation fault in the SMF when a user session is released and afterwards the UPF misses a heartbeat (e.g., because the process was killed).
The error:
Steps to reproduce:
The error does not show when there is/was no user session.
I have attached the full logs. However, the segmentation fault is not visible here, it happens right after the line
time="2024-09-11T15:15:03.983901309Z" level="warning" msg="N1N2MessageTransfer for RequestAMFToReleasePDUResources failed: 409 Conflict" CAT="Consumer" NF="SMF"
.free5gc.log
The text was updated successfully, but these errors were encountered: