public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/115108] New: f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314
@ 2024-05-15 16:54 natalie.perlin at noaa dot gov
  2024-05-15 16:56 ` [Bug fortran/115108] " jakub at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: natalie.perlin at noaa dot gov @ 2024-05-15 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/115108] f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314
  2024-05-15 16:54 [Bug fortran/115108] New: f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314 natalie.perlin at noaa dot gov
@ 2024-05-15 16:56 ` jakub at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-05-15 16:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115108

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |jakub at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 115107 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-15 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15 16:54 [Bug fortran/115108] New: f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314 natalie.perlin at noaa dot gov
2024-05-15 16:56 ` [Bug fortran/115108] " jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).