I installed ns3-dce and i tested iperf. It worked perfectly. I have an application program to transfer a file from sender to receiver that works without any error completely on my laptop.
1) In order to add it to dce, I have a cpp program very similar to iperf. I added it to ns3-dce/example.
but when i want to run the program with ./waf --run (examplefile) i receive the following error:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffed8b301f in _int_free (av=0x7fffedbf2760 <main_arena>,
p=<optimized out>, have_lock=0) at malloc.c:3996
3996 malloc.c: No such file or directory.
(gdb) bt
#0 0x00007fffed8b301f in _int_free (av=0x7fffedbf2760 <main_arena>,
p=<optimized out>, have_lock=0) at malloc.c:3996
#1 0x00007ffff7abe1bf in ns3::UcontextFiberManager::Delete (this=0x69d820,
fib=0x769210) at ../model/ucontext-fiber-manager.cc:255
#2 0x00007ffff7ac3cc7 in ns3::TaskManager::GarbageCollectDeadTasks (
this=0x69d710) at ../model/task-manager.cc:177
#3 0x00007ffff7ac6911 in ns3::TaskManager::Schedule (this=0x69d710)
at ../model/task-manager.cc:470
#4 0x00007ffff7ac8383 in ns3::EventImpl* ns3::MakeEvent<void (ns3::TaskManager::*)(), ns3::TaskManager*>(void (ns3::TaskManager::*)(), ns3::TaskManager*)::EventMemberImpl0::Notify() (this=0xa0b050)
at /home/ns3/mptcp-0.89/mptcp/arch/sim/test/buildtop/build/include/ns3-dev/ns3/make-event.h:323
#5 0x00007ffff73564f7 in ns3::EventImpl::Invoke (this=0xa0b050)
at ../src/core/model/event-impl.cc:51
#6 0x00007ffff735aebe in ns3::DefaultSimulatorImpl::ProcessOneEvent (
this=0x6c3cb0) at ../src/core/model/default-simulator-impl.cc:149
#7 0x00007ffff735b238 in ns3::DefaultSimulatorImpl::Run (this=0x6c3cb0)
at ../src/core/model/default-simulator-impl.cc:202
#8 0x00007ffff735722e in ns3::Simulator::Run ()
at ../src/core/model/simulator.cc:205
#9 0x000000000040c56c in main (argc=2, argv=0x7fffffffd798)
at ../example/dce-mmt.cc:187
(gdb)
the most strange thing is that before (some months ago) it was running without any error perfectly. now I am trying again to run it but i can't. I am wondering if there is any other step that i have forgotten. Please guide me.