[Ns-developers] BuildBot valgrind errror
Faker Moatamri
faker.moatamri at sophia.inria.fr
Tue Jun 30 03:29:08 PDT 2009
Hi All,
It looks like there is a problem in running valgrind tests, it detects
that a variable is used in a conditional statement and might not have
been initialized.
This is detected in traced-value.h line 103:
void Set (const T &v) {
if (m_v != v) <- in this line
{
m_cb (m_v, v);
m_v = v;
}
}
Here is the complete trace:
==10118== Conditional jump or move depends on uninitialised
value(s)
==10118== at 0x51E0FBC: ns3::TracedValue<unsigned>::Set(unsigned
const&)
(traced-value.h:103)
==10118== by 0x51E1002:
ns3::TracedValue<unsigned>::operator=(ns3::TracedValue<unsigned> const&)
(traced-value.h:67)
==10118== by 0x51CB536: ns3::TcpSocketImpl::SetSegSize(unsigned)
(tcp-socket-impl.cc:1666)
==10118== by 0x516AB0A:
_ZZN3ns323DoMakeAccessorHelperTwoINS_13UintegerValueENS_9TcpSocketEjjEENS_3PtrIKNS_17AttributeAccessorEEEMT0_FvT1_EMS7_KFT2_vEENK12MemberMethod5DoSetEPS2_PKS1_
(attribute-accessor-helper.h:223)
==10118== by 0x516D44B: ns3::AccessorHelper<ns3::TcpSocket,
ns3::UintegerValue>::Set(ns3::ObjectBase*, ns3::AttributeValue const&)
const (attribute-accessor-helper.h:74)
==10118== by 0x4FFBC84:
ns3::ObjectBase::DoSet(ns3::Ptr<ns3::AttributeAccessor const>,
ns3::Ptr<ns3::AttributeChecker const>, ns3::AttributeValue const&)
(object-base.cc:167)
==10118== by 0x4FFD9E1:
ns3::ObjectBase::ConstructSelf(ns3::AttributeList const&)
(object-base.cc:149)
==10118== by 0x5001542: ns3::Object::Construct(ns3::AttributeList
const&)
(object.cc:106)
==10118== by 0x51AE0A4: ns3::Ptr<ns3::TcpSocketImpl>
ns3::CompleteConstruct<ns3::TcpSocketImpl>(ns3::TcpSocketImpl*)
(object.h:407)
==10118== by 0x51AE15F: ns3::Ptr<ns3::TcpSocketImpl>
ns3::CreateObject<ns3::TcpSocketImpl>()
(object.h:484)
==10118== by 0x51A4841: ns3::TcpL4Protocol::CreateSocket()
(tcp-l4-protocol.cc:414)
==10118== by 0x51E95B8: ns3::TcpSocketFactoryImpl::CreateSocket()
(tcp-socket-factory-impl.cc:44)
Any idea of what's happening?
Thanks
Faker Moatamri
More information about the Ns-developers
mailing list