Closed rolandschulz closed 7 years ago
Roland, thanks for reporting this issue. The reason for your segfault is, that tool initialization for the created threads is skiped, because OMPT does not deliver any thread-creation callbacks.
I talked to OpenMP language advocates and they said, that OpenMP spec does not indicate that your program would be a valid OpenMP program (there is no notion of pthreads/C++11 threads in the spec).
Nevertheless, we are working with the OpenMP tools group to check whether the specification of OMPT is consistent with the OpenMP execution model. Since the OpenMP implementation supports your application behaviour, we think, that the OpenMP runtime should deliver a thread creation event.
Created an issue in the runtime repository: https://github.com/OpenMPToolsInterface/LLVM-openmp/issues/16
Given
And Archer (dc4e363) build with out of source with LLVM 4.0 and OMP-TR4 I get a runtime SegFault: