Bugzilla – Bug 58
Simulator::Remove and Simulator::IsExpired are not safe together
Last modified: 2008-07-01 13:32:16 EDT
EventId ev = Simulator::Schedule (...) EventId ev1 = ev; Simulator::Remove (ev); // following call buggy: undefined behavior. Simulator::IsExpired (ev1); If we want to make this work reliably, we need to make the EventImpl refcounted and we need to add a bool isRemoved in it. binding authors might be super happy with this change.
Full patchset in http://code.nsnam.org/mathieu/ns-3-bug58
fix was merged recently