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

            Bug ID: 122006
           Summary: [16 Regression] RISC-V: f951: ICE: Segmentation fault
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

Postcommit is seeing the following errors:
AIL: gfortran.dg/pdt_13.f03   -O0  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_13.f03   -O0  (test for excess errors)
FAIL: gfortran.dg/pdt_13.f03   -O1  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_13.f03   -O1  (test for excess errors)
FAIL: gfortran.dg/pdt_13.f03   -O2  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_13.f03   -O2  (test for excess errors)
FAIL: gfortran.dg/pdt_13.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (internal compiler error:
Segmentation fault)
FAIL: gfortran.dg/pdt_13.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (test for excess errors)
FAIL: gfortran.dg/pdt_13.f03   -O3 -g  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_13.f03   -O3 -g  (test for excess errors)
FAIL: gfortran.dg/pdt_13.f03   -Os  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_13.f03   -Os  (test for excess errors)
FAIL: gfortran.dg/pdt_14.f03   -O0  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_14.f03   -O0  (test for excess errors)
FAIL: gfortran.dg/pdt_14.f03   -O1  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_14.f03   -O1  (test for excess errors)
FAIL: gfortran.dg/pdt_14.f03   -O2  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_14.f03   -O2  (test for excess errors)
FAIL: gfortran.dg/pdt_14.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (internal compiler error:
Segmentation fault)
FAIL: gfortran.dg/pdt_14.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (test for excess errors)
FAIL: gfortran.dg/pdt_14.f03   -O3 -g  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_14.f03   -O3 -g  (test for excess errors)
FAIL: gfortran.dg/pdt_14.f03   -Os  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_14.f03   -Os  (test for excess errors)
FAIL: gfortran.dg/pdt_17.f03   -O   (test for errors, line 8)
FAIL: gfortran.dg/pdt_17.f03   -O   (test for errors, line 9)
FAIL: gfortran.dg/pdt_17.f03   -O  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_17.f03   -O  (test for excess errors)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 29)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 60)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 61)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 62)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 65)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 68)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 69)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 70)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 76)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 77)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 79)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 80)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 89)
FAIL: gfortran.dg/pdt_4.f03   -O   (test for errors, line 99)
FAIL: gfortran.dg/pdt_4.f03   -O  (internal compiler error: Segmentation fault)
FAIL: gfortran.dg/pdt_4.f03   -O  (test for excess errors)
FAIL: gfortran.dg/pdt_44.f03   -O   (test for errors, line 15)
FAIL: gfortran.dg/pdt_44.f03   -O   (test for errors, line 26)
FAIL: gfortran.dg/pdt_44.f03   -O  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_44.f03   -O  (test for excess errors)
FAIL: gfortran.dg/pdt_47.f03   -O0  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_47.f03   -O0  (test for excess errors)
FAIL: gfortran.dg/pdt_47.f03   -O1  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_47.f03   -O1  (test for excess errors)
FAIL: gfortran.dg/pdt_47.f03   -O2  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_47.f03   -O2  (test for excess errors)
FAIL: gfortran.dg/pdt_47.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (internal compiler error:
Segmentation fault)
FAIL: gfortran.dg/pdt_47.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (test for excess errors)
FAIL: gfortran.dg/pdt_47.f03   -O3 -g  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_47.f03   -O3 -g  (test for excess errors)
FAIL: gfortran.dg/pdt_47.f03   -Os  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pdt_47.f03   -Os  (test for excess errors)
FAIL: gfortran.dg/pdt_6.f03   -O   (test for errors, line 19)
FAIL: gfortran.dg/pdt_6.f03   -O   (test for errors, line 21)
FAIL: gfortran.dg/pdt_6.f03   -O   (test for errors, line 22)
FAIL: gfortran.dg/pdt_6.f03   -O   (test for errors, line 25)
FAIL: gfortran.dg/pdt_6.f03   -O  (internal compiler error: Segmentation fault)
FAIL: gfortran.dg/pdt_6.f03   -O  (test for excess errors)
FAIL: gfortran.dg/pdt_8.f03   -O   (test for errors, line 18)
FAIL: gfortran.dg/pdt_8.f03   -O   (test for errors, line 23)
FAIL: gfortran.dg/pdt_8.f03   -O  (internal compiler error: Segmentation fault)
FAIL: gfortran.dg/pdt_8.f03   -O  (test for excess errors)
FAIL: gfortran.dg/pr107423.f90   -O   (test for errors, line 13)
FAIL: gfortran.dg/pr107423.f90   -O   (test for errors, line 14)
FAIL: gfortran.dg/pr107423.f90   -O   (test for errors, line 15)
FAIL: gfortran.dg/pr107423.f90   -O   (test for errors, line 16)
FAIL: gfortran.dg/pr107423.f90   -O  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pr107423.f90   -O  (test for excess errors)
FAIL: gfortran.dg/pr93499.f90   -O   (test for errors, line 9)
FAIL: gfortran.dg/pr93499.f90   -O  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pr93499.f90   -O  (test for excess errors)
FAIL: gfortran.dg/pr95053_3.f90   -O   (test for errors, line 11)
FAIL: gfortran.dg/pr95053_3.f90   -O   (test for errors, line 12)
FAIL: gfortran.dg/pr95053_3.f90   -O   (test for errors, line 13)
FAIL: gfortran.dg/pr95053_3.f90   -O  (internal compiler error: Segmentation
fault)
FAIL: gfortran.dg/pr95053_3.f90   -O  (test for excess errors)

