[Openmp-commits] [PATCH] D115328: SIGSEGV in ompt_tsan_dependences with for-ordered

Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 3 09:24:52 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG378b0ac17984: SIGSEGV in ompt_tsan_dependences with for-ordered (authored by RitanyaB, committed by Chi-Chun, Chen <chichunchen844 at gmail.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115328/new/

https://reviews.llvm.org/D115328

Files:
  openmp/tools/archer/ompt-tsan.cpp


Index: openmp/tools/archer/ompt-tsan.cpp
===================================================================
--- openmp/tools/archer/ompt-tsan.cpp
+++ openmp/tools/archer/ompt-tsan.cpp
@@ -1001,6 +1001,10 @@
   if (ndeps > 0) {
     // Copy the data to use it in task_switch and task_end.
     TaskData *Data = ToTaskData(task_data);
+    if (!Data->Parent) {
+      // Return since doacross dependences are not supported yet.
+      return;
+    }
     if (!Data->Parent->DependencyMap)
       Data->Parent->DependencyMap =
           new std::unordered_map<void *, DependencyData *>();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115328.397083.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220103/d030d292/attachment.bin>


More information about the Openmp-commits mailing list