Skip to content

Conversation

@Dr15Jones
Copy link
Contributor

PR description:

This solves a UBSAN compiler warning related to SiPixelGenErrorDBObjectReader. The member data was being read before it was ever set.

PR validation:

Compiled in UBSAN release and the warning no longer appears.

@Dr15Jones
Copy link
Contributor Author

Here is the code with the problem

SiPixelGenError genError(thePixelGenError);
// these are all 0 because qbin() was not run.
cout << " some values " << genError.lorxwidth() << " " << genError.lorywidth() << " " << endl;

the constructor was not setting the values so the were undefined at the time of the printout.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32600/20636

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

CondFormats/SiPixelTransient

@ggovi, @perrotta, @cmsbuild, @jpata, @slava77 can you please review it and eventually sign? Thanks.
@VinInn, @OzAmram, @ferencek, @mmusich, @dkotlins, @seemasharmafnal, @tvami this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

-1

Failed Tests: ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-54febf/11955/summary.html
CMSSW: CMSSW_11_3_X_2021-01-04-1100/slc7_amd64_gcc900

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-54febf/11955/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-54febf/11955/git-merge-result

Clang Build

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-01-04-1100/src/CondFormats/SiPixelTransient/src/SiPixelGenError.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-01-04-1100/src/CondFormats/SiPixelTransient/src/SiPixelTemplate2D.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-01-04-1100/src/CondFormats/SiPixelTransient/src/SiPixelTemplate.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-01-04-1100/src/CondFormats/SiPixelTransient/src/SiPixelUtils.cc
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-01-04-1100/src/CondFormats/SiPixelTransient/src/SiPixelGenError.cc:32:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-01-04-1100/src/CondFormats/SiPixelTransient/interface/SiPixelGenError.h:122:15: error: excess elements in scalar initializer
        fbin_{{0, 0, 0}},
              ^ ~~~~~~~
1 error generated.
gmake: *** [tmp/slc7_amd64_gcc900/src/CondFormats/SiPixelTransient/src/CondFormatsSiPixelTransient/SiPixelGenError.cc.o] Error 1
>> Entering Package RecoParticleFlow/Configuration


This solves a UBSAN compiler warning related to SiPixelGenErrorDBObjectReader.
@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32600/20637

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

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

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 5, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-54febf/11956/summary.html
CMSSW: CMSSW_11_3_X_2021-01-04-1100/slc7_amd64_gcc900

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-54febf/11956/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-54febf/11956/git-merge-result

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2716967
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2716944
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 156 log files, 37 edm output root files, 37 DQM output files

@slava77
Copy link
Contributor

slava77 commented Jan 5, 2021

+1

for #32600 76133f8

  • technical, in line with the description
  • jenkins tests pass

@Dr15Jones
Copy link
Contributor Author

ping @cms-sw/db-l2

@ggovi
Copy link
Contributor

ggovi commented Jan 14, 2021

+1

@cmsbuild
Copy link
Contributor

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, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Jan 14, 2021

+1

@cmsbuild cmsbuild merged commit e7c2b84 into cms-sw:master Jan 14, 2021
@Dr15Jones Dr15Jones deleted the fixSiPixelGenError branch January 14, 2021 14:44
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.

5 participants