]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Attempt to work around issues with xend being executed unconditionally
authorTom Hughes <tom@compton.nu>
Tue, 18 Aug 2015 10:29:20 +0000 (10:29 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 18 Aug 2015 10:29:20 +0000 (10:29 +0000)
commitb22d60778f38d333d18213dd69b034de475fc63d
treef8f1aedef279d7c8b139cbd17456d5ad539045bc
parent6d6732e9df341fe9774c4aa893e7edd6e0a30bf8
Attempt to work around issues with xend being executed unconditionally
when a pthread_rwlock is used in an invalid way.

Recent glibcs use transactional memory instructions to do lock ellision
but will sometimes, when locks are used in an invalid way, may calls to
xend on systems which don't support it, on the grounds that the program
is invalid anyway.

So we try and catch and ignore the resulting SIGILL in our tests that
deliberately work with invalid locks.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15565
15 files changed:
drd/tests/tc12_rwl_trivial.stderr.exp
drd/tests/tc12_rwl_trivial.vgtest
helgrind/tests/safe-pthread.h [new file with mode: 0644]
helgrind/tests/tc12_rwl_trivial.c
helgrind/tests/tc12_rwl_trivial.stderr.exp
helgrind/tests/tc12_rwl_trivial.stderr.exp-solaris
helgrind/tests/tc12_rwl_trivial.vgtest
helgrind/tests/tc20_verifywrap.c
helgrind/tests/tc20_verifywrap.stderr.exp
helgrind/tests/tc20_verifywrap.stderr.exp-glibc-2.18
helgrind/tests/tc20_verifywrap.stderr.exp-mips32
helgrind/tests/tc20_verifywrap.stderr.exp-mips32-b
helgrind/tests/tc20_verifywrap.stderr.exp-s390x
helgrind/tests/tc20_verifywrap.stderr.exp-solaris
helgrind/tests/tc20_verifywrap.vgtest