uw-ictd / open5gs

open5gs is an open source implementation of the Evolved Packet Core and 5GC supporting 3GPP Release 16. This repository is a maintenance and research fork of the main upstream open5gs/open5gs.
https://open5gs.org
GNU Affero General Public License v3.0
2 stars 0 forks source link

ogs_assert on enb_ue can fail. #3

Open spencersevilla opened 4 years ago

spencersevilla commented 4 years ago

The line "ogs_assert(enb_ue);" in s1ap-handler.c:469 sometimes fails and crashes the mme. Failure in this case means that we cannot find the enb_ue ID given to us by the eNB in the ContextSetupResponse message. Given that this variable is given to us by the network, we should not assert on its absence.

In terms of logic, I am not sure yet why this assert failed, since we ostensibly just created this enb_ue value in mme-context.c:2033. Could be a race condition, will dig further, but my point about asserts on network values still stands.