rmartin5 / aqua-sim-ng

Aqua-Sim on NS3
81 stars 41 forks source link

Segmentation fault when run NDN modules #20

Closed Duola-li closed 4 years ago

Duola-li commented 4 years ago

Hi! I am trying to run NDN modules, and I just add one line codes, "SendPkt(packet);", in line 133 of named-data.cc, to send the packet form application layer. But some error occurs when run "_named_dataexample" and the gdb message are as follows:

-----------Initializing simulation-----------
Creating Nodes
Node: 0x6c1350 newDevice: 0x6c4a20 Position: 0,0,0 freq:25 addr:1
Node: 0x6c0e20 newDevice: 0x6c56e0 Position: 2000,0,0 freq:25 addr:2
Node: 0x6c0480 newDevice: 0x6c64b0 Position: 4000,0,0 freq:25 addr:3
-----------Running Simulation-----------

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff42ba598 in ns3::AquaSimPhyCmn::Decodable (this=0x6c5840, 
    noise=0.39500000000000002, ps=0.39500000000000002)
    at ../src/aqua-sim-ng/model/aqua-sim-phy-cmn.cc:309
309   return m_sinrChecker->Decodable(ps / noise);
(gdb) 

How can I fix this fault? Thank you for your attention and I look forward to your help。

Duola-li commented 4 years ago

m_sinrChecker is not initialized!