64-bit event id
Hello. For the past ~month I've debugging a strange memory corruption bug that shows up during large simulations. I managed to reproduce the issue with NS_ASSERT
enabled, this assert failed: https://gitlab.com/nsnam/ns-3-dev/-/blob/ac88b75eac1818c673cf2c939a96ac3005b1f051/src/wifi/model/phy-entity.cc#L768 . Turned out, the problem is the event id wrap-around, which is 32-bit. It is assumed that events in m_endOfMpduEvents
are executed before NotifyInterferenceRxEndAndClear()
, but due to the overflow in the event id, it is not true for large simulations.
Have there been discussions about making the event id 64-bit or implementing some other fix to support large simulations?