Skip to content
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

Merged
merged 2 commits into from
Sep 2, 2021

Conversation

abdoulline
Copy link

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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35068/24950

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @abdoulline (Salavat Abdullin) for master.

It involves the following packages:

  • DataFormats/CaloTowers (reconstruction)

@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rovere this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@mseidel42
Copy link
Contributor

Thanks a lot @abdoulline !

@slava77
Copy link
Contributor

slava77 commented Aug 30, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-63d5f7/18132/summary.html
COMMIT: d0fdb6d
CMSSW: CMSSW_12_1_X_2021-08-29-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35068/18132/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2686 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 4219
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2996111
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: found differences in 1 / 38 workflows

@abdoulline
Copy link
Author

abdoulline commented Aug 31, 2021

Rather enigmatic results in bin-by-bin DQM comparison for the only particular wf 11634.911 (DD4) :
https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_12_1_X_2021-08-29-2300+63d5f7/45071/dqm-histo-comparison-summary.html
massive changes include: ECAL/HCAL SimHits, Pixels etc... (?)

@slava77
Copy link
Contributor

slava77 commented Sep 1, 2021

@cms-sw/geometry-l2
is DD4 HEP workflow (again) expected to have some instabilities?

@slava77
Copy link
Contributor

slava77 commented Sep 1, 2021

@cmsbuild please test

@makortel
Copy link
Contributor

makortel commented Sep 1, 2021

@cms-sw/geometry-l2
is DD4 HEP workflow (again) expected to have some instabilities?

I saw this recently too, maybe it is time to open a dedicated issue #35109

Comment on lines 31 to 34
hadLvl1_(hcal_tp) {
subdet_ = HcalEmpty;
inHO_ = false;
inHBHEgap_ = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Author

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

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Author

@abdoulline abdoulline Sep 1, 2021

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) ...

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-63d5f7/18218/summary.html
COMMIT: d0fdb6d
CMSSW: CMSSW_12_1_X_2021-08-31-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35068/18218/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000404
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000376
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35068/25009

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2021

Pull request #35068 was updated. @jpata, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Sep 1, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 2, 2021

-1

Failed Tests: RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-63d5f7/18233/summary.html
COMMIT: 0017f58
CMSSW: CMSSW_12_1_X_2021-09-01-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35068/18233/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

  • 136.72413136.72413_RunJetHT2016B_reminiaodUL+RunJetHT2016B_reminiaodUL+REMININANO_data2016UL_HIPM_met+HARVESTDR2_REMININANO_data2016UL_HIPM_met/step2_RunJetHT2016B_reminiaodUL+RunJetHT2016B_reminiaodUL+REMININANO_data2016UL_HIPM_met+HARVESTDR2_REMININANO_data2016UL_HIPM_met.log

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000404
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000376
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@abdoulline
Copy link
Author

#35121 temporarily disables wf 136.72413

I've re-run runTheMatrix.py -l 159.3 --ibeos --useInput all
in CMSSW_12_1_UBSAN_X_2021-08-27-2300 and it looks OK (as expected).

@slava77
Copy link
Contributor

slava77 commented Sep 2, 2021

+reconstruction

for #35068 0017f58

  • code changes are mostly technical in line with the PR description and the follow up review
  • jenkins tests pass and comparisons with the baseline show no differences (apparently the cases with the uninitialized values identified by UBSAN never made it to the monitored quantities)

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 2, 2021

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)

@qliphy
Copy link
Contributor

qliphy commented Sep 2, 2021

+1

@qliphy
Copy link
Contributor

qliphy commented Sep 2, 2021

merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants