Repository navigation
Commit a61827d
committed
EMCAL: initialise the MC kinematics reader pointer in the digitizer
DigitizerSpec::mcReader had no initialiser, and run() only creates the
reader when the pointer is null. When the memory the (large) spec is
allocated in is not zeroed, the reader is never created and
getMCEventHeader() dereferences garbage, crashing the digitizer at the
first collision accepted by the CTP minimum-bias trigger. Seen on macOS
in about one run in three; Linux likely hides it because large
allocations come from fresh zeroed pages.
Also initialise mCTPConfig, which follows the same pattern.1 parent 92368c4 commit a61827d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments