FATAL: ThreadSanitizer: failed to intercept __xstat

We are getting the following failure from a TSAN instrumented binary:

FATAL: ThreadSanitizer: failed to intercept __xstat

This is using a 3 year old version of clang (5.0.2) on SLES (Suse Linux Enterprise Server) 11.4.

Under what circumstances would TSAN fail to intercept __xstat?

The only known issue I could find that had a similar message is this:

https://reviews.llvm.org/D5858

The above pre-dates 5.0.2 and AFAICT is not applicable to SuSe Linux.

/Riyaz

Didn’t see a response. Any pointers on possible causes?