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 in WRF-Chem (real.exe)

Mukesh khadav

New member
Dear,
I am currently running a WRF-Chem simulation with two nested domains: d01 (9 km) and d02 (3 km). When running the model without chemistry, I was able to successfully generate the required files (wrfinput_d01 and wrfbdy_d01). However, when enabling chemistry, I encountered a segmentation fault error while executing ./real.exe.

Steps Taken Before the Error:

  1. Successfully completed geogrid.exe and ungrib.exe.
  2. Ran metgrid.exe without any apparent issues.
  3. Encountered an error immediately after running real.exe.

System and Model Details:

  • WRF-Chem Version: WPS 4.4, WRFV 4.4
  • Simulation Period: Start: 2010-01-01_00:00:00; End: 2010-01-07_18:00:00
Error Message:

STARTING WITH BACKGROUND CHEMISTRY
Subroutine input_chem_profile:

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

Backtrace for this error:
#0 0x14cb72b63d11 in ???
#1 0x14cb72b62ee5 in ???
#2 0x14cb727fc08f in ???
at /build/glibc-FcRMwW/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
#3 0x559893ccba5a in ???
#4 0x559893cd273a in ???
#5 0x55989192a8be in ???
#6 0x55989192b445 in ???
#7 0x55989191be32 in ???
#8 0x14cb727dd082 in __libc_start_main
at ../csu/libc-start.c:308
#9 0x55989191be6d in ???
#10 0xffffffffffffffff in ???
Segmentation fault (core dumped)

I have tried different chemistry schemes, but the issue persists. I would appreciate any insights from anyone who has faced a similar problem and found a solution.
I have attached my namelist.input file for reference.
Thank you for your time and expertise.
Best regards,
Mukesh
 

Attachments

  • namelist.input
    5.7 KB · Views: 0
I changed in chemistry (chem_opt=34) and it ran.
But after that when i am doing ./wrf.exe i am getting same error.


INITIALIZE THREE Noah LSM RELATED TABLES
Skipping over LUTYPE = USGS
LANDUSE TYPE = MODIFIED_IGBP_MODIS_NOAH FOUND 20 CATEGORIES
INPUT SOIL TEXTURE CLASSIFICATION = STAS
SOIL TEXTURE CLASSIFICATION = STAS FOUND 19 CATEGORIES
*********************************************************************
* PROGRAM:WRF-Chem V4.4 MODEL
No git found or not a git repository, git commit version not available.
* *
* PLEASE REPORT ANY BUGS TO WRF-Chem HELP at *
* *
* wrfchemhelp.gsd@noaa.gov *
* *
*********************************************************************

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

Backtrace for this error:
#0 0x153ac4fdad11 in ???
#1 0x153ac4fd9ee5 in ???
#2 0x153ac4c7308f in ???
at /build/glibc-FcRMwW/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
#3 0x5605710a3fe6 in ???
#4 0x560571f20d72 in ???
#5 0x5605716ebbec in ???
#6 0x5605711b91cc in ???
#7 0x5605711b07a7 in ???
#8 0x56056f033352 in ???
#9 0x56056ef9d427 in ???
#10 0x56056ef9ce5e in ???
#11 0x153ac4c54082 in __libc_start_main
at ../csu/libc-start.c:308
#12 0x56056ef9ce9d in ???
#13 0xffffffffffffffff in ???
Segmentation fault (core dumped)
 

Attachments

  • namelist.input
    5.7 KB · Views: 1
I have made some changes in the namelist (changed chem_opt = 114).

But while doing ./wrf.exe I am getting a new error:



At line 1753 of file module_sf_noahdrv.f90
Fortran runtime error: End of record

Error termination. Backtrace:
#0 0x14781b0bcd11 in ???
#1 0x14781b0bd859 in ???
#2 0x14781b0be53f in ???
#3 0x14781b300e00 in ???
#4 0x14781b30af16 in ???
#5 0x14781b30ef7b in ???
#6 0x14781b30fef6 in ???
#7 0x556b8d4d1fc3 in ???
#8 0x556b8ca41894 in ???
#9 0x556b8ca6b7c2 in ???
#10 0x556b8c2b3cd4 in ???
#11 0x556b8ba74bec in ???
#12 0x556b8b539746 in ???
#13 0x556b893bc352 in ???
#14 0x556b89326427 in ???
#15 0x556b89325e5e in ???
#16 0x14781ad36082 in __libc_start_main
at ../csu/libc-start.c:308
#17 0x556b89325e9d in ???
#18 0xffffffffffffffff in ???

I am attaching here a namelist.input file also.
 

Attachments

  • namelist.input
    5.8 KB · Views: 0
I have changed chemistry options in namelist file and that previous error resolved but now i am getting a new error:



Timing for Writing wrfout_d01_2010-01-01_00:00:00 for domain 1: 1.27455 elapsed seconds
mediation_integrate: med_read_wrf_chem_emissions: Read emissions for time 2010-01-01_00:00:00
mediation_integrate: med_read_wrf_chem_emissions: Open file wrfchemi_d01_2010-01-01_00:00:00
d01 2010-01-01_00:00:00 Error trying to read metadata
d01 2010-01-01_00:00:00 File name that is causing troubles = wrfchemi_d01_2010-01-01_00:00:00
d01 2010-01-01_00:00:00 You can try 1) ensure that the input file was created with WRF v4 pre-processors, or
d01 2010-01-01_00:00:00 2) use force_use_old_data=T in the time_control record of the namelist.input file
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 332
---- ERROR: The input file appears to be from a pre-v4 version of WRF initialization routines
-------------------------------------------
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 332
---- ERROR: The input file appears to be from a pre-v4 version of WRF initialization routines
-------------------------------------------
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL


