New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix thread safety of EgammaHLTPixelMatchElectronProducers #25589
Fix thread safety of EgammaHLTPixelMatchElectronProducers #25589
Conversation
EgammaHLTPixelMatchElectronAlgo is not thread safe and can not be used as a member function of a edm::global module. Converting EgammaHLTPixelMatchElectronProducers to a stream module fixes the problem. Also did some simple code modernization of the module.
The code-checks are being triggered in jenkins. |
This problem showed up as a double delete in the ASAN report. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25589/7832 |
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: RecoEgamma/EgammaHLTProducers @Martin-Grunewald, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
Wait, wouldn't it be better to fix At the same time, wouldn't it be better to have the |
@fwyzard , it would probably be better to delete the code entirely, its not run in the HLT any more since 2016 and the new code should be able to reproduce the old code behaviour (although this was not validated and would need to be first). |
@Sam-Harper this code is run in the nightly RelVals which is where the problem was uncovered. If it is to be removed, the effected workflows would need to be updated with the new module that does the same work. |
Thanks @Dr15Jones . Must be running a pre-2017 menu. Indeed this is part of the reason why this module hasnt been removed yet (and thanks for fixing btw). Something to discuss with the HLT group what we want to do here (leave an old piece of fairly nasty code which has a maintenance burden so we can continue to run old menus in new releases or update those old menus to use the new code). |
@Sam-Harper thanks for the comment. |
+1 |
@Sam-Harper
|
Thank you for the correction. Sorry, I spoke to fast, I thought this was the pixel matching but is the maker of pixel matched electrons. Its not entirely clear to me that any path actually uses it though but it is run. |
EgammaHLTPixelMatchElectronAlgo is not thread safe and can not be used as a member function of a edm::global module. Converting EgammaHLTPixelMatchElectronProducers to a stream module fixes the problem.
Also did some simple code modernization of the module.