This is an archive of the discontinued LLVM Phabricator instance.

Handle NetBSD alias for pthread_sigmask
ClosedPublic

Authored by krytarowski on Oct 30 2018, 1:31 AM.

Details

Summary

Add a new helper macro TSAN_INTERCEPTOR_NETBSD_ALIAS_THR2
that handles pthread(3)/libc aliases in scenarios when a name in both
libraries differs not just in prefix namespace.

Handle TSan pthread_sigmask mangling accordingly into __libc_thr_sigsetmask.

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Oct 30 2018, 1:31 AM
vitalybuka accepted this revision.Oct 30 2018, 11:43 AM

is this covered with existing test?

This revision is now accepted and ready to land.Oct 30 2018, 11:43 AM

is this covered with existing test?

Yes, test/tsan/signal_block.cc.

This revision was automatically updated to reflect the committed changes.