12018 Commits

Author SHA1 Message Date
Florian Krohm
f82fedcc39 Fix incorrect header guard. Reported by giacomopoz@gmail.com
Fixes BZ #351531


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15573
2015-08-20 21:41:28 +00:00
Ivo Raisr
542fa886dc Initial data (brk) segment is setup on demand, when a first brk() syscall
is made. It cannot be established during client image initialization because
that would conflict with a temporary stack which ld.so.1 (when executed directly)
uses for loading the target dynamic executable.
See PRE(sys_brk) in syswrap-solaris.c.

Preparatory work for ldsoexec support.
n-i-bz



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15572
2015-08-20 20:25:19 +00:00
Ivo Raisr
8372cfdb0f Follow-up fix for r15565.
Expected output of some helgrind tests slightly differed on Solaris.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15571
2015-08-20 05:50:49 +00:00
Mark Wielaard
9b322bb026 Also install sigsegv handler in safe-pthread tests wrapper.
In case we do recognize the xend, but detect it is invalid
(used outside a transaction) we generate a segsegv instead
of a sigill. Handle that in the same way in the test case.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15570
2015-08-19 13:26:28 +00:00
Rhys Kidd
b9389efb87 Follow-up fix for r15565: sa_restorer should not be used. n-i-bz.
It is obsolete and not specified by POSIX. See man sigaction on Linux.
No regressions reported.

The following error may be seen on platforms that don't implement this extension:

