]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
10 years agoInterpret memory as an ULong value.
Florian Krohm [Sat, 17 Oct 2015 11:19:11 +0000 (11:19 +0000)] 
Interpret memory as an ULong value.

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

10 years agoFix a bug passing immediate values to ir_inject.c
Florian Krohm [Sat, 17 Oct 2015 11:18:50 +0000 (11:18 +0000)] 
Fix a bug passing immediate values to ir_inject.c

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

10 years agoLink the vbit tester against libvex-<arch>-<os>.a
Florian Krohm [Fri, 16 Oct 2015 17:29:54 +0000 (17:29 +0000)] 
Link the vbit tester against libvex-<arch>-<os>.a
This allows to remove local copies of certain VEX functions.
VEX r3200 enables this.

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

10 years agoGive typeOfPrimop external linkage. This allows us to simplify
Florian Krohm [Fri, 16 Oct 2015 17:26:22 +0000 (17:26 +0000)] 
Give typeOfPrimop external linkage. This allows us to simplify
memcheck/tests/vbit-test which used to have local copies of certain
functions from ir_defs.c

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

10 years agoSolaris syscall: Add support for lwp_cond_wait(170).
Ivo Raisr [Fri, 16 Oct 2015 12:20:20 +0000 (12:20 +0000)] 
Solaris syscall: Add support for lwp_cond_wait(170).
Provide scalar test as well.
Fixes BZ #353920.

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

10 years agoSolaris syscall: Enable fchdir(120) - generic.
Ivo Raisr [Thu, 15 Oct 2015 09:37:14 +0000 (09:37 +0000)] 
Solaris syscall: Enable fchdir(120) - generic.
Provide scalar tests as well.
Fixes BZ #353917.

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

10 years agoFill out missing functionality on amd64 OS X to load a fake sigreturn.
Rhys Kidd [Thu, 15 Oct 2015 07:01:57 +0000 (07:01 +0000)] 
Fill out missing functionality on amd64 OS X to load a fake sigreturn.
Also enhance consistency of formatting for x86 OS X section.

No regressions on OS X 10.10

Before:

== 596 tests, 219 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 596 tests, 219 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

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

10 years agoFill out missing functionality on amd64 OS X to back up guest state to restart a...
Rhys Kidd [Thu, 15 Oct 2015 05:40:17 +0000 (05:40 +0000)] 
Fill out missing functionality on amd64 OS X to back up guest state to restart a system call.

No regressions on OS X 10.10

Before:

== 596 tests, 219 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 596 tests, 219 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

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

10 years agoEstablish some plumbing for old_semwait_signal syscall on OS X.
Rhys Kidd [Thu, 15 Oct 2015 04:43:06 +0000 (04:43 +0000)] 
Establish some plumbing for old_semwait_signal syscall on OS X.

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

10 years agoFix typo in malloc_get_zone_name() intercept. n-i-bz.
Rhys Kidd [Thu, 15 Oct 2015 04:18:12 +0000 (04:18 +0000)] 
Fix typo in malloc_get_zone_name() intercept. n-i-bz.

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

10 years agoOn a zEC12 or z13, a glibc with lock elision enabled infers from HWCAP
Florian Krohm [Mon, 12 Oct 2015 20:35:56 +0000 (20:35 +0000)] 
On a zEC12 or z13, a glibc with lock elision enabled infers from HWCAP
that the prerequisites for lock elision are met.  Then it may use TBEGIN
and other transactional-execution instructions which are not implemented
by Valgrind.  Likewise, the upcoming glibc 2.23 will exploit vector
instructions if they are advertised by HWCAP; and those are currently
not implemented by Valgrind either.  In general, the increased use of
ifunc may lead to more such cases in the future.

This patch suppresses the advertising of those hardware features via
HWCAP which are either not known to Valgrind or currently unsupported.

Patch by Andreas Arnez (arnez@linux.vnet.ibm.com).
Fixes BZ #353680.

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

