From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C06A2384AB51; Wed, 15 May 2024 16:54:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C06A2384AB51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715792051; bh=vv0e5bTO/H+XT5yGiTzDLPqDDXeavjfrT6p9+k+v7SM=; h=From:To:Subject:Date:From; b=O+vjjgM7zx7f87o/R5HQMDNvXsMkncAaDRq31z5FfEg8HIS9YxorpQVFmS3TVPAXV 9U9sEgH9SnHrLpqIIoLza53mUIzhjEztSKP0NA12fUyPq24QN9ApIDT9GEW4iKB8C6 WyUe4P8ec7NeYlff3cPXIi4qoYx08gBDpb/oBW6k= From: "natalie.perlin at noaa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/115108] New: f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314 Date: Wed, 15 May 2024 16:54:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: natalie.perlin at noaa dot gov X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115108 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 t= he same way, works with no issues.=20 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:=20 - the output from the model build (ufs-weather-model) where this error appe= ars when built with the gnu-13.2.0 suite, and=20 - a similar build output with the same code, but build with the gnu-9.2.0b suite }=20 The build step following the error (between the two "=3D=3D=3D=3D=3D" lines= ): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D cd /scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/build/FV3/atmos_c= ubed_sphere && /apps/gnu/gcc-13.2.0/bin/gfortran -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5k= izuxc5emedkfhhj4/include -pthread -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5k= izuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5k= izuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7qg= b7brqsdeq6txqc/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk2s= gxi53a5osmhay/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdqll= ayttp3eoxvt7fm7sl6/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o7i= 56jhe6slgj2qi/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugqy3= 6n7s7izlapb4nccqg4/lib -Wl,-rpath,/apps/spack/linux-rocky8-x86_64/gcc-8.5.0/gcc-13.2.0-vmpgruuyneb= h3ute5ldybhargqka3wtf/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-vmpgruuyneb= h3ute5ldybhargqka3wtf/lib64 -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi= 5kizuxc5emedkfhhj4/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7= qgb7brqsdeq6txqc/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk= 2sgxi53a5osmhay/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdq= llayttp3eoxvt7fm7sl6/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o= 7i56jhe6slgj2qi/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugq= y36n7s7izlapb4nccqg4/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-ch= eck -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 -fope= nmp -c /scratch1/NCEPDEV/stmp2/Natalie.Perlin/ufs-weather-model2/FV3/atmos_cubed_s= phere/model/fv_dynamics.F90 -o CMakeFiles/fv3.dir/model/fv_dynamics.F90.o=20 f951: internal compiler error: Segmentation fault 0xcf878f crash_signal =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/toplev.cc:314 0x791795 gfc_expression_rank(gfc_expr*) =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/resolve.cc:5643 0x791944 gfc_op_rank_conformable(gfc_expr*, gfc_expr*) =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/resolve.cc:5676 0x6d916c eval_intrinsic =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/arith.cc:1674 0x7507b5 match_add_operand =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:394 0x7509cc match_level_2 =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:480 0x750b86 match_level_3 =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:551 0x750cc0 match_level_4 =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:599 0x750cc0 match_and_operand =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:693 0x750e96 match_or_operand =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:722 0x750fa6 match_equiv_operand =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:765 0x7510b8 match_level_5 =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:811 0x750214 gfc_match_expr(gfc_expr**) =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:870 0x786210 match_actual_arg =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/primary.cc:1688 0x787bb8 gfc_match_actual_arglist(int, gfc_actual_arglist**, bool) =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/primary.cc:1953 0x78a385 gfc_match_rvalue(gfc_expr**) =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/primary.cc:3696 0x75042e match_primary =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:157 0x75042e match_level_1 =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:211 0x75042e match_mult_operand =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/spack-src/gcc/fortran/matchexp.cc:267 0x7506f8 match_add_operand =20=20=20=20=20=20=20 /tmp/role.apps/spack-stage/spack-stage-gcc-13.2.0-vmpgruuynebh3ute5ldybharg= qka3wtf/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 for instructions. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D 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-ebluj52aq557oi5k= izuxc5emedkfhhj4/include -pthread -I/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5k= izuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi5k= izuxc5emedkfhhj4/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7qg= b7brqsdeq6txqc/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk2s= gxi53a5osmhay/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdqll= ayttp3eoxvt7fm7sl6/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o7i= 56jhe6slgj2qi/lib -L/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugqy3= 6n7s7izlapb4nccqg4/lib -Wl,-rpath,/apps/spack/linux-rocky8-x86_64/gcc-8.5.0/gcc-13.2.0-vmpgruuyneb= h3ute5ldybhargqka3wtf/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-vmpgruuyneb= h3ute5ldybhargqka3wtf/lib64 -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/openmpi-4.1.6-ebluj52aq557oi= 5kizuxc5emedkfhhj4/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/hwloc-2.9.1-eup24t2bkf564ps7= qgb7brqsdeq6txqc/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/ucx-1.14.1-ygygjh7r2pvrbgqzk= 2sgxi53a5osmhay/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/libevent-2.1.12-faw23foe2mdq= llayttp3eoxvt7fm7sl6/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/pmix-5.0.1-okp2l46njjb3oz25o= 7i56jhe6slgj2qi/lib -Wl,-rpath -Wl,/apps/spack/linux-rocky8-x86_64/gcc-13.2.0/slurm-23-02-4-1-nnaacqrzsugq= y36n7s7izlapb4nccqg4/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi=