]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
10 years agoEnsure the testcase compiles with clang.
Florian Krohm [Mon, 31 Aug 2015 21:18:18 +0000 (21:18 +0000)] 
Ensure the testcase compiles with clang.
clang up to and including 3.6.2 does not recognise the fxsave64
and fxrstor64 mnemonics. It does recognise rex64/fxsave etc..
Related to BZ #339636.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15606

10 years agoComment out unused functions to avoid clang warnings.
Florian Krohm [Mon, 31 Aug 2015 20:33:36 +0000 (20:33 +0000)] 
Comment out unused functions to avoid clang warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15605

10 years agoNote changed command line option defaults.
Julian Seward [Mon, 31 Aug 2015 15:33:17 +0000 (15:33 +0000)] 
Note changed command line option defaults.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15604

10 years agoChange the default setting for --dsymutil from =no to =yes, since
Julian Seward [Mon, 31 Aug 2015 14:37:25 +0000 (14:37 +0000)] 
Change the default setting for --dsymutil from =no to =yes, since
in practice it needs to be permanently enabled on OS X.  No change
on other platforms.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15603

10 years agoRevisit r15601 (Change the --smc-check default value to =all-non-file.)
Julian Seward [Mon, 31 Aug 2015 14:24:14 +0000 (14:24 +0000)] 
Revisit r15601 (Change the --smc-check default value to =all-non-file.)
to restrict the change to those architectures that do provide automatic
D-I coherence (x86, amd64, s390x).  This commit restores the default
value for all other architectures back to its pre r15601 state, so as not
to burden those architectures unnecessarily with =all-non-file.

Also, this rewrites the relevant manual section.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15602

10 years agoChange the --smc-check default value to =all-non-file.
Julian Seward [Mon, 31 Aug 2015 13:05:35 +0000 (13:05 +0000)] 
Change the --smc-check default value to =all-non-file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15601

10 years agoMake --partial-loads-ok=yes the default on all platforms, not just OS X.
Julian Seward [Mon, 31 Aug 2015 10:36:02 +0000 (10:36 +0000)] 
Make --partial-loads-ok=yes the default on all platforms, not just OS X.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15600

10 years agouse verbosity 1 to report multiple termination of gdbserver,
Philippe Waroquiers [Sun, 30 Aug 2015 15:44:07 +0000 (15:44 +0000)] 
use verbosity 1 to report multiple termination of gdbserver,
this can happen e.g.  in case of irrecoverable execve failure.

This log was making tests fail randomly: the double termination
can only occur if gdbsrv was initialised.
After fork, gdbsrv is initialised by the next scheduler gdbsrv
activity check (by default, every 5000 blocks).

As a double termination has no effect, switch the trace to level 1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15599

10 years agoSmall updates in NEWS
Philippe Waroquiers [Sat, 29 Aug 2015 12:14:42 +0000 (12:14 +0000)] 
Small updates in NEWS
* Now that gdb 7.10 is out, reference the release for target remote exec file
* fix typo

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15598

10 years agoChange default value for --keep-stacktraces has been changed to alloc-and-free
Philippe Waroquiers [Sat, 29 Aug 2015 10:45:26 +0000 (10:45 +0000)] 
Change default value for --keep-stacktraces has been changed to alloc-and-free
Default value changed following discussion on valdev.

Giving more information for errors with freed blocks can help
when investigating difficult problems (e.g. double free, programs
using 'cleanup list' collecting different types of memory, ...)

Regression tested on various setup (x86, ppc64, s390x, amd64, debian or fedora)

Tests that have only one exp files have been updated to use the output
of the new default value in their .exp file.

Tests having more than one exp file have been changed so as to
specify explicitely the previous clo default value (i.e. adding
 --keep-stacktraces=alloc-then-free in the vgtest file).

Possibly, some tests might fail on non tested platforms
(e.g. mips, macos, solaris, tilegx).
Fixes should be straightforward, using one of the above fix techniques.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15597

