Bug 2035 - write(2)/send(2) crashes with connected UDP socket
write(2)/send(2) crashes with connected UDP socket
Product: dce
Classification: Unclassified
Component: other
PC Linux
: P5 major
Assigned To: Hajime Tazaki
Depends on:
  Show dependency treegraph
Reported: 2014-12-20 19:44 EST by Hajime Tazaki
Modified: 2015-01-23 14:01 EST (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Hajime Tazaki 2014-12-20 19:44:32 EST
A UDP socket successfully invokes sendto(2) and sendmsg(2), but fails (and crashes) with write(2) and send(2) even socket are connected, with the following message.

assert failed. cond="SystemThread::Equals (m_main)", msg="Simulator::Schedule Thread-unsafe invocation!", file=../src/core/model/default-simulator-impl.cc, line=222

reported by Thomas Burger.

Comment 1 Hajime Tazaki 2014-12-20 20:44:05 EST
changeset 4747e90c6d5c should fix the issue.
Thomas, could you please check with the latest ns-3-dce if possible ?

Comment 2 Thomas Burger 2015-01-23 14:01:10 EST
Hello Hajime,

sorry for the delayed response. The fix works just fine!

Thank you very much.