Bug 261360

Summary: graphics/art: Crashes with OPENMP=ON when hidden helper threads are enabled
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: miscAssignee: Yuri Victorovich <yuri>
Status: Closed Unable to Reproduce    
Severity: Affects Some People CC: dim, toolchain
Priority: --- Keywords: crash, needs-patch, needs-qa
Version: 13.0-STABLEFlags: koobs: maintainer-feedback? (toolchain)
Hardware: Any   
OS: Any   
URL: https://reviews.llvm.org/D77609

Description Yuri Victorovich freebsd_committer freebsd_triage 2022-01-20 17:31:47 UTC
The port graphics/art crashes in run-time when built with OPENMP=ON (rev. 695bbdaf28d956bdb9f274343dd8a5ca5713a796).
Adding the environment variable LIBOMP_NUM_HIDDEN_HELPER_THREADS=0 in the run-time eliminates the crash.


Discussion about addition of hidden helper threads: https://reviews.llvm.org/D77609
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-04 05:16:42 UTC
Even with LIBOMP_NUM_HIDDEN_HELPER_THREADS=0 the executable now asserts:
> OMP: Error #13: Assertion failure at kmp_runtime.cpp(3689).
> OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
> Abort trap
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2023-03-09 00:48:31 UTC
The problem doesn't occur any more.