10 years agoIntercept platform_memchr$VARIANT$Haswell on OS X
Rhys Kidd [Sat, 29 Aug 2015 07:42:40 +0000 (07:42 +0000)] 
Intercept platform_memchr$VARIANT$Haswell on OS X
bz#351756

On OS X 10.10 (without Haswell hardware)

Before:

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

After:

== 595 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@15596

10 years agoAnnounce new command line option.
Florian Krohm [Thu, 27 Aug 2015 17:56:56 +0000 (17:56 +0000)] 
Announce new command line option.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15595

10 years agoNew memcheck command line option: --expensive-definedness-check
Florian Krohm [Thu, 27 Aug 2015 17:50:47 +0000 (17:50 +0000)] 
New memcheck command line option: --expensive-definedness-check
Pertains to BZ #340392

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15594

10 years agoFirst pass at tidying up the release notes for 3.11.0.
Julian Seward [Thu, 27 Aug 2015 12:43:32 +0000 (12:43 +0000)] 
First pass at tidying up the release notes for 3.11.0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15593

10 years agoSupport
Florian Krohm [Wed, 26 Aug 2015 20:24:47 +0000 (20:24 +0000)] 
Support
  envB: var=value
in the .vgtest file. This is similar to "env:" except the environment
variable is set prior to invoking progB.
Adapt gdbserver_tests/nlgone_exit.vgtest to fix a problem reported
by Matthias Schwarzott <zzam@gentoo.org>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15592

10 years agoFilter out gdb file transfer warnings in gdbserver_tests/filter_stderr.
Mark Wielaard [Wed, 26 Aug 2015 10:27:19 +0000 (10:27 +0000)] 
Filter out gdb file transfer warnings in gdbserver_tests/filter_stderr.

GDB is correct that we don't support that at the moment.
See bug #351792 - vgdb doesn't support remote file transfers.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15591

10 years agoFix a leak of the abbrev hash table when --read-var-info=yes is given
Philippe Waroquiers [Tue, 25 Aug 2015 21:39:44 +0000 (21:39 +0000)] 
Fix a leak of the abbrev hash table when --read-var-info=yes is given

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15590

10 years agoAdd safe-pthread.h to helgrind/tests/Makefile.am noinst_HEADERS.
Mark Wielaard [Tue, 25 Aug 2015 13:07:42 +0000 (13:07 +0000)] 
Add safe-pthread.h to helgrind/tests/Makefile.am noinst_HEADERS.

Otherwise the header file won't show up in the dist tar ball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15589

10 years agoUse sigjmp_buf
Tom Hughes [Mon, 24 Aug 2015 19:26:56 +0000 (19:26 +0000)] 
Use sigjmp_buf

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15588

10 years agoRestore signal masks when recovering from xend related signals
Tom Hughes [Mon, 24 Aug 2015 19:10:06 +0000 (19:10 +0000)] 
Restore signal masks when recovering from xend related signals

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15587

10 years agoUse memset + assign to VgdbShared, to avoid memcheck warning that
Philippe Waroquiers [Sun, 23 Aug 2015 16:57:55 +0000 (16:57 +0000)] 
Use memset + assign to VgdbShared, to avoid memcheck warning that
uninit holes bytes are written to the shared file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15586

10 years agodocs: env variable handling behaviour consistent between OS X and Linux, thus remove...
Rhys Kidd [Sun, 23 Aug 2015 14:37:47 +0000 (14:37 +0000)] 
docs: env variable handling behaviour consistent between OS X and Linux, thus remove redundant comment and #ifdef. n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15585

10 years agoPreliminary support for OS X 10.11 (El Capitan) documentation. bz#348909.
Rhys Kidd [Sun, 23 Aug 2015 08:27:45 +0000 (08:27 +0000)] 
Preliminary support for OS X 10.11 (El Capitan) documentation. bz#348909.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15584

