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

Remove UBSAN flags from CondFormats/HcalObjects #27312

Merged
merged 1 commit into from Jun 25, 2019

Conversation

Dr15Jones
Copy link
Contributor

PR description:

CondFormats/HcalObjects directly uses boost serialization which is known to cause problems when compiled with UBSAN.

PR validation:

The code now compiles and links using CMSSW_11_0_UBSAN_X_2019-06-21-2300 IB. Previously we were getting a segmentation fault during the edmCheckClassVersion call.

@cmsbuild cmsbuild added this to the CMSSW_11_0_X milestone Jun 22, 2019
@Dr15Jones
Copy link
Contributor Author

This is related to #26669

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@Dr15Jones
Copy link
Contributor Author

@smuzaffar I had to directly use REM_CXXFLAGS instead of being able to say 'exclude from UBSAN'. Is this how you ultimately want to handle this case?

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27312/10541

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

CondFormats/HcalObjects

@christopheralanwest, @tocheng, @cmsbuild, @franzoni, @tlampen, @ggovi, @pohsun can you please review it and eventually sign? Thanks.
@mmusich, @tocheng, @seemasharmafnal this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos 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 Jun 22, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/1110/console Started: 2019/06/22 13:01

@Dr15Jones
Copy link
Contributor Author

Note, this is the only package that directly uses boost serialization. Is this how the db L2's want this to be?

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-085790/1110/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3254598
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3254263
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

@smuzaffar
Copy link
Contributor

@Dr15Jones , you do not need to do this. SCRAM now does not pass UBSAN flags when boost serialization file (Serialization.cc) is compiled.

@Dr15Jones
Copy link
Contributor Author

@smuzaffar This case is different. For the rest of the CondFormats packages, they are only indirectly dependent on boost serialization. That is, the code in the package itself does not depend on boost serialization, it is only the autogenerated Serialization.cc file which has the dependency.

CondFormats/HcalObjects is different. The source code in the package itself directly calls boost serialization macros. Under UBSAN those macros are causing segmentation faults when running edmCheckClassVersion (which is what was also happening to the other packages because of Serialization.cc). So for this case we need to explicitly stop UBSAN from compiling the package source directly.

@smuzaffar
Copy link
Contributor

@Dr15Jones , in this case then please use

<ifrelease name="_UBSAN_">
  <flags   REM_CXXFLAGS="-fno-omit-frame-pointer -fsanitize=undefined"/>
</ifrelease>

@cmsbuild
Copy link
Contributor

Pull request #27312 was updated. @christopheralanwest, @tocheng, @cmsbuild, @franzoni, @tlampen, @ggovi, @pohsun can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 24, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/1126/console Started: 2019/06/24 06:43

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-085790/1126/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3254598
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3254261
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

@fabiocos
Copy link
Contributor

@ggovi @christopheralanwest @tocheng could you please check?

@ggovi
Copy link
Contributor

ggovi commented Jun 25, 2019

+1

@pohsun
Copy link

pohsun commented Jun 25, 2019

+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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 987f88f into cms-sw:master Jun 25, 2019
@Dr15Jones Dr15Jones deleted the ubsanCondFormatsHcalObjects branch June 25, 2019 19:42
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.

None yet

6 participants