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

Fix static variable problem in payload inspector code #38155

Merged
merged 1 commit into from Jun 1, 2022

Conversation

Dr15Jones
Copy link
Contributor

PR description:

ServiceRegistry::Operate objects are only ever supposed to be used on the stack.

PR validation:

The unit test testGetPayloadData which showed the problem passed.

Fixes #38141

ServiceRegistry::Operate objects are only ever supposed to be used
on the stack.
@Dr15Jones
Copy link
Contributor Author

The use of static for the ServiceToken isn't great, but I do not believe it will cause a memory problem. (Could be wrong)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38155/30301

  • 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:

  • CondCore/Utilities (db)

@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks.
@mmusich 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

@tvami
Copy link
Contributor

tvami commented May 31, 2022

@cmsbuild , please test

@tvami
Copy link
Contributor

tvami commented May 31, 2022

type bugfix

@mmusich
Copy link
Contributor

mmusich commented May 31, 2022

@cmsbuild , please test

shouldn't it be tested for ASAN_X?

@tvami
Copy link
Contributor

tvami commented May 31, 2022

@cmsbuild , please test for CMSSW_12_5_ASAN_X

  • good point Marco!

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a54a9e/25131/summary.html
COMMIT: 19466ae
CMSSW: CMSSW_12_5_X_2022-05-31-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38155/25131/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: 50
  • DQMHistoTests: Total histograms compared: 3648315
  • DQMHistoTests: Total failures: 8
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3648285
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Jun 1, 2022

+db

  • test pass
  • technical change

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2022

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2022

-1

Failed Tests: RelVals AddOn
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a54a9e/25135/summary.html
COMMIT: 19466ae
CMSSW: CMSSW_12_5_ASAN_X_2022-05-30-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38155/25135/install.sh to create a dev area with all the needed externals and cmssw changes.

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-a54a9e/25135/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a54a9e/25135/git-merge-result

RelVals

  • 35034.035034.0_TTbar_14TeV+2026D77+TTbar_14TeV_TuneCP5_GenSimHLBeamSpot14+DigiTrigger+RecoGlobal+HARVESTGlobal/step1_TTbar_14TeV+2026D77+TTbar_14TeV_TuneCP5_GenSimHLBeamSpot14+DigiTrigger+RecoGlobal+HARVESTGlobal.log

AddOn Tests

  • hlt_mc_PIoncmsDriver.py RelVal -s HLT:PIon,RAW2DIGI,L1Reco,RECO --mc --scenario=pp -n 10 --conditions auto:run3_mc_PIon --relval 9000,50 --datatier "RAW-HLT-RECO" --eventcontent FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT --customise=HLTrigger/Configuration/CustomConfigs.HLTRECO --era Run3 --processName=HLTRECO --filein file:RelVal_Raw_PIon_MC.root --fileout file:RelVal_Raw_PIon_MC_HLT_RECO.root : FAILED - time: date Wed Jun 1 03:53:47 2022-date Wed Jun 1 03:39:14 2022 s - exit: 256
  • hlt_mc_PRefcmsDriver.py RelVal -s HLT:PRef,RAW2DIGI,L1Reco,RECO --mc --scenario=pp -n 10 --conditions auto:run3_mc_PRef --relval 9000,50 --datatier "RAW-HLT-RECO" --eventcontent FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT --customise=HLTrigger/Configuration/CustomConfigs.HLTRECO --era Run3 --processName=HLTRECO --filein file:RelVal_Raw_PRef_MC.root --fileout file:RelVal_Raw_PRef_MC_HLT_RECO.root : FAILED - time: date Wed Jun 1 03:54:51 2022-date Wed Jun 1 03:39:15 2022 s - exit: 256

@qliphy
Copy link
Contributor

qliphy commented Jun 1, 2022

@Dr15Jones @tvami There are HLT AddOn failures in ASAN tests above, please have a look.
(adding also @cms-sw/hlt-l2 )

@Dr15Jones
Copy link
Contributor Author

The failures in the ASAN build are unrelated to this code change. The failures are in GsfElectronProducer and within OscarMTProducer, neither of which use this code change.

@qliphy
Copy link
Contributor

qliphy commented Jun 1, 2022

+1

@cmsbuild cmsbuild merged commit 6a9931b into cms-sw:master Jun 1, 2022
@Dr15Jones Dr15Jones deleted the fix_testGetPayloadData branch June 2, 2022 14:47
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.

[ASAN_X] heap-free-after-use in in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()
5 participants