-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[UBSAN] DataFormats/CaloTowers initialization fix #35068
[UBSAN] DataFormats/CaloTowers initialization fix #35068
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35068/24950
|
A new Pull Request was created by @abdoulline (Salavat Abdullin) for master. It involves the following packages:
@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Thanks a lot @abdoulline ! |
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-63d5f7/18132/summary.html Comparison SummarySummary:
|
Rather enigmatic results in bin-by-bin DQM comparison for the only particular wf 11634.911 (DD4) : |
@cms-sw/geometry-l2 |
@cmsbuild please test |
I saw this recently too, maybe it is time to open a dedicated issue #35109 |
hadLvl1_(hcal_tp) { | ||
subdet_ = HcalEmpty; | ||
inHO_ = false; | ||
inHBHEgap_ = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hadLvl1_(hcal_tp) { | |
subdet_ = HcalEmpty; | |
inHO_ = false; | |
inHBHEgap_ = false; | |
hadLvl1_(hcal_tp), | |
subdet_(HcalEmpty), | |
inHO_(false), | |
inHBHEgap_(false) { |
the initializer list is usually preferred over the body of the constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand your comment (suggestion).
Those 3 variables aren't constructior parameters, but private members.
Look similar to https://github.com/cms-sw/cmssw/pull/35064/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my suggestion is as displayed; a more proper phrasing is to use initialization in the member initializer list instead of using assignment in the constructor body
e.g. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c49-prefer-initialization-to-assignment-in-constructors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's perhaps even better to initialize in the member declaration part in CaloTower.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks. Mea culpa (misunderstanding) ...
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-63d5f7/18218/summary.html Comparison SummarySummary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35068/25009
|
@cmsbuild please test |
-1 Failed Tests: RelVals-INPUT RelVals-INPUT
Comparison SummarySummary:
|
#35121 temporarily disables wf 136.72413 I've re-run runTheMatrix.py -l 159.3 --ibeos --useInput all |
+reconstruction
|
This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
merge |
PR description:
Fixes DataFormats/CaloTowers/interface/CaloTower.h UBSAN issue #35033
PR validation:
runTheMatrix.py -l 159.3 --ibeos --useInput all
in CMSSW_12_1_UBSAN_X_2021-08-27-2300 on cmsdev25