Skip to content

Boole crashes in clang opt builds

See e.g.

https://lhcb-nightlies.web.cern.ch/nightly/lhcb-master/2733/Boole/x86_64_v2-el9-clang16-opt/tests

Seems like there might be a few issues to address

Thread 1 (Thread 0x7f85127a7400 (LWP 3533102) "python3"):
#0  0x00007f85120d15ff in wait4 () from /lib64/libc.so.6
#1  0x00007f8512044283 in do_system () from /lib64/libc.so.6
#2  0x00007f850e29fc62 in TUnixSystem::StackTrace() () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.32.10-73580/x86_64-el9-clang16-opt/lib/libCore.so
#3  0x00007f850e2a31e0 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.32.10-73580/x86_64-el9-clang16-opt/lib/libCore.so
#4  <signal handler called>
#5  0x00007f84ee3cdc15 in LHCb::Detector::detail::DeMuonObject::chamberMostLikely(float, float, int, int&, int&, int&) const () from /dependencies/Detector/InstallArea/x86_64_v2-el9-clang16-opt/lib/libDetectorLib.so
#6  0x00007f84ee3ccf22 in LHCb::Detector::detail::DeMuonObject::Hit2ChamberNumber(ROOT::Math::PositionVector3D<ROOT::Math::Cartesian3D<double>, ROOT::Math::DefaultCoordinateSystemTag>, int, unsigned int&, int&) const () from /dependencies/Detector/InstallArea/x86_64_v2-el9-clang16-opt/lib/libDetectorLib.so
#7  0x00007f84ee3d2cbe in LHCb::Detector::detail::DeMuonObject::pos2StChamber(double, double, unsigned int) const () from /dependencies/Detector/InstallArea/x86_64_v2-el9-clang16-opt/lib/libDetectorLib.so
#8  0x00007f84ebdab062 in MuonBackground::getRadialPosition(MuonBackground::Cache const&, int, int) const () from /workspace/data/workspace/Boole/build/Muon/MuonBackground/libMuonBackground.so
#9  0x00007f84ebda79b6 in MuonBackground::createHit(MuonBackground::Cache const&, ObjectVector<LHCb::MCHit>*, int, int, int) const () from /workspace/data/workspace/Boole/build/Muon/MuonBackground/libMuonBackground.so
#10 0x00007f84ebda3a56 in MuonBackground::execute() () from /workspace/data/workspace/Boole/build/Muon/MuonBackground/libMuonBackground.so
Thread 1 (Thread 0x7fc8b8585400 (LWP 3530171) "python3"):
#0  0x00007fc8b7df65ff in wait4 () from /lib64/libc.so.6
#1  0x00007fc8b7d69283 in do_system () from /lib64/libc.so.6
#2  0x00007fc8b429fc62 in TUnixSystem::StackTrace() () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.32.10-73580/x86_64-el9-clang16-opt/lib/libCore.so
#3  0x00007fc8b42a31e0 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.32.10-73580/x86_64-el9-clang16-opt/lib/libCore.so
#4  <signal handler called>
#5  0x00007fc8701df94e in Rich::MC::Digi::RichFullReadoutResponse::Digital(Rich::Map<LHCb::RichSmartID, Rich::MC::Digi::PMTChannel, std::less<LHCb::RichSmartID>, std::allocator<std::pair<LHCb::RichSmartID const, Rich::MC::Digi::PMTChannel> > >&, Rich::MC::Digi::RichPDPropInfo const&, Rich::MC::Digi::RichPDTimeInfo const&, Rich::MC::Digi::RichLookupTable const&) const () from /workspace/data/workspace/Boole/build/Rich/RichReadout/libRichReadout.so
#6  0x00007fc8701dae8e in Rich::MC::Digi::RichFullReadoutResponse::operator()(KeyedContainer<LHCb::MCRichSummedDeposit, Containers::KeyedObjectManager<Containers::hashmap> > const&, Rich::MC::Digi::RichPDPropInfo const&, Rich::MC::Digi::RichPDTimeInfo const&, Rich::MC::Digi::RichPDChargeSharingInfo const&, Rich::MC::Digi::RichLookupTable const&, LHCb::GenHeader const&) const () from /workspace/data/workspace/Boole/build/Rich/RichReadout/libRichReadout.so

interestingly, no crashes are present in the clang dbg builds

https://lhcb-nightlies.web.cern.ch/nightly/lhcb-master/2733/Boole/x86_64_v2-el9-clang16-dbg/tests

FYI @gcorti @mexu @edelucia @seaso