-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Prevent copy construction of TrackerGeometry
#41901
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41901/35843
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
de93849
to
49dde19
Compare
49dde19
to
6486f5e
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41901/35845
|
A new Pull Request was created by @mmusich (Marco Musich) for master. It involves the following packages:
@civanch, @Dr15Jones, @bsunanda, @makortel, @mdhildreth, @cmsbuild, @AdrianoDee, @srimanob, @saumyaphor4252, @tvami, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
6486f5e
to
d65073f
Compare
I did rebase, just in order to execute tests and see if there are other problems with this approach, though this PR as is, is not viable (see #41901 (comment) and following). |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41901/35872
|
-1 Failed Tests: Build BuildI found compilation error when building: from /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02790/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_2_X_2023-06-20-1100/src/FWCore/Framework/interface/one/EDAnalyzer.h:24, from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_2_X_2023-06-20-1100/src/Alignment/CommonAlignmentMonitor/plugins/AlignmentStats.h:4, from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_2_X_2023-06-20-1100/src/Alignment/CommonAlignmentMonitor/plugins/AlignmentStats.cc:1: /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02790/el8_amd64_gcc11/external/gcc/11.2.1-f9b9dfdd886f71cd63f5538223d8f161/include/c++/11.2.1/bits/unique_ptr.h: In instantiation of 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = TrackerGeometry; _Args = {const TrackerGeometry&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr]': /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_2_X_2023-06-20-1100/src/Alignment/CommonAlignmentMonitor/plugins/AlignmentStats.cc:91:57: required from here /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02790/el8_amd64_gcc11/external/gcc/11.2.1-f9b9dfdd886f71cd63f5538223d8f161/include/c++/11.2.1/bits/unique_ptr.h:962:30: error: use of deleted function 'TrackerGeometry::TrackerGeometry(const TrackerGeometry&)' 962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_2_X_2023-06-20-1100/src/Alignment/CommonAlignmentMonitor/plugins/AlignmentStats.h:13, from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_2_X_2023-06-20-1100/src/Alignment/CommonAlignmentMonitor/plugins/AlignmentStats.cc:1: /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_2_X_2023-06-20-1100/src/Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h:59:3: note: declared here |
@cmsbuild, please test
|
-1 Failed Tests: UnitTests RelVals AddOn Unit TestsI found errors in the following unit tests: ---> test testRecoMETMETProducers had ERRORS RelVals
Expand to see more relval errors ...AddOn Tests
|
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-239e69/33316/summary.html Comparison SummarySummary:
|
+1 |
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, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
In response to #41895.
delete
theTrackerGeometry
copy constructor and assignment operator, and default themove
constructor and assignment operator in order to avoid undefined behaviour (doubledelete
, usually leading to a crash) .PR validation:
cmssw
compiles.If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Not a backport, perhaps to be backported?