E3SM-Project / E3SM-Project/E3SM

Potential memory leaks in MPAS CICE

Open
#1,995 0 comments 0 reactions 1 assignee Claimed by @mfdeakin-sandia View on GitHub
Dominant language
Fortran
Stars
440
Forks
481
Avg merge
4d 6h
Merged PRs (30d)
36

Description

Running ~/ACME/cime/scripts/create_newcase --case f_ompi_sanitize_test --compset F1850C5AV1C-04P2 --res ne4_ne4 --pecount S --compiler gnu --mach anvil --mpilib openmpi with CAM with the address sanitizer, address sanitizer reports a superset ([awcycl_memory_leaks.txt](https://github.com/ACME-Climate/ACME/files/1569887/awcycl_memory_leaks.txt)) of the leaks below:
```
#2 0x2a977ce in __mpas_block_creator_MOD_mpas_block_creator_finalize_block_phase2 /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ice/source/framework/mpas_block_creacomponent_mod_MOD_component_init_cc /blues/gpfs/home/mdeakin/ACME/cime/src/drivers/mct/main/component_mod.F90:222
#2 0x2a9db93 in __mpas_block_creator_MOD_mpas_block_creator_finalize_block_phase1 /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ice/source/framework/mpas_block_creator.fakin/ACME/cime/src/drivers/mct/main/component_mod.F90:222
#2 0x2aa26f2 in __mpas_block_creator_MOD_mpas_block_creator_build_edge_halos /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ice/soueakin/ACME/cime/src/drivers/mct/main/component_mod.F90:222
#2 0x2aae3b7 in __mpas_block_creator_MOD_mpas_block_creator_build_0_and_1halo_edge_fields /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ice/source/framework/mpas_blos/home/mdeakin/ACME/cime/src/drivers/mct/main/component_mod.F90:669
#2 0x2adc2b2 in __mpas_io_streams_MOD_put_get_field_atts /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ice/source/frameworkme/mdeakin/ACME/cime/src/drivers/mct/main/component_mod.F90:222
#2 0x2adc2b2 in __mpas_io_streams_MOD_put_get_field_atts /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ice/source/framework/mpas_iOD_component_init_cc /blues/gpfs/home/mdeakin/ACME/cime/src/drivers/mct/main/component_mod.F90:222
#2 0x45e490e in ocn_generate_forcing_subpool_ecosysseaicecoupling /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ocn/source/core_ocean/driver/mpas_ocn_c/blues/gpfs/home/mdeakin/ACME/cime/src/drivers/mct/main/cime_driver.F90:23
#2 0x46cbbc6 in ocn_generate_forcing_subpool_dmsseaicecoupling /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ocn/source/core_ocean/driver/mpas_ocn_core_ix42907b in main /blues/gpfs/home/mdeakin/ACME/cime/src/drivers/mct/main/cime_driver.F90:23
#2 0x485b9bc in ocn_generate_pool_landiceinit /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ocn/source/core_ocean/driver/mpas_ocn_corekin/ACME/cime/src/drivers/mct/main/cime_driver.F90:23
#2 0x485bb7f in ocn_generate_pool_landiceinit /lcrc/group/acme/mdeakin/acme_scratch/sanitize_test/bld/ocn/source/core_ocean/driver/mpas_mod_MOD_cime_init /blues/gpfs/home/mdeakin/ACME/cime/src/drivers/mct/main/cime_comp_mod.F90:1198
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.