Bug 2035 - write(2)/send(2) crashes with connected UDP socket
write(2)/send(2) crashes with connected UDP socket
Status: CLOSED FIXED
Product: dce
Classification: Unclassified
Component: other
unspecified
PC Linux
: P5 major
Assigned To: Hajime Tazaki
:
Depends on:
Blocks:
  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:


Attachments

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.

https://groups.google.com/d/msg/ns-3-users/IJhV3h7QRmM/8QxmZC4rMEcJ
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 ?

http://code.nsnam.org/ns-3-dce/rev/4747e90c6d5c
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.