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

Default initialize PTrajectoryStateOnDet members #13928

Merged

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Apr 5, 2016

GCC 6.0.0 (r234661) we might create PTrajectoryStateOnDet without
initialized members. The patch adds the defaults which later can be
modified by member initializer list in ctor.

RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[10]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[11]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[12]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[13]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[14]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[1]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[2]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[4]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[5]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[6]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[7]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[8]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[9]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::thePt' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch

GCC 6.0.0 (r234661) we might create PTrajectoryStateOnDet without
initialized members. The patch adds the defaults which later can be
modified by member initializer list in ctor.

    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[10]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[11]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[12]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[13]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[14]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[1]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[2]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[4]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[5]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[6]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[7]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[8]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::theLocalErrors[9]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc:282:20: error: 'seedVoid.TrajectorySeed::tsos_.PTrajectoryStateOnDet::thePt' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

A new Pull Request was created by @davidlt for CMSSW_8_1_X.

It involves the following packages:

DataFormats/TrajectoryState

@cmsbuild, @cvuosalo, @slava77, @davidlange6 can you please review it and eventually sign? Thanks.
@makortel, @gpetruc, @VinInn this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@slava77
Copy link
Contributor

slava77 commented Apr 5, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/12173/console

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

-1
Tested at: ebe1937
I found an error when building:

@@@@ ----> OK  EDM Class Version 
>> Checking EDM Class Transients in libDataFormatsBeamSpot.so
In file included from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSPCoreLogic.h:10:0,
                 from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSectorProcessor.h:20,
                 from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/src/CSCTFSectorProcessor.cc:1:
/build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/poison/L1Trigger/CSCTrackFinder/src/core_2010_01_22/vpp_generated.h:1:2: error: #error THIS FILE HAS BEEN REMOVED FROM THE PACKAGE.
 #error THIS FILE HAS BEEN REMOVED FROM THE PACKAGE.
  ^
In file included from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSPCoreLogic.h:11:0,
                 from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/interface/CSCTFSectorProcessor.h:20,
                 from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-04-04-1100/src/L1Trigger/CSCTrackFinder/src/CSCTFSectorProcessor.cc:1:


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

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
6eb160c
e7693de
bd318d6
ae80dc1
a1b87ee
a1a7545
8e18df4
11c7a67
2c103d5
40cddb8
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13928/12173/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13928/12173/git-merge-result

@slava77
Copy link
Contributor

slava77 commented Apr 5, 2016

@cmsbuild please test
only shared_ptr is in the way now.
This PR could have been made in an existing IB, otherwise test availability blocks integration by at least half a day.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

-1

Tested at: ebe1937
I found errors in the following unit tests:

---> test runtestTqafTopEventSelection had ERRORS

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

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
6eb160c
e7693de
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13928/12176/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13928/12176/git-merge-result

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2016

@davidlt
Copy link
Contributor Author

davidlt commented Apr 10, 2016

ping^1

@davidlt
Copy link
Contributor Author

davidlt commented Apr 13, 2016

ping^2

Are there any objections for the default values?

@cmsbuild
Copy link
Contributor

-1

Tested at: ebe1937
I found errors in the following unit tests:

---> test runtestTqafTopEventSelection had ERRORS

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13928/12367/summary.html
'List

@cmsbuild
Copy link
Contributor

@cvuosalo
Copy link
Contributor

+1

For #13928 ebe1937

Initialzing PTrajectoryStateOnDet members that had been left uninitialized. There should be no change in monitored quantities.

The code fix is satisfactory, and Jenkins tests against baseline CMSSW_8_1_X_2016-04-13-2300 show no significant differences, as expected.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (but tests are reportedly failing). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

@davidlange6 davidlange6 merged commit 157f047 into cms-sw:CMSSW_8_1_X Apr 14, 2016
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

5 participants