10 years agoDistinguish properly when to establish the client data segment.
Ivo Raisr [Sat, 22 Aug 2015 22:08:43 +0000 (22:08 +0000)] 
Distinguish properly when to establish the client data segment.
Initial data segment is established (see initimg-solaris.c for rationale):
- directly during client program image initialization,
- or on demand when the executed program is the runtime linker itself,
  after it has loaded its target dynamic executable (see PRE(sys_mmapobj)),
  or when the first brk() syscall is made.

More preparatory work for ldsoexec support.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15583

10 years agoFix warning signed unsigned comparison in m_oset.c :
Philippe Waroquiers [Fri, 21 Aug 2015 22:34:53 +0000 (22:34 +0000)] 
Fix warning signed unsigned comparison in m_oset.c :
../../coregrind/m_oset.c:413:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15582

10 years agoUse VG_(arena_memalign) for thread array rather than VG_(malloc)-ed + align
Philippe Waroquiers [Fri, 21 Aug 2015 22:22:27 +0000 (22:22 +0000)] 
Use VG_(arena_memalign) for thread array rather than VG_(malloc)-ed + align

Objective is to avoid a 'possibly lost' leak when self-hosting
(and re-uses the already existing align logic in m_mallocfree.c)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15581

10 years agoUpdate.
Julian Seward [Fri, 21 Aug 2015 14:49:47 +0000 (14:49 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15580

10 years agoBug 346185 - Fix typo saving altivec register v24.
Julian Seward [Fri, 21 Aug 2015 13:43:07 +0000 (13:43 +0000)] 
Bug 346185 - Fix typo saving altivec register v24.
Patch from Dave Lerner (david.lerner26@sbcglobal.net).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15579

10 years agoMore copyright date changes for 2015 (fallout from r15577)
Julian Seward [Fri, 21 Aug 2015 13:38:02 +0000 (13:38 +0000)] 
More copyright date changes for 2015 (fallout from r15577)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15578

10 years agoUpdate copyright dates, to include 2015. No functional change.
Julian Seward [Fri, 21 Aug 2015 11:32:26 +0000 (11:32 +0000)] 
Update copyright dates, to include 2015.  No functional change.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15577

10 years agoUpdate copyright dates, to include 2015. No functional change.
Julian Seward [Fri, 21 Aug 2015 11:29:16 +0000 (11:29 +0000)] 
Update copyright dates, to include 2015.  No functional change.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3181

10 years agoRemove non-ASCII characters from this file. No functional change.
Julian Seward [Fri, 21 Aug 2015 11:04:48 +0000 (11:04 +0000)] 
Remove non-ASCII characters from this file.  No functional change.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15576

10 years agoUpdate.
Julian Seward [Fri, 21 Aug 2015 10:53:32 +0000 (10:53 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15575

10 years agoWhen scanning the statement list for bogus literals we
Florian Krohm [Thu, 20 Aug 2015 22:45:41 +0000 (22:45 +0000)] 
When scanning the statement list for bogus literals we
can stop once the first such literal was found. No need
to scan further.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15574

10 years agoFix incorrect header guard. Reported by giacomopoz@gmail.com
Florian Krohm [Thu, 20 Aug 2015 21:41:28 +0000 (21:41 +0000)] 
Fix incorrect header guard. Reported by giacomopoz@gmail.com
Fixes BZ #351531

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15573

10 years agoInitial data (brk) segment is setup on demand, when a first brk() syscall
Ivo Raisr [Thu, 20 Aug 2015 20:25:19 +0000 (20:25 +0000)] 
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

10 years agoReading from TPIDRURO_EL0 and PMUSERENR_EL0: make these properly
Julian Seward [Thu, 20 Aug 2015 16:53:18 +0000 (16:53 +0000)] 
Reading from TPIDRURO_EL0 and PMUSERENR_EL0: make these properly
conditional in Thumb mode.  They never were before, which strikes
me as incorrect.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3180

10 years agoImplement reading from PMUSERENR_EL0, making it return zero.
Julian Seward [Thu, 20 Aug 2015 16:17:11 +0000 (16:17 +0000)] 
Implement reading from PMUSERENR_EL0, making it return zero.
Fixes (for some definition of "fix") #345984.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3179

10 years agoFollow-up fix for r15565.
Ivo Raisr [Thu, 20 Aug 2015 05:50:49 +0000 (05:50 +0000)] 
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

10 years agoAlso install sigsegv handler in safe-pthread tests wrapper.
Mark Wielaard [Wed, 19 Aug 2015 13:26:28 +0000 (13:26 +0000)] 
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

10 years agoFollow-up fix for r15565: sa_restorer should not be used. n-i-bz.
Rhys Kidd [Wed, 19 Aug 2015 12:18:31 +0000 (12:18 +0000)] 
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

10 years agoFix comparison in function VG_(iseqsigset).
Florian Krohm [Wed, 19 Aug 2015 10:09:08 +0000 (10:09 +0000)] 
Fix comparison in function VG_(iseqsigset).
Patch by dcb314@hotmail.com
Fixes BZ #351474.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15568

10 years agoInstall the SIGILL handler everywhere so we get consistent
Tom Hughes [Wed, 19 Aug 2015 08:27:06 +0000 (08:27 +0000)] 
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

10 years agoImplement YIELD. Followup to #348377.
Julian Seward [Tue, 18 Aug 2015 19:55:16 +0000 (19:55 +0000)] 
Implement YIELD.  Followup to #348377.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3178

10 years agoHandle (unwanted) line number info in filter_defcfaexpr.
Mark Wielaard [Tue, 18 Aug 2015 14:34:49 +0000 (14:34 +0000)] 
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

10 years agoAttempt to work around issues with xend being executed unconditionally
Tom Hughes [Tue, 18 Aug 2015 10:29:20 +0000 (10:29 +0000)] 
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

10 years agoFix a second format string error observed whilst building on OSX 10.10.
Julian Seward [Tue, 18 Aug 2015 07:54:22 +0000 (07:54 +0000)] 
Fix a second format string error observed whilst building on OSX 10.10.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15564

10 years agoFix a format string error observed whilst building on OSX 10.10.
Julian Seward [Mon, 17 Aug 2015 21:19:19 +0000 (21:19 +0000)] 
Fix a format string error observed whilst building on OSX 10.10.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15563

10 years agoRuntime linker ld.so.1 can be now run under Valgrind on Solaris.
Ivo Raisr [Mon, 17 Aug 2015 19:13:12 +0000 (19:13 +0000)] 
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

10 years agoAdd bug338606 testfile to none/tests/scripts/Makefile.am EXTRA_DIST.
Mark Wielaard [Mon, 17 Aug 2015 15:18:02 +0000 (15:18 +0000)] 
Add bug338606 testfile to none/tests/scripts/Makefile.am EXTRA_DIST.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15561

10 years agoUpdate.
Julian Seward [Mon, 17 Aug 2015 14:03:16 +0000 (14:03 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15560

10 years agoImplement YIELD (encodings T1 and A1). Fixes #348377.
Julian Seward [Mon, 17 Aug 2015 13:55:41 +0000 (13:55 +0000)] 
Implement YIELD (encodings T1 and A1).  Fixes #348377.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3177

10 years agoAdd test cases for VCVT.{S,U}32.F32, S[n], S[n], #imm.
Julian Seward [Mon, 17 Aug 2015 08:23:31 +0000 (08:23 +0000)] 
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

10 years agoImplement VCVT.{S,U}32.F32, S[n], S[n], #imm. Fixes 342783.
Julian Seward [Mon, 17 Aug 2015 08:20:55 +0000 (08:20 +0000)] 
Implement VCVT.{S,U}32.F32, S[n], S[n], #imm.  Fixes 342783.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3176

10 years agoLoosen guarding conditions on "mov.w Reg, Reg" so as to allow
Julian Seward [Mon, 17 Aug 2015 07:29:07 +0000 (07:29 +0000)] 
Loosen guarding conditions on "mov.w Reg, Reg" so as to allow
reading or writing of SP.  Fixes #335618.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3175

10 years agoarm32: make sure we actually generate real 64-bit loads/stores for the
Julian Seward [Sun, 16 Aug 2015 17:23:50 +0000 (17:23 +0000)] 
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

10 years agoEnable building of ARMv8 crypto instruction tests, having finally
Julian Seward [Sun, 16 Aug 2015 12:18:26 +0000 (12:18 +0000)] 
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

10 years agoFix format string confusion that was somehow related to r15510.
Julian Seward [Sun, 16 Aug 2015 11:54:38 +0000 (11:54 +0000)] 
Fix format string confusion that was somehow related to r15510.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15556

10 years agoAdd test cases for PRFM (register). Pertains to #345177.
Julian Seward [Sun, 16 Aug 2015 11:46:16 +0000 (11:46 +0000)] 
Add test cases for PRFM (register).  Pertains to #345177.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15555

10 years agoImplement PRFM (register). Fixes #345177.
Julian Seward [Sun, 16 Aug 2015 11:44:30 +0000 (11:44 +0000)] 
Implement PRFM (register).  Fixes #345177.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3174

10 years agoUpdate script solaris/build_solaris_package to take into account
Ivo Raisr [Sat, 15 Aug 2015 19:51:35 +0000 (19:51 +0000)] 
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

10 years agoIncrease test coverage on OS X, by re-enabling the none/tests/amd64/avx2-1 regression...
Rhys Kidd [Sat, 15 Aug 2015 12:21:42 +0000 (12:21 +0000)] 
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

10 years agoPreliminary OS X memalign() shim work, although this specific regression test remains...
Rhys Kidd [Sat, 15 Aug 2015 11:40:27 +0000 (11:40 +0000)] 
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

10 years agoIncrease test coverage on OS X, by re-enabling the memcheck/tests/amd64/xsave-avx...
Rhys Kidd [Sat, 15 Aug 2015 11:16:35 +0000 (11:16 +0000)] 
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

10 years agoIncrease test coverage on OS X, by re-enabling the none/tests/amd64/avx-1 regression...
Rhys Kidd [Sat, 15 Aug 2015 11:04:02 +0000 (11:04 +0000)] 
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

10 years agoIncrease test coverage on OS X, by re-enabling the none/tests/*/movbe regression...
Rhys Kidd [Sat, 15 Aug 2015 10:47:55 +0000 (10:47 +0000)] 
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

10 years agoPlumb through memalign16() rather than having four implementations of the same code...
Rhys Kidd [Sat, 15 Aug 2015 08:55:14 +0000 (08:55 +0000)] 
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

10 years agoUpdate for VEX r3173.
Rhys Kidd [Sat, 15 Aug 2015 07:40:06 +0000 (07:40 +0000)] 
Update for VEX r3173.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15547

10 years agovex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xB (ROUNDSD) on OS X
Rhys Kidd [Sat, 15 Aug 2015 07:39:27 +0000 (07:39 +0000)] 
vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xB (ROUNDSD) on OS X
bz#350062

On OS X 10.10

Before:

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

After:

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

git-svn-id: svn://svn.valgrind.org/vex/trunk@3173

10 years agoAdd regression test for bz#350062 - vex x86->IR: unhandled instruction bytes: 0x66...
Rhys Kidd [Sat, 15 Aug 2015 07:06:57 +0000 (07:06 +0000)] 
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

11 years agoNewer Solaris has added /proc/self/cmdline and /proc/<pid>/cmdline.
Ivo Raisr [Fri, 14 Aug 2015 20:50:11 +0000 (20:50 +0000)] 
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

11 years agoBug 348345 - Assertion fails for negative lineno
Julian Seward [Fri, 14 Aug 2015 09:02:46 +0000 (09:02 +0000)] 
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

11 years agoUpdate.
Julian Seward [Fri, 14 Aug 2015 08:29:49 +0000 (08:29 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15543

11 years ago345338 - TIOCGSERIAL and TIOCSSERIAL ioctl support on Linux
Julian Seward [Fri, 14 Aug 2015 08:17:37 +0000 (08:17 +0000)] 
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

11 years agoBug 349034 - Add Lustre ioctls LL_IOC_GROUP_LOCK and LL_IOC_GROUP_UNLOCK
Julian Seward [Fri, 14 Aug 2015 08:05:35 +0000 (08:05 +0000)] 
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

11 years agoFix 350202 - Add limited param to 'monitor block_list'
Philippe Waroquiers [Thu, 13 Aug 2015 22:49:32 +0000 (22:49 +0000)] 
Fix 350202 - Add limited param to 'monitor block_list'

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15540

11 years agoRemove 343173 helgrind crash during stack unwind from 3_10_BUGSTATUS.txt
Philippe Waroquiers [Thu, 13 Aug 2015 22:42:34 +0000 (22:42 +0000)] 
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

11 years agoImprove mmap MAP_HUGETLB support.
Florian Krohm [Thu, 13 Aug 2015 20:35:03 +0000 (20:35 +0000)] 
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

11 years agoBug 339563 - The DVB demux DMX_STOP ioctl doesn't have a wrapper.
Julian Seward [Thu, 13 Aug 2015 14:53:17 +0000 (14:53 +0000)] 
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

11 years agodo_cmpxchg8b(): fix incorrect inline assembly (wrong register name)
Julian Seward [Thu, 13 Aug 2015 14:46:10 +0000 (14:46 +0000)] 
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

11 years agoAdd test cases for PCMPxSTRx case 0x18.
Julian Seward [Thu, 13 Aug 2015 14:19:48 +0000 (14:19 +0000)] 
Add test cases for PCMPxSTRx case 0x18.
Pertains to #348574, vex r3172.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15535

11 years agoHandle PCMPxSTRx case 0x18. Fixes #348574.
Julian Seward [Thu, 13 Aug 2015 14:18:42 +0000 (14:18 +0000)] 
Handle PCMPxSTRx case 0x18.  Fixes #348574.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3172

11 years agoAdd test cases for PCMPxSTRx case 0x42.
Julian Seward [Thu, 13 Aug 2015 13:47:02 +0000 (13:47 +0000)] 
Add test cases for PCMPxSTRx case 0x42.
Pertains to #339820, vex r3171.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15534

11 years agoHandle PCMPxSTRx case 0x42. Fixes #339820.
Julian Seward [Thu, 13 Aug 2015 13:44:33 +0000 (13:44 +0000)] 
Handle PCMPxSTRx case 0x42.  Fixes #339820.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3171

11 years agoUpdate following amd64 AVX front end fixes.
Julian Seward [Thu, 13 Aug 2015 12:55:09 +0000 (12:55 +0000)] 
Update following amd64 AVX front end fixes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15533

11 years agoAdd test cases for missing AVX VCMPPD/VCMPPS cases.
Julian Seward [Thu, 13 Aug 2015 12:42:28 +0000 (12:42 +0000)] 
Add test cases for missing AVX VCMPPD/VCMPPS cases.
Pertains to vex r3170.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15532

11 years agoFix a bunch of missing AVX VCMPPD/VCMPPS cases.
Julian Seward [Thu, 13 Aug 2015 12:38:45 +0000 (12:38 +0000)] 
Fix a bunch of missing AVX VCMPPD/VCMPPS cases.
Fixes #342571, #346476, #348387, #350593.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3170

11 years agoWrite a SysRes value as an unsigned number.
Florian Krohm [Thu, 13 Aug 2015 12:27:48 +0000 (12:27 +0000)] 
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

11 years agoFix the regression from r15518 which broke builds
Ivo Raisr [Wed, 12 Aug 2015 16:03:16 +0000 (16:03 +0000)] 
Fix the regression from r15518 which broke builds
on older Solaris releases.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15530

11 years agoUpdate.
Julian Seward [Wed, 12 Aug 2015 14:47:26 +0000 (14:47 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15529

11 years agoProperly guard memcheck/tests/amd64/xsave-avx. This test relies on memalign(), which...
Rhys Kidd [Wed, 12 Aug 2015 14:19:09 +0000 (14:19 +0000)] 
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

11 years agoFix svn propset for memcheck/tests/amd64/xsave-avx since r15524. n-i-bz.
Rhys Kidd [Wed, 12 Aug 2015 13:42:42 +0000 (13:42 +0000)] 
Fix svn propset for memcheck/tests/amd64/xsave-avx since r15524. n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15527

11 years agovalgrind.h: Suppress client request code generation on x32
Bart Van Assche [Wed, 12 Aug 2015 13:29:10 +0000 (13:29 +0000)] 
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

11 years agoFix clobber.
Florian Krohm [Wed, 12 Aug 2015 13:24:33 +0000 (13:24 +0000)] 
Fix clobber.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15525

11 years agoAdd test cases for AVX XSAVE and XRSTOR instructions.
Julian Seward [Wed, 12 Aug 2015 11:35:27 +0000 (11:35 +0000)] 
Add test cases for AVX XSAVE and XRSTOR instructions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15524

11 years agoEnhance VG_(machine_get_hwcaps) to check enough stuff to ensure
Julian Seward [Wed, 12 Aug 2015 11:16:47 +0000 (11:16 +0000)] 
Enhance VG_(machine_get_hwcaps) to check enough stuff to ensure
that VEX's XSAVE/XRSTOR implementation will work correctly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15523

11 years agoHandle new ILGop_IdentV128 introduced by vex r3169.
Julian Seward [Wed, 12 Aug 2015 11:16:23 +0000 (11:16 +0000)] 
Handle new ILGop_IdentV128 introduced by vex r3169.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15522

11 years agoImplement XSAVE/XRSTOR for AVX (state components 0, 1 and 2)
Julian Seward [Wed, 12 Aug 2015 11:15:53 +0000 (11:15 +0000)] 
Implement XSAVE/XRSTOR for AVX (state components 0, 1 and 2)

Refactor existing FXSAVE / FXRSTOR implementation so as to use
the new code, since these are sub-cases of the general XSAVE/XRSTOR
functionality.

Add a new CPUID level to indicate CPUs which are AVX2 compatible,
and enable it by default on AVX2 compatible hosts.

For both the AVX and AVX2 simulated CPUIDs, claim that XSAVEOPT is not
supported, in an attempt to avoid having to implement it.

Remove CPUID kludgery to do with OSX 10.10 (Yosemite) in order to
persuade it not to use XSAVE/XRSTOR.

libvex_ir.h: add new guarded load conversion "ILGop_IdentV128"
as required by XSAVE/XRSTOR support.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3169

11 years agoRemove extraneous "-x" which I suspect is debugging support that got
Julian Seward [Wed, 12 Aug 2015 10:59:52 +0000 (10:59 +0000)] 
Remove extraneous "-x" which I suspect is debugging support that got
acidentally left in by r15291.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15521

11 years agoFor those testcases that crash one way or another
Florian Krohm [Tue, 11 Aug 2015 20:58:15 +0000 (20:58 +0000)] 
For those testcases that crash one way or another
remove any core files after running the test.
Patch by Matthias Schwarzott <zzam@gentoo.org>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15520