Hi,
I'm working inside of a project which uses ns-3.22. In the project code there is one node which has an application server and there are some other nodes which have an application client. My task is to realise some topologies (e.g. dsl, lte, plc topology) so that the server and the clients can communicate to each other using a realistic topology. I've realised a dsl topology and a plc topology. For both the simulator runs fines. I've realised a lte topology, too. Once I run the simulator using the lte topology, I've got an segmentation fault during the simulation. It doesn't matter if I use ns-3.24.1. The same error occurs. Running the simulator with gdb shows the following:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffefb8ceba in ns3::EventImpl* ns3::MakeEvent<void (ns3::Application::*)(), ns3::Application*>(void (ns3::Application::*)(), ns3::Application*)::EventMemberImpl0::Notify() (this=0x92c5b0) at ./ns3/make-event.h:323
323 (EventMemberImplObjTraits<OBJ>::GetReference (m_obj).*m_function)();The simulator initialize the server and the clients correctly and then it terminates at any time. But it happens before the a package will be send.
To identify the error I've created a simple example with an
UDP Echo Server and some
UDP Echo Clients using the same lte topology. However, in this case the simulator runs fine and all messages will be transfered. So I don't know how to fix the problem. Because the simulator runs fine with other network topologies I think the error has to be existent in the lte topology.
Can you please look at my example code and check if there is a error or missing code part? I've attached the example and you can just copy the file into the scratch folder to run it,
Thanks,
Peter