How to resolve this error?
If someone faced this type of error then please suggest me the answer.
 

Attachments

  • namelist.input
    5.6 KB · Views: 2
Dear,
Actually i made some corrections in namelist and my error resolved.
But model suddenly stop and not moving forward.

d01 2010-01-01_00:00:00 rconst for i=1,nrconst_nonzero
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 -3.7126302199E+25 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 4.3650291714E-11 2.9319699446E-11 2.2000000433E-10
d01 2010-01-01_00:00:00 8.4249403650E-15 8.6104234281E-16 3.8173674291E-12 9.0756704452E-13
d01 2010-01-01_00:00:00 8.2836434110E-13 4.0205600452E-15 2.2902354347E-18 2.4742826806E-14
d01 2010-01-01_00:00:00 1.1974848882E-15 7.7245307268E-16 5.5916291562E-12 1.1868330103E-11
d01 2010-01-01_00:00:00 2.2000000779E-11 3.1918087964E-12 3.7682270498E-13 7.0132055545E-12
d01 2010-01-01_00:00:00 1.4547975324E-10 1.4262600432E-12 4.3363498556E-12 1.0495231250E-28
d01 2010-01-01_00:00:00 1.0607899108E-11 1.4068557517E-12 5.0000000181E-16 6.8142418286E-07
d01 2010-01-01_00:00:00 3.1882541746E-11 1.6832300932E-16 1.4919037143E-12 1.6222500737E-17
d01 2010-01-01_00:00:00 3.4999999860E-12 1.9999999365E-21 3.5747402194E-07 1.7013820908E-13
d01 2010-01-01_00:00:00 8.0541286531E-13 9.6121648256E-16 8.6005075945E-14 4.6808813336E-13
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 9.9999999600E-12 7.4406868098E-17
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 9.2264078322E-12 9.2264078322E-12
d01 2010-01-01_00:00:00 1.0386517167E-11 1.3123595960E-11 1.0999999739E-12 2.4999999900E-12
d01 2010-01-01_00:00:00 1.3206259003E-11 1.6727574187E-11 3.0373307222E-14 6.9134507282E-15
d01 2010-01-01_00:00:00 2.4684844013E-12 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 8.1000001628E-13 0.0000000000E+00 1.8547025027E-11 3.0638124026E-16
d01 2010-01-01_00:00:00 0.0000000000E+00 9.7137047212E-14 0.0000000000E+00 1.7000000366E-11
d01 2010-01-01_00:00:00 3.0638124026E-16 1.0307563529E-19 7.8803994580E-12 1.4322133930E-18
d01 2010-01-01_00:00:00 1.5642344049E-16 4.8325152907E-11 8.9864997388E-11 3.5144218604E-15
d01 2010-01-01_00:00:00 2.4999999900E-12 8.7593187911E-12 2.8437627253E-11 8.0999998375E-12
d01 2010-01-01_00:00:00 4.0999998535E-11 2.2000000779E-11 1.3999999944E-11 2.9999999013E-11
d01 2010-01-01_00:00:00 0.0000000000E+00 5.8785620959E-18 0.0000000000E+00 9.2264078322E-12
d01 2010-01-01_00:00:00 1.4586381148E-12 0.0000000000E+00 1.3173773704E-11 1.5619579241E-10
d01 2010-01-01_00:00:00 3.9999999840E-12 2.6165208888E-11 3.9999999840E-12 3.9999999840E-12
d01 2010-01-01_00:00:00 3.9999999840E-12 2.4999999900E-12 3.9999999840E-12 1.1999999518E-12
d01 2010-01-01_00:00:00 3.9999999840E-12 2.4999999900E-12 5.4271000888E-11 3.7971507882E-11
d01 2010-01-01_00:00:00 3.8308939354E-11 5.4271000888E-11 5.4271000888E-11 4.7106443095E-14
d01 2010-01-01_00:00:00 1.2887268835E-13 6.9700172825E-14 2.5973740167E-14 4.1281743106E-14
d01 2010-01-01_00:00:00 9.9999999600E-12
d01 2010-01-01_00:00:00 1.0428700958E-10 1.2885333200E-17 6.5961586236E-13 0.0000000000E+00
d01 2010-01-01_00:00:00 3.2999998567E-11 7.0000002173E-18 1.0000000036E-15 3.9999999840E-12
d01 2010-01-01_00:00:00 3.9999999840E-12 3.9999999840E-12 1.4056951783E-11 1.4056951783E-11
d01 2010-01-01_00:00:00 1.4056951783E-11 5.8477311535E-14 5.8477318311E-14 5.8477311535E-14
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00
d01 2010-01-01_00:00:00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00 0.0000000000E+00

I am getting like this. I waited for so much time but now also its coming like this only.
 

Attachments

  • namelist.input
    5.8 KB · Views: 0
Top