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
[GEOMETRY] fixes UBSAN build errors #30021
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30021/15713
|
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages: Geometry/HcalTowerAlgo @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
+1 |
Comparison job queued. |
+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. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2) |
Comparison is ready Comparison Summary:
|
int subdet_; | ||
}; | ||
|
||
HcalCellParameterDump::HcalCellParameterDump(const edm::ParameterSet& iConfig) { | ||
subdet_ = std::min(detMax_, std::max(iConfig.getParameter<int>("SubDetector"), 1)); | ||
subdet_ = std::min(detMax_, std::max(subdet_, 1)); | ||
subdet_ = std::min(HcalCellParameterDump::detMax_, std::max(iConfig.getParameter<int>("SubDetector"), 1)); |
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.
@smuzaffar Why is the HcalCellParameterDump::
qualification necessary? There is no other detMax_
that could cause confusion, and the constructor certainly has access to its own data members.
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.
you are right @cvuosalo , I started with adding the namespace but then it turned out the constexpr
should fix the issue. I have updated the PR
The code-checks are being triggered in jenkins. |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30021/15738
|
The tests are being triggered in jenkins. |
Pull request #30021 was updated. @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild can you please check and sign again. |
+1 |
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. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
Fixes for UBSAN IBs build errors
https://cmssdt.cern.ch/SDT/cgi-bin/showBuildLogs.py/slc7_amd64_gcc820/www/fri/11.2.UBSAN-fri-23/CMSSW_11_2_UBSAN_X_2020-05-22-2300