facing problem in running geogrid as Segmentation fault

amiitrip24

New member
This is the error I am facing
Parsed 50 entries in GEOGRID.TBL
Processing domain 1 of 1
Processing XLAT and XLONG

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x2AF47241A467
#1 0x2AF47241AAAE
#2 0x2AF472EBE24F
#3 0x2AF472FE83F1
#4 0x2AF4724F8BB8
#5 0x2AF47241CF0A
#6 0x49F65E in ext_ncd_inquiry_
#7 0x433FB8 in __output_module_MOD_output_init
#8 0x4426CB in __process_tile_module_MOD_process_tile
Segmentation fault (core dumped)
 

Attachments

Please delete the line below as well as all the section of &domain_wizard

ref_x = 408.0,
ref_y = 334.0,

Then run geogrid.exe using the officially released WPS codes.
 
&share
wrf_core = 'ARW',
max_dom = 1,
start_date = '2024-12-01_00:00:00',
end_date = '2024-12-12_18:00:00',
interval_seconds = 21600,
io_form_geogrid = 2,
debug_level = 0,
/

&geogrid
parent_id = 1,
parent_grid_ratio = 1,
i_parent_start = 1,
j_parent_start = 1,
e_we = 816,
e_sn = 668,
geog_data_res = 'default',
dx = 9000,
dy = 9000,
map_proj = 'mercator',
ref_lat = 15,
ref_lon = 85,
truelat1 = 15,
truelat2 = 0,
stand_lon = 85,
geog_data_path = '/scratch/amittrip24/test/Build_WRF/WPS_GEOG',
/

&ungrib
out_format = 'WPS',
prefix = 'FILE',
/
this is what I run but still facing issues
 
Your namelist looks fine to me. However, You are trying to run a big case with grid numbers of 816 x 668. Insufficient memory may lead to Segmentation fault.

To make sure nothing is wrong with your codes, please reduce the grid number to, for example, 81x66, and keep all other options unchanged. Then rerun this case. if the smaller case works, we can know for sure that memory issue is the reason for the failure of your original big case.


Please try and let me know whether it works.
 
Let's start from a small case, i.e., please

(1) set the options below:

e_we = 70,
e_sn = 60,

(2) remove the following options:

ref_x = 350.0,
ref_y = 300.0,

Then rerun geogrid.exe. Let me know how it works. Thanks.
 
Let's start from a small case, i.e., please

(1) set the options below:

e_we = 70,
e_sn = 60,

(2) remove the following options:

ref_x = 350.0,
ref_y = 300.0,

Then rerun geogrid.exe. Let me know how it works. Thanks.
Hi, Ming,

I also has same issues,

./geogrid.exe Parsed 50 entries in GEOGRID.TBL
Processing domain 1 of 1
Processing XLAT and XLONG

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x7ff407653dcf in ???
#1 0x7ff4077846d4 in ???
#2 0x48a5c4 in ???
#3 0x425e24 in ???
#4 0x43c8a7 in ???
#5 0x40429f in ???
#6 0x7ff40763e25c in ???
#7 0x402ee9 in _start
at ../sysdeps/x86_64/start.S:120
#8 0xffffffffffffffff in ???
Segmentation fault (core dumped)


if i delete

ref_x = 350.0,
ref_y = 300.0,

the error is
./geogrid.exe
Parsed 50 entries in GEOGRID.TBL
Latitude of origin corner required as follows:
-90N <= lat1 < = 90.N
ERROR: MAP_INIT
MPICH Notice [Rank 0] [job id ] [Tue Jun 16 13:07:35 2026] [ln03] - Abort(0) (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 0) - process 0


do you have any idea of it, besides, i can use ./ubgrib.exe, so i think it is not the env issues.

Thanks!
 
Hi, Ming,

I also has same issues,

./geogrid.exe Parsed 50 entries in GEOGRID.TBL
Processing domain 1 of 1
Processing XLAT and XLONG

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x7ff407653dcf in ???
#1 0x7ff4077846d4 in ???
#2 0x48a5c4 in ???
#3 0x425e24 in ???
#4 0x43c8a7 in ???
#5 0x40429f in ???
#6 0x7ff40763e25c in ???
#7 0x402ee9 in _start
at ../sysdeps/x86_64/start.S:120
#8 0xffffffffffffffff in ???
Segmentation fault (core dumped)


if i delete

ref_x = 350.0,
ref_y = 300.0,

the error is
./geogrid.exe
Parsed 50 entries in GEOGRID.TBL
Latitude of origin corner required as follows:
-90N <= lat1 < = 90.N
ERROR: MAP_INIT
MPICH Notice [Rank 0] [job id ] [Tue Jun 16 13:07:35 2026] [ln03] - Abort(0) (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 0) - process 0


do you have any idea of it, besides, i can use ./ubgrib.exe, so i think it is not the env issues.

Thanks!
since this is a different issue can you open a new thread?

Include any namelists and log files from the steps you've done?
 
@ruxu

I am suspicious this is a machine issue. How did you compile WPS? If you compiled WPS in parallel mode, you need to run geogrid.exe with MPI command. The command ./geogrid.exe only works when you compile WPS in serial mode. Note that ungrib.exe only works in serial mode, no matter what mode you used to compile.
 
@ruxu

我怀疑这是机器问题。你是如何编译 WPS 的?如果你是用并行模式编译的,你需要使用 MPI 命令运行 geogrid.exe。./geogrid.exe 命令只有在串行模式下编译 WPS 时才能正常工作。请注意,无论你使用什么模式编译,ungrib.exe 都只能在串行模式下运行。
Hi, Ming

I suspect I did not install the model well...
 
Back
Top