llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[OpenMP] [Flang] Program crashes at runtime with Segmentation fault when OMP PARALLEL DO IF(.false.) is encountered

Open chandankds opened this issue 2 years ago • 3 comments

Testcase to reproduce the issue.

PROGRAM parallel_do_if
  USE OMP_LIB
  INTEGER :: I
  INTEGER :: N = 0
  INTEGER, PARAMETER :: NI = 10
!$OMP PARALLEL DO IF(.false.) 
  DO I = 1, NI
  END DO
!$OMP END PARALLEL DO
END PROGRAM

compile: flang-new -fopenmp ./test.f90 -o if.out Run: ./if.out

Triage: Issue introduced after https://github.com/llvm/llvm-project/pull/65436 . Testcase works as expected after removal of this patch.

chandankds avatar Dec 21 '23 03:12 chandankds

Issue introduced after https://github.com/llvm/llvm-project/pull/65436 hence assigning it to @shiltian

chandankds avatar Jan 23 '24 05:01 chandankds

@llvm/issue-subscribers-openmp

Author: chandan singh (chandankds)

Testcase to reproduce the issue.
PROGRAM parallel_do_if
  USE OMP_LIB
  INTEGER :: I
  INTEGER :: N = 0
  INTEGER, PARAMETER :: NI = 10
!$OMP PARALLEL DO IF(.false.) 
  DO I = 1, NI
  END DO
!$OMP END PARALLEL DO
END PROGRAM

compile: flang-new -fopenmp ./test.f90 -o if.out Run: ./if.out

Triage: Issue introduced after https://github.com/llvm/llvm-project/pull/65436 . Testcase works as expected after removal of this patch.

llvmbot avatar Feb 05 '24 17:02 llvmbot

This looks fixed to me

tblah avatar Sep 02 '24 16:09 tblah