ubsan build errors in UT, MCEvent and Retina Decoding
When running with x86_64_v2-el9-gcc12-dbg+ubsan
builds, I get the following runtime errors
-
integration/non_event_data/src/UTLookupTables.cpp
:
/home/dtou/Allen/standalone/integration/non_event_data/src/UTLookupTables.cpp:32:3: runtime error: load of misaligned address 0x0000040fc02c for type 'const size_t', which requires 8 byte alignment
0x0000040fc02c: note: pointer points here
1e 00 00 00 7c 00 00 00 00 00 00 00 de 2f 9b 3f 08 79 92 3f 0f 05 5f 3f 14 28 52 3f b0 25 9b 3f
^
/home/dtou/Allen/standalone/integration/non_event_data/src/UTLookupTables.cpp:35:20: runtime error: load of misaligned address 0x0000040fc02c for type 'const size_t', which requires 8 byte alignment
0x0000040fc02c: note: pointer points here
1e 00 00 00 7c 00 00 00 00 00 00 00 de 2f 9b 3f 08 79 92 3f 0f 05 5f 3f 14 28 52 3f b0 25 9b 3f
^
-
host/event_model/MC/src/MCEvent.cpp
:
/home/dtou/Allen/standalone/host/event_model/MC/src/MCEvent.cpp:94:19: runtime error: load of misaligned address 0x7f732802c611 for type 'int', which requires 4 byte alignment
0x7f732802c611: note: pointer points here
00 00 00 00 43 02 00 00 dd 00 00 00 53 02 00 00 c1 bd f0 ff 00 00 80 bf 00 00 80 bf 00 00 80 3f
^
/home/dtou/Allen/standalone/host/event_model/MC/src/MCEvent.cpp:96:20: runtime error: load of misaligned address 0x7f732802c615 for type 'int', which requires 4 byte alignment
0x7f732802c615: note: pointer points here
43 02 00 00 dd 00 00 00 53 02 00 00 c1 bd f0 ff 00 00 80 bf 00 00 80 bf 00 00 80 3f 08 00 00 00
^
device/velo/retinacluster_decoding/src/DecodeRetinaClusters.cu
/home/dtou/Allen/standalone/device/velo/retinacluster_decoding/src/DecodeRetinaClusters.cu:155:46: runtime error: left shift of negative value -19595
The first error was previously reported in #263 (closed).