https://github.com/patrick-rivos/gcc-postcommit-ci/issues/4022

$ ./build-gcc-linux-stage2/gcc/gfortran -B./build-gcc-linux-stage2/gcc/
-B./build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib64/lp64d/libgfortran/
../gcc/gcc/testsuite/gfortran.dg/pdt_13.f03 -march=rv64gcv -mabi=lp64d
-mcmodel=medlow -fdiagnostics-plain-output -fdiagnostics-plain-output -O0
-pedantic-errors
-L./build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib64/lp64d/libgfortran/.libs
-L./build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib64/lp64d/libatomic/.libs
-lm -o ./pdt_13.exe -freport-bug
f951: internal compiler error: Segmentation fault
0x3080f3b internal_error(char const*, ...)
        ../../../gcc/gcc/diagnostic-global-context.cc:786
0x15fe883 crash_signal
        ../../../gcc/gcc/toplev.cc:323
0x707f8384532f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0xe209e3 gfc_free_actual_arglist(gfc_actual_arglist*)
        ../../../gcc/gcc/fortran/expr.cc:599
0xea7ab5 gfc_match_rvalue(gfc_expr**)
        ../../../gcc/gcc/fortran/primary.cc:4094
0xe61ea6 match_primary
        ../../../gcc/gcc/fortran/matchexp.cc:217
0xe61ea6 match_level_1
        ../../../gcc/gcc/fortran/matchexp.cc:267
0xe61ea6 match_mult_operand
        ../../../gcc/gcc/fortran/matchexp.cc:323
0xe62198 match_add_operand
        ../../../gcc/gcc/fortran/matchexp.cc:412
0xe624d6 match_level_2
        ../../../gcc/gcc/fortran/matchexp.cc:536
0xe626c6 match_level_3
        ../../../gcc/gcc/fortran/matchexp.cc:607
0xe6281c match_level_4
        ../../../gcc/gcc/fortran/matchexp.cc:655
0xe6281c match_and_operand
        ../../../gcc/gcc/fortran/matchexp.cc:749
0xe62a26 match_or_operand
        ../../../gcc/gcc/fortran/matchexp.cc:778
0xe62b46 match_equiv_operand
        ../../../gcc/gcc/fortran/matchexp.cc:821
0xe62c68 match_level_5
        ../../../gcc/gcc/fortran/matchexp.cc:867
0xe61ad8 gfc_match_expr(gfc_expr**)
        ../../../gcc/gcc/fortran/matchexp.cc:926
0xea2260 match_actual_arg
        ../../../gcc/gcc/fortran/primary.cc:1801
0xea4030 gfc_match_actual_arglist(int, gfc_actual_arglist**, bool)
        ../../../gcc/gcc/fortran/primary.cc:2066
0xea72ed gfc_match_rvalue(gfc_expr**)
        ../../../gcc/gcc/fortran/primary.cc:4040
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to