Comments (11)
@StevePny It turns out that the default stack size, 8 MB, is insufficient to hold the large one-dimension variable, lbms. The solution is to set an unlimited stack size.
from shield_physics.
from shield_physics.
from shield_physics.
@StevePny What test are you running that results in this seg fault failure? Is it one of the tests in the CI directory?
from shield_physics.
@StevePny To expand upon my previous comment: Is it one of the tests in the SHiELD_build repository CI directory?
from shield_physics.
@laurenchilutti
The latter case is the regional_Laura case distributed with the SHiELD-in-a-box:
https://www.gfdl.noaa.gov/shield/shield-in-a-box/
https://zenodo.org/record/5090124/files/regional_Laura.zip
I was able to install SHiELD and run these example cases (regional_Laura and global_nest_Laura) prior to the 202204 release.
from shield_physics.
@StevePny
I have tested the latest SHiELD code with the regional Laura case. When I built SHiELD natively on an NOAA HPC, the Laura case works fine. However, it does not work with the containerized SHiELD, which is very strange.
from shield_physics.
Looks like it is the NCEP library causing the crash. Segmentation fault occurs at
SHiELD_physics/gsmphys/sfcsub.F
Line 2757 in 8c46d4f
However, I still don't understand why it is the case. Before this line, another NCEP library, getgbh(), works just fine. Also, the same compiler flags and arguments worked previously.
from shield_physics.
@kaiyuan-cheng just checking in - has any progress been made on clearing up this issue, or should we continue with the pre-202204 version?
from shield_physics.
from shield_physics.
To provide a clarifying detail -
The docker container does not inherit the system stack limit by default. The ulimit can be set on the command line when running the docker container, but 'unlimited' is not a permitted option. In order to specify an unlimited stack size in the docker container, one can add this option:
--ulimit stack=-1
With this setting I can run the regional_Laura_test case on an AWS c6g.8xlarge ec2 instance.
Note - to be safe, I also set the stack size in the ec2 instance with:
ulimit -s unlimited
from shield_physics.
Related Issues (14)
- gnu.mk file OPENMP, Undefined reference to `omp_get_ ... HOT 2
- GFS physics radiation: solar hour incorrect if model initialized not on the hour HOT 3
- atmos_drivers and simple_coupler need to be removed
- Microphysics always initialized with hydrostatic=.true. HOT 2
- Recommended Issues to Address from PR #22 HOT 2
- `ccnorm` namelist parameter ignored in when `cloud_gfdl` and `pdfcld` are true
- Units for fhcyc in inline comment incorrect?
- Make `Diag` structure within FV3GFS_io.F90 public? HOT 8
- how to produce diagnostic winds at time step 0? HOT 8
- Slab ocean Q-flux is read in from file, but not propagated to `Sfcprop%qfluxadj`
- New release breaks existing docker build using GFDL_atmos_cubed_sphere main HOT 2
- Release 202204 Segmentation fault vs previous successful run HOT 17
- Requested aerosol data file "INPUT/aerosol.dat" not found! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shield_physics.