10 years agoUse local labels instead of global labels (ppc and mips
Florian Krohm [Mon, 12 Oct 2015 20:15:12 +0000 (20:15 +0000)] 
Use local labels instead of global labels (ppc and mips
specific code).

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

10 years agoBug 278744 cvtps2pd with redundant RexW followup.
Mark Wielaard [Mon, 12 Oct 2015 20:14:48 +0000 (20:14 +0000)] 
Bug 278744 cvtps2pd with redundant RexW followup.

Add correct parentheses as pointed out by GCC 4.9.2 -Wparentheses.

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

10 years agoSolaris syscall: Add support for pset family (207).
Ivo Raisr [Mon, 12 Oct 2015 19:10:42 +0000 (19:10 +0000)] 
Solaris syscall: Add support for pset family (207).
Provide scalar tests as well.
Fixes BZ #353398.

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

10 years agoBug #278744 cvtps2pd with redundant RexW.
Mark Wielaard [Mon, 12 Oct 2015 14:32:03 +0000 (14:32 +0000)] 
Bug #278744 cvtps2pd with redundant RexW.

Add testcase for VEX svn r3198.

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

10 years agoBug 278744 cvtps2pd with redundant RexW
Mark Wielaard [Mon, 12 Oct 2015 14:30:58 +0000 (14:30 +0000)] 
Bug 278744 cvtps2pd with redundant RexW

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

10 years agoPlumb malloc_zone_memalign() through malloc_zone_t struct on OS X. No regressions.
Rhys Kidd [Sun, 4 Oct 2015 09:23:07 +0000 (09:23 +0000)] 
Plumb malloc_zone_memalign() through malloc_zone_t struct on OS X. No regressions.

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

10 years agoFollow up to r15628, properly guard none/tests/ansi and fix a typo. n-i-bz.
Rhys Kidd [Sat, 3 Oct 2015 04:47:04 +0000 (04:47 +0000)] 
Follow up to r15628, properly guard none/tests/ansi and fix a typo. n-i-bz.

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

10 years agoExplicitly mark the stack as non-executable for Solaris
Ivo Raisr [Fri, 2 Oct 2015 16:45:01 +0000 (16:45 +0000)] 
Explicitly mark the stack as non-executable for Solaris
binaries (Valgrind launcher and tools).
Follow-up for r15692. n-i-bz

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

10 years agoDon't advertise RDRAND in cpuid for Core-i7-4910-like avx2 machine.
Mark Wielaard [Thu, 1 Oct 2015 12:35:16 +0000 (12:35 +0000)] 
Don't advertise RDRAND in cpuid for Core-i7-4910-like avx2 machine.

Announce fix for bug #353370 (VEX svn r3197) in NEWS.

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

10 years agoDon't advertise RDRAND in cpuid for Core-i7-4910-like avx2 machine.
Mark Wielaard [Thu, 1 Oct 2015 12:31:19 +0000 (12:31 +0000)] 
Don't advertise RDRAND in cpuid for Core-i7-4910-like avx2 machine.

Bug#353370. In amd64g_dirtyhelper_CPUID_avx2 we set the RDRAND bit
but we don't implement support for RDRAND. Turn the bit off so programs
don't try to use RDRAND when running under valgrind.

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

10 years agoBeef up the check_headers_and_includes script to make sure
Florian Krohm [Wed, 30 Sep 2015 20:58:36 +0000 (20:58 +0000)] 
Beef up the check_headers_and_includes script to make sure
every assembler file instantiates MARK_STACK_NO_EXEC unconditionally.

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

10 years agoRemove an unneeded header file. Spotted by Matthias Schwarzott.
Florian Krohm [Wed, 30 Sep 2015 20:34:32 +0000 (20:34 +0000)] 
Remove an unneeded header file. Spotted by Matthias Schwarzott.

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

10 years agoMake sure no executable stack gets created.
Florian Krohm [Wed, 30 Sep 2015 20:30:48 +0000 (20:30 +0000)] 
Make sure no executable stack gets created.
Explanation by Matthias Schwarzott:

The linker will request an executable stack as soon as at least one
object file, that is linked in, wants an executable stack.
And the absence of the
      .section .note.GNU-stack."",@progbits
is enough to tell the linker that an executable stack is needed.
So even an empty asm-file must at least contain this statement to not
force executable stacks on the whole executable.

* Define a helper macro MARK_STACK_NO_EXEC that disables the
  executable stack.
* Instantiate this macro unconditionally at the end of each asm file.

Patch by Matthias Schwarzott <zzam@gentoo.org>.

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

10 years agoIgnore some more executable files in memcheck/tests/solaris.
Ivo Raisr [Tue, 29 Sep 2015 19:03:05 +0000 (19:03 +0000)] 
Ignore some more executable files in memcheck/tests/solaris.
n-i-bz

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

10 years agoMove more complicated tests out of memcheck/tests/solaris/scalar_ioctl
Ivo Raisr [Tue, 29 Sep 2015 18:57:56 +0000 (18:57 +0000)] 
Move more complicated tests out of memcheck/tests/solaris/scalar_ioctl
to memcheck/tests/solaris/ioctl.
While at it, remove a fixed size buffer as reported by Florian Krohm.
n-i-bz

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

10 years agoSolaris ioctl: more of those sockio ioctl wrappers.
Ivo Raisr [Tue, 29 Sep 2015 14:23:51 +0000 (14:23 +0000)] 
Solaris ioctl: more of those sockio ioctl wrappers.
SIOCGLIFBRDADDR, SIOCGLIFCONF, SIOCGLIFFLAGS, SIOCGLIFNETMASK.
n-i-bz

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

10 years agoNEWS: Update
Bart Van Assche [Tue, 29 Sep 2015 05:40:43 +0000 (05:40 +0000)] 
NEWS: Update

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

10 years agodrd: Improve thread startup code for non-Linux platforms
Bart Van Assche [Tue, 29 Sep 2015 05:39:00 +0000 (05:39 +0000)] 
drd: Improve thread startup code for non-Linux platforms

Ivo Raisr had reported that thread startup was slow on Solaris.
This patch reduces the thread startup time on Solaris.

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

10 years agoSolaris ioctl: more wrappers for sockio ioctls.
Ivo Raisr [Tue, 29 Sep 2015 05:20:16 +0000 (05:20 +0000)] 
Solaris ioctl: more wrappers for sockio ioctls.
SIOCGIFCONF, SIOCGIFFLAGS, SIOCGIFNETMASK, and SIOCGIFNUM.
n-i-bz

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

10 years agoFix compiler warning about unused functions and variables
Ivo Raisr [Sat, 26 Sep 2015 03:45:11 +0000 (03:45 +0000)] 
Fix compiler warning about unused functions and variables
on older Solaris where original auxv is not present.
n-i-bz

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

10 years agoSolaris syscall: Add support for system_stats (154).
Ivo Raisr [Fri, 25 Sep 2015 21:04:45 +0000 (21:04 +0000)] 
Solaris syscall: Add support for system_stats (154).
Provide scalar test as well.
n-i-bz

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

10 years agoProvide test for AT_SUN_SYSSTAT_ADDR emulation.
Ivo Raisr [Fri, 25 Sep 2015 20:53:09 +0000 (20:53 +0000)] 
Provide test for AT_SUN_SYSSTAT_ADDR emulation.
n-i-bz

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

10 years agoSupport correctly AT_SUN_SYSSTAT_ADDR and AT_SUN_SYSSTAT_ZONE_ADDR
Ivo Raisr [Fri, 25 Sep 2015 20:12:26 +0000 (20:12 +0000)] 
Support correctly AT_SUN_SYSSTAT_ADDR and AT_SUN_SYSSTAT_ZONE_ADDR
in the auxiliary vector.

This is possible as Solaris 12 kernel now creates auxv even
for statically linked binaries.
n-i-bz

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

10 years agoFactorise condition to do recursive merge in the macro
Philippe Waroquiers [Thu, 24 Sep 2015 20:31:04 +0000 (20:31 +0000)] 
Factorise condition to do recursive merge in the macro

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

10 years agoSet svn ignore on recently added or modified tests, n-i-bz.
Rhys Kidd [Thu, 24 Sep 2015 11:50:02 +0000 (11:50 +0000)] 
Set svn ignore on recently added or modified tests, n-i-bz.

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

10 years agoMerge, from branches/VALGRIND_3_11_BRANCH, NEWS and docs/xml/vg-entities.xml.
Julian Seward [Wed, 23 Sep 2015 13:35:36 +0000 (13:35 +0000)] 
Merge, from branches/VALGRIND_3_11_BRANCH, NEWS and docs/xml/vg-entities.xml.

Bump version to 3.12.0.SVN.

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

10 years agoBug 353084 arm64 doesn't support sigpending system call.
Mark Wielaard [Wed, 23 Sep 2015 12:15:36 +0000 (12:15 +0000)] 
Bug 353084 arm64 doesn't support sigpending system call.

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

10 years agoBug 353083 arm64 doesn't implement various xattr system calls.
Mark Wielaard [Wed, 23 Sep 2015 11:51:47 +0000 (11:51 +0000)] 
Bug 353083 arm64 doesn't implement various xattr system calls.

This enables setxattr, lsetxattr, fsetxattr, fgetxattr, removexattr,
lremovexattr, fremovexattr, listxattr, llistxattr and flistxattr on
arm64-linux.

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

10 years agoAvoid a possible memory leak.
Florian Krohm [Tue, 22 Sep 2015 11:06:42 +0000 (11:06 +0000)] 
Avoid a possible memory leak.

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

10 years agoAdd copyright/license comment.
Florian Krohm [Tue, 22 Sep 2015 07:21:50 +0000 (07:21 +0000)] 
Add copyright/license comment.

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

10 years agoUpdate TODO list.
Florian Krohm [Tue, 22 Sep 2015 07:04:25 +0000 (07:04 +0000)] 
Update TODO list.

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

10 years agoBreak a few overly long lines.
Florian Krohm [Tue, 22 Sep 2015 07:03:38 +0000 (07:03 +0000)] 
Break a few overly long lines.

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

10 years agoFix, Add support for the Power PC Program Priority Register
Carl Love [Mon, 21 Sep 2015 21:46:46 +0000 (21:46 +0000)] 
Fix, Add support for the Power PC Program Priority Register

Commit r3189 had a typo in it.  In function LibVEX_GuestPPC64_initialise()
the value of  vex_state->guest_PSPB is initialized to 0x0.  The intention was
for it to be initialized to 0x100.  This commit fixes the typo.

The original commit message:

  Added the Program Priority Register (PPR), support to read and write it
  via the mfspr and mtspr instructions as well as the special OR instruction
  No Op instructions.  The setting of the PPR is dependent on the value in
  the Problem State Priority Boost register.  Basic support for this register
  was added.  Not all of the PSPB register functionality was added.

  This patch fixes bugzilla 352769.

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

10 years agoFix up a few comments.
Florian Krohm [Sun, 20 Sep 2015 13:42:06 +0000 (13:42 +0000)] 
Fix up a few comments.
Patch by Jean Delvare <jdelvare@suse.de>.

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

10 years agoFollowup to r14908 (BZ #342603).
Florian Krohm [Sun, 20 Sep 2015 13:41:25 +0000 (13:41 +0000)] 
Followup to r14908 (BZ #342603).
Comparing the command byte with VKI_I2C_SMBUS_QUICK is like comparing
apples to carrots, it makes no sense. The command byte is unused for
quick transactions anyway so checking its value is pointless.
Patch by Jean Delvare <jdelvare@suse.de>.

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

10 years agoFollowup to r14908 (BZ #342603).
Florian Krohm [Sun, 20 Sep 2015 13:40:47 +0000 (13:40 +0000)] 
Followup to r14908 (BZ #342603).
The first byte of the data array holds the length, so the actual data
length is the value of that byte plus one.
Patch by Jean Delvare <jdelvare@suse.de>.

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

10 years agoFilter out glibc warning messages about unexpected futex results in tests.
Mark Wielaard [Fri, 18 Sep 2015 09:15:15 +0000 (09:15 +0000)] 
Filter out glibc warning messages about unexpected futex results in tests.

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

10 years agoAdd Power PC ISA check to the vbit-test
Carl Love [Wed, 16 Sep 2015 23:33:40 +0000 (23:33 +0000)] 
Add Power PC ISA check to the vbit-test

The support for the Valgrind Iops is dependent on the Power processor
support for various instructions.  The instructions supported by a
given Power processor is based on the version of the ISA.  The patch
add a check to the vbit-test to ensure it does not try to test an Iop
that generates an instruction on the host that is not supported.

This patch fixes bugzilla 352765.

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

10 years agoAdd support for the Power PC mbar instruction.
Carl Love [Wed, 16 Sep 2015 23:01:04 +0000 (23:01 +0000)] 
Add support for the Power PC mbar instruction.

This patch fixes bugzilla 352768.

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

10 years agoAdd support for the Power PC Program Priority Register
Carl Love [Wed, 16 Sep 2015 22:26:59 +0000 (22:26 +0000)] 
Add support for the Power PC Program Priority Register

Added the Program Priority Register (PPR), support to read and write it
via the mfspr and mtspr instructions as well as the special OR instruction
No Op instructions.  The setting of the PPR is dependent on the value in
the Problem State Priority Boost register.  Basic support for this register
was added.  Not all of the PSPB register functionality was added.

This patch fixes bugzilla 352769.

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

10 years agoPick up 'egrep' and 'strings' from $PATH instead of using
Florian Krohm [Wed, 16 Sep 2015 08:59:03 +0000 (08:59 +0000)] 
Pick up 'egrep' and 'strings' from $PATH instead of using
hardwired absolute path names. People can always arrange $PATH
such that these tools are found.
Fixes BZ #294065. Patch by Austin English <austinenglish@gmail.com>

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

10 years agoDo not compile with -Wcast-align on arm. There are too many
Florian Krohm [Mon, 14 Sep 2015 21:11:32 +0000 (21:11 +0000)] 
Do not compile with -Wcast-align on arm. There are too many
warnings due to GCC being very conservative.

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

10 years agoppc: The functions dis_dfp_fmt_conv and dis_dfp_exponent_test
Florian Krohm [Mon, 14 Sep 2015 19:36:29 +0000 (19:36 +0000)] 
ppc: The functions dis_dfp_fmt_conv and dis_dfp_exponent_test
should only be executed in case DFP is supported. Add missing
guards.

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

10 years agoFix various compiler warnings for the arm architecture.
Florian Krohm [Sun, 13 Sep 2015 20:27:17 +0000 (20:27 +0000)] 
Fix various compiler warnings for the arm architecture.

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

10 years agoRe-enable formerly hanging regression test on OS X.
Rhys Kidd [Sat, 12 Sep 2015 06:12:27 +0000 (06:12 +0000)] 
Re-enable formerly hanging regression test on OS X.
Related to bz#350359 and vex: r3184.

On OS X 10.10

Before:

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

After:

== 596 tests, 215 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

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

10 years agoAvoid compiler warning about uninitialised variable.
Florian Krohm [Thu, 10 Sep 2015 12:15:16 +0000 (12:15 +0000)] 
Avoid compiler warning about uninitialised variable.
Observed with gcc 5.1

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

10 years agolibvex_test: Use arm64_[di]MinLine_lg2_szB values that make libvex happy.
Mark Wielaard [Wed, 9 Sep 2015 13:40:23 +0000 (13:40 +0000)] 
libvex_test: Use arm64_[di]MinLine_lg2_szB values that make libvex happy.

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

10 years agoUpdate for Fedora 21 and 22.
Julian Seward [Tue, 8 Sep 2015 12:53:49 +0000 (12:53 +0000)] 
Update for Fedora 21 and 22.

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

10 years agoAnnounce fix for BZ #352284. See VEX r3186
Florian Krohm [Tue, 8 Sep 2015 06:27:50 +0000 (06:27 +0000)] 
Announce fix for BZ #352284. See VEX r3186

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

10 years agoImprove the spechelper for S390_CC_OP_TEST_UNDER_MASK_16.
Florian Krohm [Tue, 8 Sep 2015 06:25:02 +0000 (06:25 +0000)] 
Improve the spechelper for S390_CC_OP_TEST_UNDER_MASK_16.
Fixes BZ #352284.

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

10 years agoMake distcheck happy. Fix srcdir != builddir in none/tests/tilegx.
Mark Wielaard [Tue, 8 Sep 2015 06:17:28 +0000 (06:17 +0000)] 
Make distcheck happy. Fix srcdir != builddir in none/tests/tilegx.

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

10 years agoUpdate.
Julian Seward [Mon, 7 Sep 2015 20:00:05 +0000 (20:00 +0000)] 
Update.

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

10 years agoMake sure the result value of count_from_Status is defined.
Julian Seward [Mon, 7 Sep 2015 19:40:20 +0000 (19:40 +0000)] 
Make sure the result value of count_from_Status is defined.
Fixes #330147.  [Unverified!]

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

10 years agoUpdate due to r13991.
Florian Krohm [Mon, 7 Sep 2015 19:21:54 +0000 (19:21 +0000)] 
Update due to r13991.

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

10 years agoiselStmt, case Ist_Exit: handle the same assisted transfer cases that
Julian Seward [Mon, 7 Sep 2015 13:06:59 +0000 (13:06 +0000)] 
iselStmt, case Ist_Exit: handle the same assisted transfer cases that
iselNext does.  Fixes #352320.

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

10 years agoRephrase Callgrind manual about limiting event aggregation
Josef Weidendorfer [Mon, 7 Sep 2015 10:23:58 +0000 (10:23 +0000)] 
Rephrase Callgrind manual about limiting event aggregation

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

10 years agoFurther kludge stack alignment issues in x86g_dirtyhelper_FXRSTOR.
Julian Seward [Mon, 7 Sep 2015 08:22:03 +0000 (08:22 +0000)] 
Further kludge stack alignment issues in x86g_dirtyhelper_FXRSTOR.
Fixes (for some definition of "fix") #350359.

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

10 years agoAlways use posix_memalign on OS X for consistency. No functional change.
Julian Seward [Mon, 7 Sep 2015 08:20:45 +0000 (08:20 +0000)] 
Always use posix_memalign on OS X for consistency.  No functional change.

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

10 years agoUpdate list of ignored files.
Florian Krohm [Sun, 6 Sep 2015 20:56:13 +0000 (20:56 +0000)] 
Update list of ignored files.

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

10 years agoAdd a basic test for xb memcheck monitor command
Philippe Waroquiers [Sun, 6 Sep 2015 13:39:13 +0000 (13:39 +0000)] 
Add a basic test for xb memcheck monitor command

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

10 years agoBug 342008 - valgrind.h needs type cast for _zzq_default to compile with clang/llvm...
Julian Seward [Sun, 6 Sep 2015 13:10:22 +0000 (13:10 +0000)] 
Bug 342008 - valgrind.h needs type cast for _zzq_default to compile with clang/llvm in 64-bit mode.
(arm64, that is)
Patch from chh@google.com.

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

10 years agoStrange segments in /proc/self/maps have been observed in the field.
Florian Krohm [Sat, 5 Sep 2015 21:27:58 +0000 (21:27 +0000)] 
Strange segments in /proc/self/maps have been observed in the field.
Namely those with a file name and an inode number but without major
and minor device numbers. See for instance https://bugs.kde.org/124528#c11
This patch also recognises segments with a file name as FileV segments
(which is what valgrind used to do prior to r5818).

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

10 years agoAvoid warnings about deprecated unescaped curly brackets in regular
Florian Krohm [Sat, 5 Sep 2015 21:19:11 +0000 (21:19 +0000)] 
Avoid warnings about deprecated unescaped curly brackets in regular
expressions. Happens with perl 5.22 and newer.
Patch by Matthias Schwarzott <zzam@gentoo.org>

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

10 years agoCorrect expected output of tc18 and tc20 helgrind tests.
Mark Wielaard [Sat, 5 Sep 2015 20:45:04 +0000 (20:45 +0000)] 
Correct expected output of tc18 and tc20 helgrind tests.

The addition if the safe wrapper in r15620 introduced an extra
output frame in the backtrace of helgrind/tests/tc18_semabuse and
helgrind/tests/tc20_verifywrap.

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

10 years agoChanges related to new IROp Iop_RoundF128toInt. See VEX r3183.
Florian Krohm [Sat, 5 Sep 2015 20:39:27 +0000 (20:39 +0000)] 
Changes related to new IROp Iop_RoundF128toInt. See VEX r3183.
s390: Add testcase for fixbr.
Patch by Andreas Arnez <arnez@linux.vnet.ibm.com>.
Part of fixing BZ #350290.

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

10 years agos390: Add support for fixbr(a) instructions.
Florian Krohm [Sat, 5 Sep 2015 20:35:52 +0000 (20:35 +0000)] 
s390: Add support for fixbr(a) instructions.
New IROp Iop_RoundF128toInt.
Patch by Andreas Arnez <arnez@linux.vnet.ibm.com>.
Part of fixing BZ #350290.

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

10 years agoDo not compile ansi.c with clang as that compiler does not
Florian Krohm [Sat, 5 Sep 2015 08:41:32 +0000 (08:41 +0000)] 
Do not compile ansi.c with clang as that compiler does not
recognise the -ansi command line option.

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

10 years agoAdd callgrind.h
Florian Krohm [Sat, 5 Sep 2015 08:40:43 +0000 (08:40 +0000)] 
Add callgrind.h

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

10 years agoUpdate line number as a result of r15624.
Florian Krohm [Sat, 5 Sep 2015 07:47:49 +0000 (07:47 +0000)] 
Update line number as a result of r15624.

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

10 years agoFix bug #339636 Use fxsave64 and fxrstor64 mnemonics again.
Mark Wielaard [Fri, 4 Sep 2015 21:52:52 +0000 (21:52 +0000)] 
Fix bug #339636 Use fxsave64 and fxrstor64 mnemonics again.

Just add a configure check to see if the assembler understands
fxsave64/fxrstor64 and fall back to the old-school rex64 prefix
otherwise.

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

10 years agoAdd an assert.
Florian Krohm [Fri, 4 Sep 2015 20:54:34 +0000 (20:54 +0000)] 
Add an assert.

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

10 years agoTo test extended BFP opcodes we need sizeof(long double) == 16.
Florian Krohm [Fri, 4 Sep 2015 20:52:20 +0000 (20:52 +0000)] 
To test extended BFP opcodes we need sizeof(long double) == 16.
Certain old versions of GCC don't have that as default. So we must
give -mlong-double-128 on the command line.
Pertains to BZ #352183.

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

10 years agoBug #352130 helgrind reports false races for printfs using mempcpy
Mark Wielaard [Fri, 4 Sep 2015 10:52:01 +0000 (10:52 +0000)] 
Bug #352130 helgrind reports false races for printfs using mempcpy

Add a new Race suppression.

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

10 years agoUpdate COPYING and COPYING.DOCS with new FSF address.
Mark Wielaard [Fri, 4 Sep 2015 10:21:38 +0000 (10:21 +0000)] 
Update COPYING and COPYING.DOCS with new FSF address.

Copied latest GPLv2 and GFDLv1.2 files from gnulib.

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

10 years agoAdd safe sem_post handler and glibc-2.21 expected output for helgrind tests.
Mark Wielaard [Fri, 4 Sep 2015 09:41:42 +0000 (09:41 +0000)] 
Add safe sem_post handler and glibc-2.21 expected output for helgrind tests.

This fixes the tc18 and tc20 testcases.

On some bad semaphores glibc now might just abort, we catch the SIGABRT
and turn it into a EINVAL. The program will see this, but the helgrind
wrapper won't. Which works for tc18 since there is an alternate exp file
with that result (silent bad sem_post). We add a similar alternative exp
file for tc21.

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

10 years agoFix UNKNOWN fcntl 97 on OS X 10.11
Rhys Kidd [Thu, 3 Sep 2015 11:31:58 +0000 (11:31 +0000)] 
Fix UNKNOWN fcntl 97 on OS X 10.11
bz#351632

On OS X 10.11 (DP8)

Before:

== 595 tests, 575 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

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

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

10 years ago- The default value for --leak-check-heuristics has been changed from
Philippe Waroquiers [Wed, 2 Sep 2015 21:57:53 +0000 (21:57 +0000)] 
- The default value for --leak-check-heuristics has been changed from
  "none" to "all". This helps to reduce the number of possibly
  lost blocks, in particular for C++ applications.

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

10 years agoEnhance block_list memcheck gdbserver monitor command
Philippe Waroquiers [Wed, 2 Sep 2015 21:26:34 +0000 (21:26 +0000)] 
Enhance block_list memcheck gdbserver monitor command
Due to the (still to be done) default activation of --leak-check-heuristics=all,
improve the block_list monitor command for easier display of blocks
found reachable via heuristics.

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

10 years agoSuppress unwanted clang 3.7 warnings.
Florian Krohm [Wed, 2 Sep 2015 15:47:33 +0000 (15:47 +0000)] 
Suppress unwanted clang 3.7 warnings.
Fix undefined behaviour in perf/tinycc.c

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

10 years agoFix undefined behaviours (left shifting a negative value)
Florian Krohm [Wed, 2 Sep 2015 15:46:05 +0000 (15:46 +0000)] 
Fix undefined behaviours (left shifting a negative value)
as pointed out by clang 3.7

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

10 years agoBug 351873 Newer gcc doesn't allow __builtin_tabortdc[i] in ppc32 mode.
Mark Wielaard [Wed, 2 Sep 2015 15:43:31 +0000 (15:43 +0000)] 
Bug 351873 Newer gcc doesn't allow __builtin_tabortdc[i] in ppc32 mode.

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

10 years agoAdd missing copyright notices for Xen related files.
Julian Seward [Tue, 1 Sep 2015 13:32:21 +0000 (13:32 +0000)] 
Add missing copyright notices for Xen related files.

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

10 years agoDocument that --read-inline-info=yes is the default
Ivo Raisr [Tue, 1 Sep 2015 11:51:16 +0000 (11:51 +0000)] 
Document that --read-inline-info=yes is the default
even on Solaris for Memcheck, Helgrind and DRD.
n-i-bz

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

10 years agoRemove redundant bit of text introduced in r15604.
Julian Seward [Tue, 1 Sep 2015 08:50:12 +0000 (08:50 +0000)] 
Remove redundant bit of text introduced in r15604.

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

10 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

10 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

10 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

10 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

10 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