|
Bugzilla – Full Text Bug Listing |
| Summary: | Spectrum module example causing valgrind errors | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Mitch Watrous <watrous> |
| Component: | spectrum | Assignee: | Nicola Baldo <nicola> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Output from running test.py using valgrind | ||
confirmed, I'm working on it I have to confess that I don't have a clue, I get things like: ==7004== Conditional jump or move depends on uninitialised value(s) ==7004== at 0x40C23BF: ns3::HalfDuplexIdealPhy::EndRx() (half-duplex-ideal-phy.cc:397) which corresponds to: bool rxOk = m_interference.EndRx (); if (rxOk) or another example: ==7004== Conditional jump or move depends on uninitialised value(s) ==7004== at 0x4094AD2: ns3::MultiModelSpectrumChannel::StartTx(ns3::Ptr<ns3::PacketBurst>, ns3::Ptr<ns3::SpectrumValue>, ns3::SpectrumType, ns3::Time, ns3::Ptr<ns 3::SpectrumPhy>) (multi-model-spectrum-channel.cc:278) which corresponds to: double gainDb = m_propagationLoss->CalcRxPower (0, txMobility, receiverMobility); if ( (-gainDb) > m_maxLossDb) and I am sure valgrind is complaining about "gainDb", because the error persists if I change the if statement to if (gainDb > 0) Any suggestion? Am I missing something? I learned a bit more about valgrind today :-) changeset: 7355:10599454e238 user: Nicola Baldo <nbaldo@cttc.es> date: Thu Jul 07 15:39:44 2011 +0200 summary: fixed Bug 1208 - Spectrum module example causing valgrind errors |
Created attachment 1188 [details] Output from running test.py using valgrind This example: src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc causes valgrind errors when it is run in test.py under valgrind. I am attaching the output from valgrind with this report.