==9131== Memcheck, a memory error detector ==9131== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==9131== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==9131== Command: ./build/debug/scratch/thirdModificato ==9131== Parent PID: 8882 ==9131== ==9131== Invalid read of size 8 ==9131== at 0x57BAE66: std::vector >::operator[](unsigned long) (stl_vector.h:611) ==9131== by 0x5CA4A6B: ns3::MinstrelWifiManager::GetNextSample(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:452) ==9131== by 0x5CA4D0F: ns3::MinstrelWifiManager::FindRate(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:494) ==9131== by 0x5CA45DB: ns3::MinstrelWifiManager::DoReportDataOk(ns3::WifiRemoteStation*, double, ns3::WifiMode, double) (minstrel-wifi-manager.cc:386) ==9131== by 0x5C5B412: ns3::WifiRemoteStationManager::ReportDataOk(ns3::Mac48Address, ns3::WifiMacHeader const*, double, ns3::WifiMode, double) (wifi-remote-station-manager.cc:414) ==9131== by 0x5C17D09: ns3::MacLow::ReceiveOk(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (mac-low.cc:711) ==9131== by 0x5C2A8F1: ns3::MemPtrCallbackImpl, double, ns3::WifiMode, ns3::WifiPreamble), void, ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (callback.h:232) ==9131== by 0x5BEBDFD: ns3::Callback, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) const (callback.h:419) ==9131== by 0x5BE9E7C: ns3::WifiPhyStateHelper::SwitchFromRxEndOk(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (wifi-phy-state-helper.cc:361) ==9131== by 0x5C05C02: ns3::YansWifiPhy::EndReceive(ns3::Ptr, ns3::Ptr) (yans-wifi-phy.cc:753) ==9131== by 0x5C06BD5: ns3::EventImpl* ns3::MakeEvent, ns3::Ptr), ns3::YansWifiPhy*, ns3::Ptr, ns3::Ptr >(void (ns3::YansWifiPhy::*)(ns3::Ptr, ns3::Ptr), ns3::YansWifiPhy*, ns3::Ptr, ns3::Ptr)::EventMemberImpl2::Notify() (make-event.h:155) ==9131== by 0x571B0BF: ns3::EventImpl::Invoke() (event-impl.cc:37) ==9131== Address 0xe02f868 is 0 bytes after a block of size 24 alloc'd ==9131== at 0x4C28CC1: operator new(unsigned long) (vg_replace_malloc.c:261) ==9131== by 0x5CA9C59: __gnu_cxx::new_allocator > >::allocate(unsigned long, void const*) (new_allocator.h:89) ==9131== by 0x5CA93BA: std::_Vector_base >, std::allocator > > >::_M_allocate(unsigned long) (stl_vector.h:140) ==9131== by 0x5CA89B1: std::vector >* std::vector >, std::allocator > > >::_M_allocate_and_copy<__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > > >(unsigned long, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >) (stl_vector.h:963) ==9131== by 0x5CA79AF: std::vector >, std::allocator > > >::operator=(std::vector >, std::allocator > > > const&) (vector.tcc:165) ==9131== by 0x5CA380E: ns3::MinstrelWifiManager::CheckInit(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:198) ==9131== by 0x5CA4852: ns3::MinstrelWifiManager::DoGetDataMode(ns3::WifiRemoteStation*, unsigned int) (minstrel-wifi-manager.cc:425) ==9131== by 0x5C5AD57: ns3::WifiRemoteStationManager::GetDataMode(ns3::Mac48Address, ns3::WifiMacHeader const*, ns3::Ptr, unsigned int) (wifi-remote-station-manager.cc:361) ==9131== by 0x5C1A9D7: ns3::MacLow::GetDataTxMode(ns3::Ptr, ns3::WifiMacHeader const*) const (mac-low.cc:963) ==9131== by 0x5C1E55A: ns3::MacLow::StartDataTxTimers() (mac-low.cc:1265) ==9131== by 0x5C1F25E: ns3::MacLow::SendDataPacket() (mac-low.cc:1319) ==9131== by 0x5C15BD6: ns3::MacLow::StartTransmission(ns3::Ptr, ns3::WifiMacHeader const*, ns3::MacLowTransmissionParameters, ns3::MacLowTransmissionListener*) (mac-low.cc:596) ==9131== ==9131== Invalid read of size 4 ==9131== at 0x5CA4A6C: ns3::MinstrelWifiManager::GetNextSample(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:452) ==9131== by 0x5CA4D0F: ns3::MinstrelWifiManager::FindRate(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:494) ==9131== by 0x5CA45DB: ns3::MinstrelWifiManager::DoReportDataOk(ns3::WifiRemoteStation*, double, ns3::WifiMode, double) (minstrel-wifi-manager.cc:386) ==9131== by 0x5C5B412: ns3::WifiRemoteStationManager::ReportDataOk(ns3::Mac48Address, ns3::WifiMacHeader const*, double, ns3::WifiMode, double) (wifi-remote-station-manager.cc:414) ==9131== by 0x5C17D09: ns3::MacLow::ReceiveOk(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (mac-low.cc:711) ==9131== by 0x5C2A8F1: ns3::MemPtrCallbackImpl, double, ns3::WifiMode, ns3::WifiPreamble), void, ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (callback.h:232) ==9131== by 0x5BEBDFD: ns3::Callback, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) const (callback.h:419) ==9131== by 0x5BE9E7C: ns3::WifiPhyStateHelper::SwitchFromRxEndOk(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (wifi-phy-state-helper.cc:361) ==9131== by 0x5C05C02: ns3::YansWifiPhy::EndReceive(ns3::Ptr, ns3::Ptr) (yans-wifi-phy.cc:753) ==9131== by 0x5C06BD5: ns3::EventImpl* ns3::MakeEvent, ns3::Ptr), ns3::YansWifiPhy*, ns3::Ptr, ns3::Ptr >(void (ns3::YansWifiPhy::*)(ns3::Ptr, ns3::Ptr), ns3::YansWifiPhy*, ns3::Ptr, ns3::Ptr)::EventMemberImpl2::Notify() (make-event.h:155) ==9131== by 0x571B0BF: ns3::EventImpl::Invoke() (event-impl.cc:37) ==9131== by 0x5738093: ns3::DefaultSimulatorImpl::ProcessOneEvent() (default-simulator-impl.cc:128) ==9131== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==9131== ==9131== ==9131== Process terminating with default action of signal 11 (SIGSEGV) ==9131== Access not within mapped region at address 0x0 ==9131== at 0x5CA4A6C: ns3::MinstrelWifiManager::GetNextSample(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:452) ==9131== by 0x5CA4D0F: ns3::MinstrelWifiManager::FindRate(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:494) ==9131== by 0x5CA45DB: ns3::MinstrelWifiManager::DoReportDataOk(ns3::WifiRemoteStation*, double, ns3::WifiMode, double) (minstrel-wifi-manager.cc:386) ==9131== by 0x5C5B412: ns3::WifiRemoteStationManager::ReportDataOk(ns3::Mac48Address, ns3::WifiMacHeader const*, double, ns3::WifiMode, double) (wifi-remote-station-manager.cc:414) ==9131== by 0x5C17D09: ns3::MacLow::ReceiveOk(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (mac-low.cc:711) ==9131== by 0x5C2A8F1: ns3::MemPtrCallbackImpl, double, ns3::WifiMode, ns3::WifiPreamble), void, ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (callback.h:232) ==9131== by 0x5BEBDFD: ns3::Callback, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) const (callback.h:419) ==9131== by 0x5BE9E7C: ns3::WifiPhyStateHelper::SwitchFromRxEndOk(ns3::Ptr, double, ns3::WifiMode, ns3::WifiPreamble) (wifi-phy-state-helper.cc:361) ==9131== by 0x5C05C02: ns3::YansWifiPhy::EndReceive(ns3::Ptr, ns3::Ptr) (yans-wifi-phy.cc:753) ==9131== by 0x5C06BD5: ns3::EventImpl* ns3::MakeEvent, ns3::Ptr), ns3::YansWifiPhy*, ns3::Ptr, ns3::Ptr >(void (ns3::YansWifiPhy::*)(ns3::Ptr, ns3::Ptr), ns3::YansWifiPhy*, ns3::Ptr, ns3::Ptr)::EventMemberImpl2::Notify() (make-event.h:155) ==9131== by 0x571B0BF: ns3::EventImpl::Invoke() (event-impl.cc:37) ==9131== by 0x5738093: ns3::DefaultSimulatorImpl::ProcessOneEvent() (default-simulator-impl.cc:128) ==9131== If you believe this happened as a result of a stack ==9131== overflow in your program's main thread (unlikely but ==9131== possible), you can try to increase the size of the ==9131== main thread stack using the --main-stacksize= flag. ==9131== The main thread stack size used in this run was 8388608. ==9131== ==9131== HEAP SUMMARY: ==9131== in use at exit: 535,977 bytes in 8,551 blocks ==9131== total heap usage: 13,834 allocs, 5,283 frees, 968,286 bytes allocated ==9131== ==9131== LEAK SUMMARY: ==9131== definitely lost: 120 bytes in 1 blocks ==9131== indirectly lost: 0 bytes in 0 blocks ==9131== possibly lost: 153,654 bytes in 3,331 blocks ==9131== still reachable: 382,203 bytes in 5,219 blocks ==9131== suppressed: 0 bytes in 0 blocks ==9131== Rerun with --leak-check=full to see details of leaked memory ==9131== ==9131== For counts of detected and suppressed errors, rerun with: -v ==9131== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)