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 two memory leaks in pixel and strip digitizers #25294

Merged
merged 1 commit into from
Nov 24, 2018

Conversation

makortel
Copy link
Contributor

A valgrind log from @Dr15Jones pointed to a memory leak in pixel and strip digitizers. The function StorePileupInformation() is called from MixingModule::doPileup() once per (signal) event.

The minimal fix is to use std::unique_ptr.

Tested in 10_4_0_pre2, no changes expected.

@mdhildreth @Dr15Jones

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

SimTracker/SiPixelDigitizer
SimTracker/SiStripDigitizer

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@echabert, @pieterdavid, @GiacomoSguazzoni, @rovere, @VinInn, @prolay, @dkotlins, @ebrondol, @mmusich, @threus, @dgulhan 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

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 19, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/31744/console Started: 2018/11/19 23:27

@cmsbuild
Copy link
Contributor

-1

Tested at: 5805425

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25294/31744/summary.html

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

I found compilation error when building:

>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/PreMixingSiPixelWorker.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizerAlgorithm.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/SealModule.cc 
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizer.cc: In member function 'virtual void cms::SiPixelDigitizer::finalizeEvent(edm::Event&, const edm::EventSetup&)':
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizer.cc:254:38: error: no match for 'operator=' (operand types are 'std::unique_ptr' and 'PileupMixingContent*')
     PileupInfo_ = getEventPileupInfo();
                                      ^
In file included from /cvmfs/cms-ib.cern.ch/nweek-02551/slc6_amd64_gcc700/external/gcc/7.0.0-omkpbe2/include/c++/7.3.1/memory:80:0,
                 from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_4_X_2018-11-19-1100/src/SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizer.cc:22:
/cvmfs/cms-ib.cern.ch/nweek-02551/slc6_amd64_gcc700/external/gcc/7.0.0-omkpbe2/include/c++/7.3.1/bits/unique_ptr.h:281:7: note: candidate: std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = PileupMixingContent; _Dp = std::default_delete]

  • Clang:

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

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

See details on the summary page.

@cmsbuild
Copy link
Contributor

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

@makortel
Copy link
Contributor Author

Ok, so I forgot to compile myself... Closing while doing that.

@makortel makortel closed this Nov 19, 2018
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #25294 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again.

@makortel
Copy link
Contributor Author

@cmsbuild, please test

Should compile now...

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 20, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/31771/console Started: 2018/11/20 19:17

@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-25294/31771/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3013311
  • DQMHistoTests: Total failures: 4
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3013110
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 134 log files, 14 edm output root files, 32 DQM output files

@civanch
Copy link
Contributor

civanch commented Nov 24, 2018

+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 b5f4c99 into cms-sw:master Nov 24, 2018
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

4 participants