Bugzilla – Bug 1558
lena-dual-stripe SIGABRT
Last modified: 2012-12-19 11:20:11 UTC
on ns-3.16-rc1 we get SIGABRT for lena-dual-stripe. Tested on OSX-mountainlion (gdb) run Starting program: /Users/john/ns-3/ns-allinone-3.16.rc1/ns-3.16.rc1/build/src/lte/examples/ns3.16.rc1-lena-dual-stripe-debug \<args\> Reading symbols for shared libraries ++++++++++++++++++++++++++............................. done libc++abi.dylib: terminate called throwing an exception Program received signal SIGABRT, Aborted. 0x00007fff8d045d46 in __kill () (gdb) bt #0 0x00007fff8d045d46 in __kill () #1 0x00007fff97859df0 in abort () #2 0x00007fff8eaeba17 in abort_message () #3 0x00007fff8eae93c6 in default_terminate () #4 0x00007fff8ffc3887 in _objc_terminate () #5 0x00007fff8eae93f5 in safe_handler_caller () #6 0x00007fff8eae9450 in std::terminate () #7 0x00007fff8eaea5b7 in __cxa_throw () #8 0x00007fff944b541b in std::__throw_out_of_range () #9 0x000000010017e759 in std::vector<double, std::allocator<double> >::_M_range_check (this=0x7fff5fbfb070, __n=0) at stl_vector.h:501 #10 0x000000010017e783 in std::vector<double, std::allocator<double> >::at (this=0x7fff5fbfb070, __n=0) at stl_vector.h:519 #11 0x0000000100a34bd8 in ns3::SpectrumValue::operator[] (this=0x7fff5fbfb060, index=0) at spectrum-value.cc:46 #12 0x00000001004837ba in ns3::LteMiErrorModel::Mib (sinr=@0x1037a5420, map=@0x1040e9710, mcs=16 '\020') at lte-mi-error-model.cc:271 #13 0x0000000100484b7a in ns3::LteMiErrorModel::GetTbError (sinr=@0x1037a5420, map=@0x1040e9710, size=967, mcs=16 '\020') at lte-mi-error-model.cc:384 #14 0x0000000100158767 in ns3::LteSpectrumPhy::EndRxData (this=0x1037a52c0) at lte-spectrum-phy.cc:764 #15 0x000000010015202a in ns3::EventImpl* ns3::MakeEvent<void (ns3::LteSpectrumPhy::*)(), ns3::LteSpectrumPhy*>(void (ns3::LteSpectrumPhy::*)(), ns3::LteSpectrumPhy*)::EventMemberImpl0::Notify () at make-event.h:94 #16 0x000000010323456f in ns3::EventImpl::Invoke (this=0x10450af40) at event-impl.cc:45 #17 0x000000010323c65d in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x10375be20) at default-simulator-impl.cc:140 #18 0x000000010323c929 in ns3::DefaultSimulatorImpl::Run (this=0x10375be20) at default-simulator-impl.cc:193 #19 0x00000001032365c8 in ns3::Simulator::Run () at simulator.cc:160 #20 0x0000000100016a60 in main (argc=2, argv=0x7fff5fbff760) at lena-dual-stripe.cc:706
This can be seen on all platforms. Although lena-dual-stripe is exercised in the test suite, it is constrained to --simTime=0.01, and the error manifests itself if the simtime is not constrained.
I've backported this changeset from the LENA dev repository which fixes the problem. changeset: 9202:e3645afbe360 tag: tip user: mmiozzo date: Tue Oct 09 17:02:40 2012 +0200 summary: Bug-fix inhibit Error Model when receiving data frame with only control messages in LteSpectrumPhy::EndRxData