[Bug c/85488] New: segmentation fault when compiling code using the ordered(n) clause in OpenMP 4.5

chunhualiao at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Apr 21 00:56:00 GMT 2018


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

            Bug ID: 85488
           Summary: segmentation fault when compiling code using the
                    ordered(n) clause in OpenMP 4.5
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chunhualiao at gmail dot com
  Target Milestone: ---

Created attachment 44000
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44000&action=edit
this is the input file to trigger the error

gcc -fopenmp doall2-ordered-orig-no.c


doall2-ordered-orig-no.c: In function ‘main’:
doall2-ordered-orig-no.c:62:9: internal compiler error: Segmentation fault
 #pragma omp parallel for ordered(2)
         ^~~
0x9d0ebf crash_signal
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/toplev.c:337
0x7adfb0 gsi_for_stmt(gimple*)
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/gimple-iterator.c:614
0x8d8f42 expand_omp_ordered_source_sink
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/omp-expand.c:2260
0x8d8f42 expand_omp_for_generic
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/omp-expand.c:2986
0x8daff3 expand_omp_for
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/omp-expand.c:5883
0x8dbf2a expand_omp
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/omp-expand.c:7894
0x8dc6d6 expand_omp
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/omp-expand.c:7880
0x8de5ad execute_expand_omp
       
/nfs/casc/overture/ROSE/opt/rhel7/x86_64/gcc/7.1.0/mpc/1.0/mpfr/3.1.2/gmp//workspace/gcc-7.1.0/gcc/omp-expand.c:8118
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


More information about the Gcc-bugs mailing list