https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115108
Bug ID: 115108 Summary: f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: natalie.perlin at noaa dot gov Target Milestone: --- Getting error with gnu/13.2.0 gfortran compiler with openmpi/4.1.6 wrapper as shown below. The version gnu/9.2.0b gfortran with openmpi/4.1.6, built in the same way, works with no issues. System "uname -a" info: Linux hfe11 4.18.0-477.27.1.el8_8.x86_64 #1 SMP Wed Sep 20 15:55:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux CPU info: Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz Attached is the following: - preprocessed fv_dynamics.F90.i file, where the error occurs { NOT sent but available if requested: - the output from the model build (ufs-weather-model) where this error appears when built with the gnu-13.2.0 suite, and - a similar build output with the same code, but build with the gnu-9.2.0b suite } The build step following the error (between the two "=====" lines): ======================================================== cd /scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/build/FV3/atmos_cubed_sphere && /apps/gnu/gcc-13.2.0/bin/gfortran -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/include -pthread -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7qgb7brqsdeq6txqc/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk2sgxi53a5osmhay/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdqllayttp3eoxvt7fm7sl6/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o7i56jhe6slgj2qi/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugqy36n7s7izlapb4nccqg4/lib -Wl,-rpath,/apps/spack/linux-rocky8-x86_64/gcc-8.5.0/gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/lib/gcc/x86_64-pc-linux-gnu/13.2.0 -Wl,-rpath,/apps/spack/linux-rocky8-x86_64/gcc-8.5.0/gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/lib64 -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7qgb7brqsdeq6txqc/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk2sgxi53a5osmhay/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdqllayttp3eoxvt7fm7sl6/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o7i56jhe6slgj2qi/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugqy36n7s7izlapb4nccqg4/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -DBYPASS_BREED_SLP_INLINE -DENABLE_QUAD_PRECISION -DGFS_PHYS -DGFS_TYPES -DINTERNAL_FILE_NML -DMOIST_CAPPA -DOPENMP -DSPMD -DUSE_COND -DUSE_GFSL63 -Duse_WRTCOMP -I/scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/build/FV3/atmos_cubed_sphere/include/fv3 -I/scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/FV3/atmos_cubed_sphere -I/scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/FV3/atmos_cubed_sphere/tools -I/scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/build/FV3/ccpp/mod -I/scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/build/FV3/ccpp/framework/src -I/scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/build/FV3/ccpp/physics -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/fms-2023.04-3wdomze/include_r8 -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/netcdf-fortran-4.6.1-w34ry7p/include -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/netcdf-c-4.9.2-rwi44sm/include -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/w3emc-2.10.0-x5rhz77/include_d -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/bacio-2.4.1-rlzcntu/include_4 -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/esmf-8.6.1-ztpnhhr/include -I/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/envs/ufs-wm-srw-rocky8/install/gcc/13.2.0/parallelio-2.5.10-pbwqhhj/include -ggdb -fbacktrace -cpp -fcray-pointer -ffree-line-length-none -fno-range-check -fdefault-real-8 -fdefault-double-8 -ggdb -fbacktrace -cpp -fcray-pointer -ffree-line-length-none -fno-range-check -fdefault-real-8 -fdefault-double-8 -fallow-argument-mismatch -fallow-invalid-boz -O2 -Jinclude/fv3 -fPIC -fopenmp -c /scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/FV3/atmos_cubed_sphere/model/fv_dynamics.F90 -o CMakeFiles/fv3.dir/model/fv_dynamics.F90.o f951: internal compiler error: Segmentation fault 0xcf878f crash_signal /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/toplev.cc:314 0x791795 gfc_expression_rank(gfc_expr*) /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/resolve.cc:5643 0x791944 gfc_op_rank_conformable(gfc_expr*, gfc_expr*) /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/resolve.cc:5676 0x6d916c eval_intrinsic /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/arith.cc:1674 0x7507b5 match_add_operand /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:394 0x7509cc match_level_2 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:480 0x750b86 match_level_3 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:551 0x750cc0 match_level_4 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:599 0x750cc0 match_and_operand /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:693 0x750e96 match_or_operand /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:722 0x750fa6 match_equiv_operand /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:765 0x7510b8 match_level_5 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:811 0x750214 gfc_match_expr(gfc_expr**) /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:870 0x786210 match_actual_arg /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/primary.cc:1688 0x787bb8 gfc_match_actual_arglist(int, gfc_actual_arglist**, bool) /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/primary.cc:1953 0x78a385 gfc_match_rvalue(gfc_expr**) /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/primary.cc:3696 0x75042e match_primary /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:157 0x75042e match_level_1 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:211 0x75042e match_mult_operand /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:267 0x7506f8 match_add_operand /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/spack-src/gcc/fortran/matchexp.cc:356 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://github.com/spack/spack/issues> for instructions. ======================================================== The mpif90 wrapper is as following (mpif90 --show): /apps/gnu/gcc-13.2.0/bin/gfortran -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/include -pthread -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7qgb7brqsdeq6txqc/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk2sgxi53a5osmhay/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdqllayttp3eoxvt7fm7sl6/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o7i56jhe6slgj2qi/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugqy36n7s7izlapb4nccqg4/lib -Wl,-rpath,/apps/spack/linux-rocky8-x86_64/gcc-8.5.0/gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/lib/gcc/x86_64-pc-linux-gnu/13.2.0 -Wl,-rpath,/apps/spack/linux-rocky8-x86_64/gcc-8.5.0/gcc-13.2.0-vmpgruuynebh3ute5ldybhargqka3wtf/lib64 -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5kizuxc5emedkfhhj4/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7qgb7brqsdeq6txqc/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk2sgxi53a5osmhay/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdqllayttp3eoxvt7fm7sl6/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o7i56jhe6slgj2qi/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugqy36n7s7izlapb4nccqg4/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi