]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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