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

Valgrind error in CICE #19

Open
nichannah opened this issue Jun 28, 2018 · 0 comments
Open

Valgrind error in CICE #19

nichannah opened this issue Jun 28, 2018 · 0 comments

Comments

@nichannah
Copy link
Contributor

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_global_dbl_ (ice_gather_scatter.f90:959)
==31611== by 0x5AFA4F: ice_read_write_mp_ice_read_nc_xy_ (ice_read_write.f90:1163)
==31611== by 0x41E93A: cpl_forcing_handler_mp_get_u_star_ (cpl_forcing_handler.f90:251)
==31611== by 0x40F5EC: cice_init (CICE_InitMod.f90:199)
==31611== by 0x40F5EC: cice_initmod_mp_cice_initialize_ (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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant