Build RecHitTools per event to fix cross-stream double-free#51529
Conversation
…uble-free The five global associator producers mutated a shared RecHitTools member via setGeometry() inside const produce(), racing across streams and giving an ASAN double-free on the RecHitTools internal vector buffer. Build RecHitTools as a per-event local and pass it to the impl instead. LCToSimTS never used it, so the geometry is dropped there.
|
cms-bot internal usage |
|
type bugfix |
|
@cmsbuild please test |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-51529/50248
|
|
A new Pull Request was created by @felicepantaleo for master. It involves the following packages:
@civanch, @kpedro88, @mdhildreth can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
+1 Size: This PR adds an extra 24KB to repository Comparison SummarySummary:
|
|
+1 |
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @ftenchini, @mandrenguyen, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
The five global associator producers mutated a shared RecHitTools member via setGeometry() inside const produce(), racing across streams and giving an ASAN double-free on the RecHitTools internal vector buffer.
fixes #51380