]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
9 years agoRename the new option --expensive-definedness-check introduced in
Julian Seward [Tue, 1 Sep 2015 08:48:04 +0000 (08:48 +0000)] 
Rename the new option --expensive-definedness-check introduced in
r15594 to --expensive-definedness-checks.  (Pluralised it, iow.)

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

9 years agoclang miscompiles faultstatus.c function test5().
Florian Krohm [Mon, 31 Aug 2015 22:26:03 +0000 (22:26 +0000)] 
clang miscompiles faultstatus.c function test5().
First it choses %eax as the 1st operand of the bound insn.
Then it complains that %eax is invalid.

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

9 years agoSmall additional change in NEWS for block_list
Philippe Waroquiers [Mon, 31 Aug 2015 22:15:40 +0000 (22:15 +0000)] 
Small additional change in NEWS for block_list

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

9 years agoHave block_list showing heuristic used for a block (if block was
Philippe Waroquiers [Mon, 31 Aug 2015 22:08:47 +0000 (22:08 +0000)] 
Have block_list showing heuristic used for a block (if block was
found via an heuristic)

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

9 years agoAdd support for ldsoexec on Solaris.
Ivo Raisr [Mon, 31 Aug 2015 21:31:09 +0000 (21:31 +0000)] 
Add support for ldsoexec on Solaris.
Solaris runtime linker allows to run dynamically linked programs indirectly, as:
    ld.so.1 <dynamic_executable>
This is now possible under Valgrind as well.

Fixes BZ#351858.

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 years agoIn filter_stderr_basic do not remove lines beginning with
Florian Krohm [Tue, 11 Aug 2015 20:37:28 +0000 (20:37 +0000)] 
In filter_stderr_basic do not remove lines beginning with
--pid:
i.e. debug output. Asserts originating from the address space
manager look exactly like that and we do not want to filter those
out by default.
Remove some specialised filter scripts that are no longer needed
and update a few .vgtest files accordingly.

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

10 years agoAdd support for repository cache protocol version 26.
Ivo Raisr [Tue, 11 Aug 2015 09:12:40 +0000 (09:12 +0000)] 
Add support for repository cache protocol version 26.
Patch contributed by Tomas Jedlicka <jedlickat@gmail.com>.
n-i-bz

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

10 years agoBug #351140 arm64 syscalls setuid (146) and setresgid (149) not implemented.
Mark Wielaard [Sun, 9 Aug 2015 22:37:52 +0000 (22:37 +0000)] 
Bug #351140 arm64 syscalls setuid (146) and setresgid (149) not implemented.

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

10 years agoWhen profiling memory events in memcheck, event counts larget
Florian Krohm [Sun, 9 Aug 2015 20:55:39 +0000 (20:55 +0000)] 
When profiling memory events in memcheck, event counts larget
than INT_MAX have been observed in practice. Make counters
64 bit entities.

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

10 years agoConsistently use exit code 1 (== POSIX's EXIT_FAILURE) if things
Florian Krohm [Sun, 9 Aug 2015 20:29:18 +0000 (20:29 +0000)] 
Consistently use exit code 1 (== POSIX's EXIT_FAILURE) if things
go wrong. As we can tell from the error messages what whent wrong
there is no need to have different exit codes to distinguish.
Spotted by Matthias Schwarzott.

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

10 years agoFix a few function declarations.
Florian Krohm [Sun, 9 Aug 2015 16:27:44 +0000 (16:27 +0000)] 
Fix a few function declarations.

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

10 years agoRemove duplicate definition ofVALGRIND_HG_ENABLE_CHECKING , wrongly introduced in...
Philippe Waroquiers [Sun, 9 Aug 2015 14:43:33 +0000 (14:43 +0000)] 
Remove duplicate definition ofVALGRIND_HG_ENABLE_CHECKING , wrongly introduced in rev 15207

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

10 years agoFix another GCC 5.1 warning.
Florian Krohm [Sun, 9 Aug 2015 08:54:27 +0000 (08:54 +0000)] 
Fix another GCC 5.1 warning.

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