Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Segmentation fault while processing the field

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.


New member
I'm trying to run MPAS on my PC with Ubuntu 16.04, GNU 5,4.0, NetCDF, PNetCDF 1.8.1, PIO2. While I run the example 'supercell' and use
processing the field, it shows
Segmentation fault(core dumped)
debug by gdb, shows
#0  0x00000000005aa156 in box_rearrange_create ()
#1  0x00000000005a2d7f in PIOc_InitDecomp ()
#2  0x0000000000561871 in __piolib_mod_MOD_pio_initdecomp_internal ()
#3  0x000000000056104a in __piolib_mod_MOD_pio_initdecomp_dof_i8 ()
#4  0x00000000004e1449 in __mpas_io_MOD_mpas_io_set_var_indices ()
#5  0x0000000000550256 in __mpas_io_streams_MOD_mpas_streamaddfield_generic ()
#6  0x000000000055a4cc in __mpas_io_streams_MOD_mpas_streamaddfield_2dinteger()
#7  0x00000000004ea38e in __mpas_stream_manager_MOD_build_stream ()
#8  0x00000000004f0892 in __mpas_stream_manager_MOD_read_stream.constprop.3 ()
#9  0x00000000004f253e in __mpas_stream_manager_MOD_mpas_stream_mgr_read ()
#10 0x000000000042ef07 in __init_atm_core_MOD_init_atm_core_init ()
#11 0x0000000000406fdb in __mpas_subdriver_MOD_mpas_init ()
#12 0x0000000000405957 in main ()

Any help on this would be greatly appreciated!


  • log.init_atmosphere.0000.out.txt
    5 KB · Views: 60
I was able to reproduce this locally, and the issue looks like it could be the allocation of what could be large variables on the stack in the box_rearrange_create routine. Does it help if you remove all stack size limits? For example, in tcsh you could try
limit stacksize unlimited
or in bash you could try
ulimit -s unlimited