In __kmp_get_global_thread_id, if the gtid mode is 1, after getting the gtid
from TLS, it will store the gtid value to the thread stack maintained in the thread
descriptor. However, __kmp_get_global_thread_id can be called when the library
is destructed, after the corresponding thread info has been release. This will
cause a segment fault. This can happen on an Intel-based Mac.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It can be exposed by existing test on macOS. That's how I found the issue. This *might* cause the issue reported in https://github.com/llvm/llvm-project/issues/63194.