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

Memory leak from HepPDT::ParticleDataTable::particle #25291

Closed
Dr15Jones opened this issue Nov 19, 2018 · 8 comments
Closed

Memory leak from HepPDT::ParticleDataTable::particle #25291

Dr15Jones opened this issue Nov 19, 2018 · 8 comments

Comments

@Dr15Jones
Copy link
Contributor

valgrind has found the following call to be leaking memory:

ParticleData const * particle = theParticleDataTable->particle( hit->particleType() );

I traced the leak to line 28 of HeavyIonUnknownID::processUnknownID
http://lcgapp.cern.ch/project/simu/HepPDT/HepPDT.3.03.00/html/HeavyIonUnknownID_8cc-source.html

CMS specifies to use that class here

auto pdt = std::make_unique<PDT>( "PDG table" , new HepPDT::HeavyIonUnknownID );

@cmsbuild
Copy link
Contributor

A new Issue was created by @Dr15Jones Chris Jones.

@davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

assign simulation, generator

@cmsbuild
Copy link
Contributor

New categories assigned: simulation

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

@kpedro88
Copy link
Contributor

assign generators

@cmsbuild
Copy link
Contributor

New categories assigned: generators

@perrozzi,@alberto-sanchez,@qliphy,@efeyazgan you have been requested to review this Pull request/Issue and eventually sign? Thanks

@Dr15Jones
Copy link
Contributor Author

A work around is in #25298

I did contact the original author of HepPDT with the problem.

@fabiocos
Copy link
Contributor

@Dr15Jones your fix has been merged in CMSSW_10_4_X_2018-11-25-0000. Until an external update is possible, I assume this is the solution to this issue.

@Dr15Jones
Copy link
Contributor Author

@fabiocos I assume this is the solution to this issue.

Yes

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

4 participants