[Ns-bugs] [Bug 58] New: Simulator::Remove and Simulator::IsExpired are not safe together
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Thu Jul 26 23:32:16 PDT 2007
http://www.nsnam.org/bugzilla/show_bug.cgi?id=58
Summary: Simulator::Remove and Simulator::IsExpired are not safe
together
Product: ns-3
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P1
Component: simulation core
AssignedTo: ns-bugs at isi.edu
ReportedBy: mathieu.lacage at sophia.inria.fr
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.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list