Bug 577 - simulation stops with assert failed. file=../src/devices/wimax/simpleOfdmWimaxPhy.cc, line=436, cond="bufferCopy == buffer"
simulation stops with assert failed. file=../src/devices/wimax/simpleOfdmWima...
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wimax
ns-3.2
PC Linux
: P5 normal
Assigned To: Mohamed Amine ISMAIL
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-26 05:49 UTC by Mohamed Amine ISMAIL
Modified: 2009-08-25 10:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mohamed Amine ISMAIL 2009-05-26 05:49:31 UTC
in the simple wimax scenario in which there are defined only wimax elements (bs, ss, connection) but no application there are installes.
In this scenario there are 6 ss and 1 bs. When I compile and run it, simulation stops with this error:

_____________________
assert failed. file=../src/devices/wimax/simpleOfdmWimaxPhy.cc, line=436, cond="bufferCopy == buffer"
[New Thread 0xb5d37700 (LWP 9276)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5d37700 (LWP 9276)]
0xb79f7c5c in ns3::simpleOfdmWimaxPhy::RecreateBuffer (this=0x8ef41b0,
    modulationType=ns3::WimaxPhy::MODULATION_TYPE_BPSK_12) at ../src/devices/wimax/simpleOfdmWimaxPhy.cc:436
436      NS_ASSERT (bufferCopy == buffer);//temp, just to compare
_______________________

and the output of "bt" (gdb command) is following written:

(gdb) bt
#0  0xb79f7c5c in ns3::simpleOfdmWimaxPhy::RecreateBuffer (this=0x8ef41b0,
    modulationType=ns3::WimaxPhy::MODULATION_TYPE_BPSK_12) at ../src/devices/wimax/simpleOfdmWimaxPhy.cc:436
#1  0xb79f8c2e in ns3::simpleOfdmWimaxPhy::EndReceiveFecBlock2 (this=0x8ef41b0, fecBlock=@0xbfec7780,
    modulationType=ns3::WimaxPhy::MODULATION_TYPE_BPSK_12, direction=0 '\0', symbolIndex=0)
    at ../src/devices/wimax/simpleOfdmWimaxPhy.cc:289
#2  0xb79f5cf6 in Notify (this=0x8f17d50) at debug/ns3/simulator.h:812
#3  0xb76c20a2 in ns3::EventImpl::Invoke (this=0x8f17d50) at ../src/simulator/event-impl.cc:53
#4  0xb76df32d in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x8ef49c8)
    at ../src/simulator/default-simulator-impl.cc:125
#5  0xb76df3a3 in ns3::DefaultSimulatorImpl::Run (this=0x8ef49c8) at ../src/simulator/default-simulator-impl.cc:155
#6  0xb76cb125 in ns3::Simulator::Run () at ../src/simulator/simulator.cc:145
#7  0x0804e1c3 in main () at ../scratch/Mysimple-wimax.cc:131