COSIMA / cice5

Clone of The Los Alamos sea ice model (CICE) with ACCESS drivers. See https://github.com/CICE-Consortium/CICE-svn-trunk/tree/cice-5.1.2
4 stars 13 forks source link

Valgrind error in CICE #19

Open nichannah opened 6 years ago

nichannah commented 6 years ago

I have been running valgrind on access-om2 to track down a segfault. Currently I am getting the following error message before a crash. I don't know if this is triggering the crash so may be a general problem with CICE.

==31611== Invalid write of size 8 ==31611== at 0x50C326: ice_gather_scatter_mp_scatter_globaldbl (ice_gather_scatter.f90:959) ==31611== by 0x5AFA4F: ice_read_write_mp_ice_read_ncxy (ice_read_write.f90:1163) ==31611== by 0x41E93A: cpl_forcing_handler_mp_get_ustar (cpl_forcing_handler.f90:251) ==31611== by 0x40F5EC: cice_init (CICE_InitMod.f90:199) ==31611== by 0x40F5EC: cice_initmod_mp_ciceinitialize (CICE_InitMod.f90:63) ==31611== by 0x40C841: MAIN__ (CICE.f90:56) ==31611== by 0x40C7DD: main (in /short/x77/nah599/access-om2/bin/cice_auscom_1440x1080_480p_maxblocks_4.exe) ==31611== Address 0x2c6fdc80 is 8 bytes after a block of size 22,312 alloc'd ==31611== at 0x4C2A8FA: malloc (vg_replace_malloc.c:298) ==31611== by 0x9279AB: _mm_malloc (in /short/x77/nah599/access-om2/bin/cice_auscom_1440x1080_480p_maxblocks_4.exe) ==31611== by 0x8A4E07: for_alloc_allocatable (in /short/x77/nah599/access-om2/bin/cice_auscom_1440x1080_480p_maxblocks_4.exe)

The command line I used to run this was:

mpirun --mca orte_base_help_aggregate 0 -wdir /short/x77/nah599/access-om2/work/025deg_jra55_ryf/atmosphere -np 1 /short/public/access-om2/bin/yatm_c2868e5b.exe : -wdir /short/x77/nah599/access-om2/work/025deg_jra55_ryf/ocean -np 1455 /short/x77/nah599/access-om2/bin/fms_ACCESS-OM_quantify_load_imbalance.x : -wdir /short/x77/nah599/access-om2/work/025deg_jra55_ryf/ice -np 393 -x LD_PRELOAD=/home/599/nah599/more_home/usr/local/lib/valgrind/libmpiwrap-amd64-linux.so /home/599/nah599/more_home/usr/local/bin/valgrind --main-stacksize=200000000 --max-stackframe=200000000 --error-limit=no --freelist-vol=10000000 --suppressions=/short/v45/nah599/more_home/mom-run-scheduler/valgrind_suppressions.txt /short/x77/nah599/access-om2/bin/cice_auscom_1440x1080_480p_maxblocks_4.exe