bvanassche wrote: Thread-safety attributes of cleanup functions are ignored. Does anyone know how to fix this? See also https://github.com/llvm/llvm-project/issues/122758. https://github.com/llvm/llvm-project/pull/94216