Skip to content

Do not print value prior to initialization.

Valgrind was complaining about a conditional jump or move was depending on an uninitialised variable:

==31194== Conditional jump or move depends on uninitialised value(s)
==31194==    at 0x4C2ED02: is_overlap (vg_replace_strmem.c:140)
==31194==    by 0x4C2ED02: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035)
==31194==    by 0x106A0177: copy (char_traits.h:352)
==31194==    by 0x106A0177: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (streambuf.tcc:90)
==31194==    by 0x106912A3: sputn (streambuf:458)
==31194==    by 0x106912A3: __ostream_write<char, std::char_traits<char> > (ostream_insert.h:50)
==31194==    by 0x106912A3: std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long) (ostream_insert.h:101)
==31194==    by 0x96F1BD6F: Ringer::RingerReader::retrieve(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::shared_ptr<Ringer::IModel>, std::allocator<std::shared_ptr<Ringer::IModel> > >&) (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/Athena/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libTrigMultiVarHypoLib.so)
==31194==    by 0x96EC658C: TrigL2CaloRingerFex::hltInitialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/Athena/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libTrigMultiVarHypoLib.so)
==31194==    by 0x40FFFD5B: HLT::Algo::initialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/Athena/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libTrigInterfacesLib.so)
==31194==    by 0x41042435: HLT::TECreateAlgo::initialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/Athena/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libTrigInterfacesLib.so)
==31194==    by 0x1E270A36: Gaudi::Algorithm::sysInitialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/GAUDI/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libGaudiKernel.so)
==31194==    by 0x30C33528: AthCommonDataStore<AthCommonMsg<Algorithm> >::sysInitialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/Athena/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libPerfMonComps.so)
==31194==    by 0x1E3ABE44: Gaudi::Sequence::initialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/GAUDI/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libGaudiKernel.so)
==31194==    by 0x409A4B6E: HLT::TrigSteer::initialize() (in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master/2019-08-11T2129/Athena/22.0.3/InstallArea/x86_64-centos7-gcc8-opt/lib/libTrigSteeringLib.so)

This seems to be caused by printing a value which is read from a file before it was actually read.

Merge request reports

Loading