This is an archive of the discontinued LLVM Phabricator instance.

[asan][test] Don't XFAIL Posix/unpoison-alternate-stack.cpp on Solaris
ClosedPublic

Authored by ro on Mar 4 2021, 4:23 AM.

Details

Summary

One ASan test currently XPASSes on Solaris:

AddressSanitizer-i386-sunos :: TestCases/Posix/unpoison-alternate-stack.cpp

It was originally XFAILed in D88501 because longjmp from a signal handled is highly
unportable, warned against in XPG7, and was not supported by Solaris libc at the time.

However, since then support has been added for some cases including the current one,
so the XFAIL can go.

Tested on amd64-pc-solaris2.11 and x86_64-pc-linux-gnu.

However, there's a way more portable alternative, namely using siglongjmp instead
that might also be considered.

Diff Detail