depbase=`echo tc12_rwl_trivial.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    gcc -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../include -I../../coregrind -I../../include -I../../VEX/pub -I../../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1 -DVGPV_amd64_darwin_vanilla=1 -DVGA_SEC_x86=1 -DVGP_SEC_amd64_darwin=1  -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector  -Wno-format-extra-args -Wno-literal-range -Wno-tautological-constant-out-of-range-compare -Wno-self-assign -Wno-string-plus-int -Wno-uninitialized -Wno-unused-value  -arch x86_64  -MT tc12_rwl_trivial.o -MD -MP -MF $depbase.Tpo -c -o tc12_rwl_trivial.o tc12_rwl_trivial.c &&\
    mv -f $depbase.Tpo $depbase.Po
In file included from tc12_rwl_trivial.c:8:
./safe-pthread.h:37:7: error: no member named 'sa_restorer' in 'struct sigaction'
   sa.sa_restorer = NULL;
   ~~ ^
1 error generated.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15569
2015-08-19 12:18:31 +00:00
Florian Krohm
6c715bf33e Fix comparison in function VG_(iseqsigset).
Patch by dcb314@hotmail.com
Fixes BZ #351474.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15568
2015-08-19 10:09:08 +00:00
Tom Hughes
7678f91cd1 Install the SIGILL handler everywhere so we get consistent
stacks and don't have to worry about __GLIBC_PREREQ not being
defined on all platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15567
2015-08-19 08:27:06 +00:00
Mark Wielaard
70848c7696 Handle (unwanted) line number info in filter_defcfaexpr.
This is just a testsuite cleanup. In the case defcfaexpr was compiled
with line number information (which might happen in some distro builds)
just throw it away because the expected output just wants to see the
function names.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15566
2015-08-18 14:34:49 +00:00
Tom Hughes
b22d60778f 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
2015-08-18 10:29:20 +00:00
Julian Seward
6d6732e9df Fix a second format string error observed whilst building on OSX 10.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15564
2015-08-18 07:54:22 +00:00
Julian Seward
7540350321 Fix a format string error observed whilst building on OSX 10.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15563
2015-08-17 21:19:19 +00:00
Ivo Raisr
707501d444 Runtime linker ld.so.1 can be now run under Valgrind on Solaris.
Fixes BZ#351386.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15562
2015-08-17 19:13:12 +00:00
Mark Wielaard
d66df29a90 Add bug338606 testfile to none/tests/scripts/Makefile.am EXTRA_DIST.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15561
2015-08-17 15:18:02 +00:00
Julian Seward
1c495d6a5e Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15560
2015-08-17 14:03:16 +00:00
Julian Seward
3e5636a4ca Add test cases for VCVT.{S,U}32.F32, S[n], S[n], #imm.
Pertains to #342783.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15559
2015-08-17 08:23:31 +00:00
Julian Seward
683436b8ea arm32: make sure we actually generate real 64-bit loads/stores for the
64 bit tests, rather than two 32 bit transactions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15558
2015-08-16 17:23:50 +00:00
Julian Seward
3953fe144c Enable building of ARMv8 crypto instruction tests, having finally
figured out what the relevant gcc flag is.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15557
2015-08-16 12:18:26 +00:00
Julian Seward
bbb480bad2 Fix format string confusion that was somehow related to r15510.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15556
2015-08-16 11:54:38 +00:00
Julian Seward
0f002eb44d Add test cases for PRFM (register). Pertains to #345177.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15555
2015-08-16 11:46:16 +00:00
Ivo Raisr
e4ef13d89c Update script solaris/build_solaris_package to take into account
SVN version control software used by Valgrind.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15554
2015-08-15 19:51:35 +00:00
Rhys Kidd
b6efb6f0be Increase test coverage on OS X, by re-enabling the none/tests/amd64/avx2-1 regression test.
n-i-bz

(Unfortunately I don’t have right here the hw support, but build environment works)

$ perl tests/vg_regtest none/tests/amd64/avx2-1
avx2-1:          (skipping, prereq failed: test -x avx2-1 && ../../../tests/x86_amd64_features amd64-avx)

== 0 tests, 0 stderr failures, 0 stdout failures, 0 stderrB failures, 0 stdoutB failures, 0 post failures ==


On OS X 10.10

Before:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15553
2015-08-15 12:21:42 +00:00
Rhys Kidd
74d7f1cdfa Preliminary OS X memalign() shim work, although this specific regression test remains guarded due to clang build issues with _randArray.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15552
2015-08-15 11:40:27 +00:00
Rhys Kidd
774dbf0a73 Increase test coverage on OS X, by re-enabling the memcheck/tests/amd64/xsave-avx regression tests with a handy memalign() shim.
n-i-bz

(Unfortunately I don’t have right here the hw support, but build environment works)

$ perl tests/vg_regtest memcheck/tests/amd64/xsave-avx
xsave-avx:       (skipping, prereq failed: test -x xsave-avx && ../../../tests/x86_amd64_features amd64-avx)

== 0 tests, 0 stderr failures, 0 stdout failures, 0 stderrB failures, 0 stdoutB failures, 0 post failures ==


On OS X 10.10

Before:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15551
2015-08-15 11:16:35 +00:00
Rhys Kidd
be875fe3ac Increase test coverage on OS X, by re-enabling the none/tests/amd64/avx-1 regression tests with a handy memalign() shim.
n-i-bz

(Unfortunately I don’t have right here the hw support, but build environment works)

$ perl tests/vg_regtest none/tests/amd64/avx-1
avx-1:           (skipping, prereq failed: test -x avx-1 && ../../../tests/x86_amd64_features amd64-avx)

== 0 tests, 0 stderr failures, 0 stdout failures, 0 stderrB failures, 0 stdoutB failures, 0 post failures ==


On OS X 10.10

Before:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15550
2015-08-15 11:04:02 +00:00
Rhys Kidd
8a014b4f97 Increase test coverage on OS X, by re-enabling the none/tests/*/movbe regression tests with a handy memalign() shim.
n-i-bz

$ perl tests/vg_regtest none/tests/x86/movbe none/tests/amd64/movbe
movbe:           valgrind   -q ./movbe 
movbe:           valgrind   -q ./movbe 

== 2 tests, 0 stderr failures, 0 stdout failures, 0 stderrB failures, 0 stdoutB failures, 0 post failures ==


On OS X 10.10

Before:

== 592 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 594 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15549
2015-08-15 10:47:55 +00:00
Rhys Kidd
17aa7a30f6 Plumb through memalign16() rather than having four implementations of the same code. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15548
2015-08-15 08:55:14 +00:00
Rhys Kidd
4208c0e158 Update for VEX r3173.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15547
2015-08-15 07:40:06 +00:00
Rhys Kidd
c42c7b5dce Add regression test for bz#350062 - vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xB (ROUNDSD) on OS X.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15546
2015-08-15 07:06:57 +00:00
Ivo Raisr
b66705c636 Newer Solaris has added /proc/self/cmdline and /proc/<pid>/cmdline.
Add support for it in the syswrap machinery and test it more thoroughly.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15545
2015-08-14 20:50:11 +00:00
Julian Seward
8c3ef7eb80 Bug 348345 - Assertion fails for negative lineno
(in ML_(addLineInfo))
Patch from Jim Garrison (jim@garrison.cc)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15544
2015-08-14 09:02:46 +00:00
Julian Seward
a0f2ed1dac Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15543
2015-08-14 08:29:49 +00:00
Julian Seward
e421887527 345338 - TIOCGSERIAL and TIOCSSERIAL ioctl support on Linux
Patch from Martin Ling (martin-kdebugs@earth.li)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15542
2015-08-14 08:17:37 +00:00
Julian Seward
396f02357d Bug 349034 - Add Lustre ioctls LL_IOC_GROUP_LOCK and LL_IOC_GROUP_UNLOCK
Patch from Frank Zago (fzago@cray.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15541
2015-08-14 08:05:35 +00:00
Philippe Waroquiers
b6876b9917 Fix 350202 - Add limited param to 'monitor block_list'
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15540
2015-08-13 22:49:32 +00:00
Philippe Waroquiers
aaa87fa0eb Remove 343173 helgrind crash during stack unwind from 3_10_BUGSTATUS.txt
as it was fixed some time ago (and announced in NEWS)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15539
2015-08-13 22:42:34 +00:00
Florian Krohm
cdf7f871da Improve mmap MAP_HUGETLB support.
This is a follow up to r14682:

When an mmap retry is done without any constraints, the kernel can
place it into free or reservation segments (i.e. anywhere there is no
mapping yet).
In r14682 a sanity check made the hypothesis that the new mapping was
in a free segment, but it does not hold at least on Linux 3.12 and 3.16
on amd64 (tested under Debian).
There is no risk in allowing the mapping to end up in (what was
previously) a reservation at this point, because it is also allowed.

Patch by Guillaume Knispel <xilun0@gmail.com>. Fixes BZ #348269.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15538
2015-08-13 20:35:03 +00:00
Julian Seward
a2df7642ef Bug 339563 - The DVB demux DMX_STOP ioctl doesn't have a wrapper.
Patch from mchehab@infradead.org (Mauro Carvalho Chehab).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15537
2015-08-13 14:53:17 +00:00
Julian Seward
bda73f5b54 do_cmpxchg8b(): fix incorrect inline assembly (wrong register name)
and updated expected result.  n-i-bz.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15536
2015-08-13 14:46:10 +00:00
Julian Seward
19a7577acd Add test cases for PCMPxSTRx case 0x18.
Pertains to #348574, vex r3172.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15535
2015-08-13 14:19:48 +00:00
Julian Seward
1172cbc47a Add test cases for PCMPxSTRx case 0x42.
Pertains to #339820, vex r3171.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15534
2015-08-13 13:47:02 +00:00
Julian Seward
a34651d40c Update following amd64 AVX front end fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15533
2015-08-13 12:55:09 +00:00
Julian Seward
a6af6dabd9 Add test cases for missing AVX VCMPPD/VCMPPS cases.
Pertains to vex r3170.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15532
2015-08-13 12:42:28 +00:00
Florian Krohm
673a4411f0 Write a SysRes value as an unsigned number.
Previously, whether the bitpattern was interpreted as a 
signed or unsigned value depended on the platform.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15531
2015-08-13 12:27:48 +00:00
Ivo Raisr
166c052df4 Fix the regression from r15518 which broke builds
on older Solaris releases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15530
2015-08-12 16:03:16 +00:00
Julian Seward
4decfe3ed5 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15529
2015-08-12 14:47:26 +00:00
Rhys Kidd
59e930ed5e Properly guard memcheck/tests/amd64/xsave-avx. This test relies on memalign(), which is not present on OS X. Along with a few other avx tests needs refactoring to use posix_memalign() down the track. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15528
2015-08-12 14:19:09 +00:00
Rhys Kidd
b5663503f4 Fix svn propset for memcheck/tests/amd64/xsave-avx since r15524. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15527
2015-08-12 13:42:42 +00:00
Bart Van Assche
ade9e09dfb valgrind.h: Suppress client request code generation on x32
Ensure that no code is generated for client requests on x32.

From: Matthias Schwarzott <zzam@gentoo.org>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15526
2015-08-12 13:29:10 +00:00
Florian Krohm
b637aed262 Fix clobber.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15525
2015-08-12 13:24:33 +00:00
Julian Seward
859a4a3f3c Add test cases for AVX XSAVE and XRSTOR instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15524
2015-08-12 11:35:27 +00:00