Closed akohlmey closed 3 years ago
@sjplimp can you please verify, if the authors of this code are still maintaining their contribution to LAMMPS? This code has not seen any updates by the authors since it original integration 5 years ago. An this issue is now open for 2 1/2 years. All changes since have been to keep it consistent with the rest of LAMMPS.
Summary
There seems to be a memory leak in the USER-MGPT package
Type of Issue
Bug report
Detailed Description (Enhancement Suggestion)
When running the example inputs for pair style mgpt with an executable compiled with GCC using the -fsanitize=address flag, the following report of a memory leak is produced.
This looks like potential parameter data is not freed when the pair style is deleted. This is not a big issue for normal inputs with a single, but may become a problem for people running many short computations with different settings via loops or the library interface.
LAMMPS Version (Bug Report)
6 July 2017
Expected Behavior (Bug Report)
All memory allocated by LAMMPS classes should be freed
Actual Behavior (Bug Report)
The instrumented executable reports that over 100kB are leaked each for the example inputs
Steps to Reproduce (Bug Report)
Compile LAMMPS using a recent GCC g++ compiler (tested with version 6.x) and add -fsanitize=address to the compiler and linker flags. Then run the input decks in
examples/USER/mgpt
Further Information, Files, and Links
n/a