Skip to content

spack-stack/2.0.0 gsi-ncdiag/1.1.2 seg faults #1931

@RussTreadon-NOAA

Description

@RussTreadon-NOAA

Description

When GSI is built and run on Ursa using spack-stack/2.0.0, gsi.x seg faults when calling ncdw_metadata.F90 from gsi-ncdiag/1.1.2. Building the same GSI source code with spack-stack/1.9.2 gsi-ncdiag/1.1.2 yields a gsi.x which successfully runs to completion.

To Reproduce

  1. git clone --recursive https://github.com/ADCollard/GSI.git .
  2. git checkout GSI_CRTMv3_dev_cdf
  3. git submodule update --init --recursive
  4. cd modulefiles
  5. comment out the setenv("CRTM_FIX" in gsi_ursa.intel.lua
  6. cd ../regression`
  7. open global_4denvar.sh in an editor
  8. replace .bin with .nc for fixcrtm files. Use .nc4 for AerosolCoeff and CloudCoeff
  9. cd ../ush
  10. ./build.sh > log.build 2>&1 &
  11. cd ../build
  12. ctest -VV -R global_4denvar
  13. cntrl-c after you see the slurm job number, $jobid, printed to the screen
  14. scontrol show job $jobid to get the path/name of the job log output file
  15. tail job log file after job starts running
  16. cd to job run directory after job fails
  17. open stdout in an editor
  18. search for forrtl: severe (174): SIGSEGV, segmentation fault occurred to find the traceback below
GLBSOI: jiter,jiterstart,jiterlast,jiterend=    1    1    2    1
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source
libc.so.6          000014B8C88CABF0  Unknown               Unknown  Unknown
gsi.x              0000000001AA7EA2  nc_diag_metadata_         502  ncdw_metadata.F90
gsi.x              0000000001A8B22B  nc_diag_write             536  nc_diag_write_mod.F90
gsi.x              000000000134A732  setupps                   675  setupps.f90

Expected behavior

The spack-stack/2.0.0 gsi.x should successfully run the GSI global_4denvar ctest ... just like the spack-stack/1.9.2 gsi.x

System, compiler, code, ...

gsi.x built and run on Ursa with the following modules loaded

  1) intel-oneapi-compilers/2025.2.1         8) curl/8.11.1     15) netcdf-fortran/4.6.1     22) python/3.11.11   29) sigio/2.3.3       36) crtm/3.1.2
  2) stack-intel-oneapi-compilers/2025.2.1   9) cmake/3.31.8    16) intel-oneapi-mkl/2024.2  23) python-venv/1.0  30) sfcio/1.4.2       37) gsi-ncdiag/1.1.2
  3) intel-oneapi-mpi/2021.13.1             10) snappy/1.2.1    17) pigz/2.8                 24) py-numpy/1.26.4  31) nemsio/2.5.5      38) prod_util/2.1.2
  4) stack-intel-oneapi-mpi/2021.13         11) zstd/1.5.7      18) tar/1.35                 25) bufr/12.1.0      32) wrf-io/1.3.0      39) gsi_common
  5) glibc/2.34                             12) c-blosc/1.21.6  19) gettext/0.23.1           26) bacio/2.6.0      33) ncio/1.1.2        40) gsi_ursa.intel
  6) nghttp2/1.65.0                         13) hdf5/1.14.5     20) sqlite/3.46.0            27) w3emc/2.11.0     34) crtm-fix/3.1.2.0
  7) zlib/1.2.13                            14) netcdf-c/4.9.2  21) util-linux-uuid/2.41     28) ip/5.4.0         35) git-lfs/3.5.1

gsi.x built with

-- The C compiler identification is IntelLLVM 2025.2.1
-- The Fortran compiler identification is IntelLLVM 2025.2.1

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions