cmssw: [UBSAN] Undefined behavior in EventFilter/*

The UBSAN IB reports undefined behavior in 5 files, with example relval and step they appear in:

136.773 step2
EventFilter/CSCTFRawToDigi/plugins/CSCTFUnpacker.cc:145:52: runtime error: index 15 out of bounds for type 'short unsigned int [15]'

136.8562 step3
EventFilter/CTPPSRawToDigi/interface/TotemSampicFrame.h:128:13: runtime error: load of misaligned address 0x2ba507f5e707 for type 'const uint64_t', which requires 8 byte alignment

11603.0 step2
EventFilter/CTPPSRawToDigi/plugins/CTPPSPixelDigiToRaw.cc:144:46: runtime error: reference binding to null pointer of type 'const struct map'

136.752 step3
 EventFilter/EcalRawToDigi/src/DCCEESRPBlock.cc:19:3: runtime error: pointer index expression with base 0xffffffffffffffff overflowed to 0x000000000003

34634.21 step3
EventFilter/L1TRawToDigi/plugins/implementations_stage2/GTSetup.cc:95:30: runtime error: member call on address 0x2ae11b4c18f0 which does not point to an object of type 'EtSumUnpacker'

for reference use the latest UBSAN IB: https://cmssdt.cern.ch/SDT/html/cmssdt-ib/#/relVal/CMSSW_12_1/2021-08-20-2300?selectedArchs=slc7_amd64_gcc10&selectedFlavors=UBSAN_X&selectedStatus=passed&selectedStatus=failed

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (27 by maintainers)

Most upvoted comments

The ECAL issue should be fixed with #35027 .