[llvm-bugs] [Bug 47999] New: '#pragma omp taskloop' causes front end crash for clang

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 28 08:42:00 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47999

            Bug ID: 47999
           Summary: '#pragma omp taskloop' causes front end crash for
                    clang
           Product: clang
           Version: 11.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenMP
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cade at utk.edu
                CC: llvm-bugs at lists.llvm.org

Created attachment 24110
  --> https://bugs.llvm.org/attachment.cgi?id=24110&action=edit
Tarfile archive of the files that clang recommended be uploaded

I'm not sure whether to file this bug under clang as the frontend, or as OpenMP
-- it is a problem with the clang frontend parsing OpenMP constructs,
particularly the construct:

```
#pragma omp taskloop untied shared(barrier) \
                     num_tasks(num_panel_threads) \
                     priority(2)
```

The compiler just crashes, dumps a large stack trace, and says to report it
here. I have attached the files which it recommends as a tarfile to this
report.

I have isolated it to the above OpenMP pragma, because substituting it with
'#pragma omp parallel for ...' works without crashing.


Extra data:

```
clang-11: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 11.0.0
(/data/jenkins_workspace/centos_pipeline_job_3.7/rocm-rel-3.7/rocm-3.7-20-20200817/7.7/external/llvm-project/clang
ee4e4ebbadcc8ea14ce99e34ed31ab31e94827ac)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-3.7.0/llvm/bin
```

As you can see, this was a version of clang bundled with the ROCm platform (I
was using hipcc at the time).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201028/fef27c98/attachment.html>


More information about the llvm-bugs mailing list