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

Uninitialized, unused member variable in SimCluster #32905

Closed
kpedro88 opened this issue Feb 12, 2021 · 6 comments
Closed

Uninitialized, unused member variable in SimCluster #32905

kpedro88 opened this issue Feb 12, 2021 · 6 comments

Comments

@kpedro88
Copy link
Contributor

kpedro88 commented Feb 12, 2021

While running valgrind for something else, I noticed the attached report of uninitialized values.

Looking at https://github.com/cms-sw/cmssw/blob/master/SimDataFormats/CaloAnalysis/interface/SimCluster.h and https://github.com/cms-sw/cmssw/blob/master/SimDataFormats/CaloAnalysis/src/SimCluster.cc, it seems that some of the member variables are definitely left uninitialized by some of the constructors.

I particularly noticed

, because it's never set or used anywhere, as far as I can tell.

It would be best to ensure that all primitive member variables are initialized by all constructors, and unused content is removed (saves memory, disk space, etc.).

@kpedro88
Copy link
Contributor Author

assign simulation

@cmsbuild
Copy link
Contributor

New categories assigned: simulation

@mdhildreth,@civanch you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Issue was created by @kpedro88 Kevin Pedro.

@Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@civanch
Copy link
Contributor

civanch commented Dec 5, 2021

+1

was fixed with #36346

@civanch
Copy link
Contributor

civanch commented Aug 25, 2022

@kpedro88 , this issue may be closed now.

@cmsbuild
Copy link
Contributor

This issue is fully signed and ready to be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants