Bug 577

Summary: simulation stops with assert failed. file=../src/devices/wimax/simpleOfdmWimaxPhy.cc, line=436, cond="bufferCopy == buffer"
Product: ns-3 Reporter: Mohamed Amine ISMAIL <amine.ismail>
Component: wimaxAssignee: Mohamed Amine ISMAIL <amine.ismail>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: ns-3.2   
Hardware: PC   
OS: Linux   

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