strerror(3) on NetBSD uses internally TSD with a destructor that is never
fired for exit(3). It's correctly called for pthread_exit(3) scenarios.
This is a case when a leak on exit(3) is expected, unavoidable and harmless.
Paths
| Differential D67337
Add __lsan::ScopedInterceptorDisabler for strerror(3) ClosedPublic Authored by krytarowski on Sep 8 2019, 4:37 PM.
Details Summary strerror(3) on NetBSD uses internally TSD with a destructor that is never This is a case when a leak on exit(3) is expected, unavoidable and harmless.
Diff Detail
Event Timeline
krytarowski retitled this revision from Add __lsan::ScopedInterceptorDisabler for strerror(3)/NetBSD to Add __lsan::ScopedInterceptorDisabler for strerror(3). Comment Actions
krytarowski added inline comments.
This revision is now accepted and ready to land.Sep 20 2019, 3:48 PM Closed by commit rL372461: Add __lsan::ScopedInterceptorDisabler for strerror(3) (authored by kamil). · Explain WhySep 21 2019, 12:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 219718 lib/asan/asan_interceptors.cpp
lib/lsan/lsan_interceptors.cpp
|
could you please add this into sanitizer_common/
#ifndef COMMON_INTERCEPTOR_STRERROR
#define COMMON_INTERCEPTOR_STRERROR() {}
#endif
and define in asan and msan
#if NETBSD
#define COMMON_INTERCEPTOR_STRERROR() __lsan::ScopedInterceptorDisabler;
#fi