Skip to content

Bug: memory leak in integrated test case 919_OF_out_elf #5207

@kirk0830

Description

@kirk0830

Describe the bug

=================================================================
==136309==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4816 byte(s) in 7 object(s) allocated from:
#0 0x7fbf098b9887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7fbf08ae8bc6 in ompi_op_base_op_select (/lib/x86_64-linux-gnu/libmpi.so.40+0xd6bc6)

Direct leak of 4816 byte(s) in 7 object(s) allocated from:
#0 0x7fbf098b9887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7fbec6f624fb ()

Direct leak of 4096 byte(s) in 1 object(s) allocated from:
#0 0x7fbf098bb357 in operator new[](unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:102
#1 0x560f9891dc31 in KEDF_vW::tau_vw(double const* const*, ModulePW::PW_Basis*, double*) /__w/abacus-develop/abacus-develop/source/module_hamilt_pw/hamilt_ofdft/kedf_vw.cpp:132
#2 0x560f98ab0bda in ModuleESolver::ESolver_OF::kinetic_energy_density(double**, double**, double**) /__w/abacus-develop/abacus-develop/source/module_esolver/esolver_of_interface.cpp:162
#3 0x560f98aabc58 in ModuleESolver::ESolver_OF::after_opt(int, UnitCell&) /__w/abacus-develop/abacus-develop/source/module_esolver/esolver_of.cpp:515
#4 0x560f98aabc58 in ModuleESolver::ESolver_OF::runner(int, UnitCell&) /__w/abacus-develop/abacus-develop/source/module_esolver/esolver_of.cpp:248
#5 0x560f98579a86 in Relax_Driver::relax_driver(ModuleESolver::ESolver*) /__w/abacus-develop/abacus-develop/source/module_relax/relax_driver.cpp:51
#6 0x560f985b39b4 in Driver::driver_run() /__w/abacus-develop/abacus-develop/source/driver_run.cpp:68
#7 0x560f985ac6ce in Driver::atomic_world() /__w/abacus-develop/abacus-develop/source/driver.cpp:186
#8 0x560f985b1a46 in Driver::init() /__w/abacus-develop/abacus-develop/source/driver.cpp:40
#9 0x560f97bcc77a in main /__w/abacus-develop/abacus-develop/source/main.cpp:42

Direct leak of 4096 byte(s) in 1 object(s) allocated from:
#0 0x7fbf098bb357 in operator new[](unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:102
#1 0x560f9891dc9f in KEDF_vW::tau_vw(double const* const*, ModulePW::PW_Basis*, double*) /__w/abacus-develop/abacus-develop/source/module_hamilt_pw/hamilt_ofdft/kedf_vw.cpp:133
#2 0x560f98ab0bda in ModuleESolver::ESolver_OF::kinetic_energy_density(double**, double**, double**) /__w/abacus-develop/abacus-develop/source/module_esolver/esolver_of_interface.cpp:162
#3 0x560f98aabc58 in ModuleESolver::ESolver_OF::after_opt(int, UnitCell&) /__w/abacus-develop/abacus-develop/source/module_esolver/esolver_of.cpp:515
#4 0x560f98aabc58 in ModuleESolver::ESolver_OF::runner(int, UnitCell&) /__w/abacus-develop/abacus-develop/source/module_esolver/esolver_of.cpp:248
#5 0x560f98579a86 in Relax_Driver::relax_driver(ModuleESolver::ESolver*) /__w/abacus-develop/abacus-develop/source/module_relax/relax_driver.cpp:51
#6 0x560f985b39b4 in Driver::driver_run() /__w/abacus-develop/abacus-develop/source/driver_run.cpp:68
#7 0x560f985ac6ce in Driver::atomic_world() /__w/abacus-develop/abacus-develop/source/driver.cpp:186
#8 0x560f985b1a46 in Driver::init() /__w/abacus-develop/abacus-develop/source/driver.cpp:40
#9 0x560f97bcc77a in main /__w/abacus-develop/abacus-develop/source/main.cpp:42

Expected behavior

No response

To Reproduce

No response

Environment

No response

Additional Context

No response

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).

Metadata

Metadata

Assignees

Labels

BugsBugs that only solvable with sufficient knowledge of DFT

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions