Open ffhgfv opened 1 year ago
May I ask if anyone has encountered the same problem? How to solve it?
Why are you using such an ancient llvm version?
@llvm/issue-subscribers-openmp
Could you please try 17 or main
branch?
The crash stack looks very suspicious. Why is there function calls to LLVM libraries in a parallel region? LLVM is not thread safe at all.
I attempted to replicate the work of CPscan Detecting Bugs Caused by Code Pruning in IoT Kernels. LLVM was used in CPscan to analyze. bc files, and openmp was used for parallel optimization of the for loop during the analysis process. These for loops utilized LLVM to expand the loop into if. When I used gdb for debugging, I found that such a crash occurred while parallel processing the for loop.
You might want to create one LLVM context for each thread because LLVM is not thread safe.
Is there any update on this issue? Can I close it for now?
When I execute the following code
When executed to ”#pragma omp parallel for“,The program will encounter segment errors.Here is the error message