Index: lib/msan/msan_interceptors.cc =================================================================== --- lib/msan/msan_interceptors.cc +++ lib/msan/msan_interceptors.cc @@ -1484,6 +1484,11 @@ __msan_unpoison(s, REAL(strlen)(s) + 1); } +#if SANITIZER_NETBSD +INTERCEPTOR(void, __libc_thr_keycreate, void *m, void (*dtor)(void *value)) \ + ALIAS(WRAPPER_NAME(pthread_key_create)); +#endif + namespace __msan { void InitializeInterceptors() { @@ -1604,6 +1609,10 @@ INTERCEPT_FUNCTION(openpty); INTERCEPT_FUNCTION(forkpty); +#if SANITIZER_NETBSD + INTERCEPT_FUNCTION(__libc_thr_keycreate); +#endif + inited = 1; } } // namespace __msan