LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 49334 - Segfault when running code with target nowait compiled for x86 offloading
Summary: Segfault when running code with target nowait compiled for x86 offloading
Status: RESOLVED FIXED
Alias: None
Product: OpenMP
Classification: Unclassified
Component: Runtime Library (show other bugs)
Version: unspecified
Hardware: PC All
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: release-12.0.0
  Show dependency tree
 
Reported: 2021-02-23 10:50 PST by Shilei Tian
Modified: 2021-05-06 12:57 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s): e5da63d5a9ede1fb6d8aa18cfd44533ead128738 d24e102ba266


Attachments
reproducer (4.44 KB, text/x-csrc)
2021-02-23 10:50 PST, Shilei Tian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shilei Tian 2021-02-23 10:50:48 PST
Created attachment 24567 [details]
reproducer

The test case is attached. Compilation command:
```
$ clang++ -fopenmp -fopenmp-targets=x86_64 bug.cpp
```
Comment 1 Shilei Tian 2021-02-23 12:50:15 PST
It's confirmed. Try to fix it in https://reviews.llvm.org/D97329.
Comment 2 Tom Stellard 2021-03-05 10:46:05 PST
Merged: d24e102ba266
Comment 3 Jon Chesterfield 2021-05-06 12:57:47 PDT
The test case for this hangs when running on amdgpu offloading, have not determined why.