Bug 2035

Summary: write(2)/send(2) crashes with connected UDP socket
Product: dce Reporter: Hajime Tazaki <tazaki>
Component: otherAssignee: Hajime Tazaki <tazaki>
Status: CLOSED FIXED    
Severity: major CC: burgerthomas1234, ns-bugs
Priority: P5    
Version: unspecified   
Hardware: PC   
OS: Linux   

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.