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

Ritanya via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 14 04:50:16 PST 2021


RitanyaB updated this revision to Diff 394212.

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.394212.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211214/311ab946/attachment-0001.bin>


More information about the Openmp-commits mailing list