]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
7 years agoMerge VEX_3_11_BRANCH into VALGRIND_3_11_BRANCH svn/VALGRIND_3_11_BRANCH svn/VALGRIND_3_11_0
Ivo Raisr [Mon, 14 Aug 2017 10:26:27 +0000 (12:26 +0200)] 
Merge VEX_3_11_BRANCH into VALGRIND_3_11_BRANCH

9 years ago--> 3.11.0 final.
Julian Seward [Wed, 23 Sep 2015 09:22:06 +0000 (09:22 +0000)] 
--> 3.11.0 final.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15674

9 years agoMerge, from trunk, r3194 (Fix for typo in r3189)
Julian Seward [Tue, 22 Sep 2015 08:25:49 +0000 (08:25 +0000)] 
Merge, from trunk, r3194 (Fix for typo in r3189)

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_11_BRANCH@3195

9 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

9 years agoMake version numbers correct.
Julian Seward [Mon, 21 Sep 2015 11:00:52 +0000 (11:00 +0000)] 
Make version numbers correct.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15667

9 years ago--> 3.10.1.TEST2
Julian Seward [Mon, 21 Sep 2015 10:42:07 +0000 (10:42 +0000)] 
--> 3.10.1.TEST2

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15666

9 years agoUpdate for recent merges from trunk.
Julian Seward [Mon, 21 Sep 2015 10:08:11 +0000 (10:08 +0000)] 
Update for recent merges from trunk.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15665

9 years agoMerge, from trunk, r3190 (Add support for the Power PC mbar instruction; bug 352768)
Julian Seward [Mon, 21 Sep 2015 10:03:31 +0000 (10:03 +0000)] 
Merge, from trunk, r3190 (Add support for the Power PC mbar instruction; bug 352768)

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_11_BRANCH@3193

9 years agoMerge, from trunk, r3189 (Add support for the Power PC Program Priority Register...
Julian Seward [Mon, 21 Sep 2015 10:01:43 +0000 (10:01 +0000)] 
Merge, from trunk, r3189 (Add support for the Power PC Program Priority Register; bug 352769)

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_11_BRANCH@3192

9 years agoMerge, from trunk, r3188
Julian Seward [Mon, 21 Sep 2015 09:59:36 +0000 (09:59 +0000)] 
Merge, from trunk, r3188
(ppc: The functions dis_dfp_fmt_conv and dis_dfp_exponent_test
should only be executed in case DFP is supported.)

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_11_BRANCH@3191

9 years agoMerge, from trunk, r15655,6,7 (Followup to r14908 (BZ #342603))
Julian Seward [Mon, 21 Sep 2015 09:57:29 +0000 (09:57 +0000)] 
Merge, from trunk, r15655,6,7 (Followup to r14908 (BZ #342603))

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15664

9 years agoMerge, from trunk, r15654 (Filter out glibc warning messages about unexpected futex...
Julian Seward [Mon, 21 Sep 2015 09:54:17 +0000 (09:54 +0000)] 
Merge, from trunk, r15654 (Filter out glibc warning messages about unexpected futex results in tests.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15663

9 years agoMerge, from trunk, r15653 (Add Power PC ISA check to the vbit-test; bug 352765)
Julian Seward [Mon, 21 Sep 2015 09:53:00 +0000 (09:53 +0000)] 
Merge, from trunk, r15653 (Add Power PC ISA check to the vbit-test; bug 352765)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15662

9 years agoMerge, from trunk, r15651 (Do not compile with -Wcast-align on arm.)
Julian Seward [Mon, 21 Sep 2015 09:51:07 +0000 (09:51 +0000)] 
Merge, from trunk, r15651 (Do not compile with -Wcast-align on arm.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15661

9 years agoMerge, from trunk, r15650 (Fix various compiler warnings for the arm architecture.)
Julian Seward [Mon, 21 Sep 2015 09:48:44 +0000 (09:48 +0000)] 
Merge, from trunk, r15650 (Fix various compiler warnings for the arm architecture.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15660

9 years agoMerge, from trunk, r15647
Julian Seward [Mon, 21 Sep 2015 09:46:55 +0000 (09:46 +0000)] 
Merge, from trunk, r15647
(libvex_test: Use arm64_[di]MinLine_lg2_szB values that make libvex happy.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15659

9 years agoMerge, from trunk, r15645 (Update doc build hints for Fedora 21 and 22.)
Julian Seward [Mon, 21 Sep 2015 09:44:59 +0000 (09:44 +0000)] 
Merge, from trunk, r15645 (Update doc build hints for Fedora 21 and 22.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15658

9 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

9 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

9 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

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 ago--> 3.11.0.TEST1
Julian Seward [Wed, 9 Sep 2015 08:04:35 +0000 (08:04 +0000)] 
--> 3.11.0.TEST1

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15646

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 agoSwizzle external.
Julian Seward [Tue, 8 Sep 2015 10:12:54 +0000 (10:12 +0000)] 
Swizzle external.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15644

9 years agoCreate VALGRIND_3_11_BRANCH as a copy of trunk r15642.
Julian Seward [Tue, 8 Sep 2015 10:11:27 +0000 (10:11 +0000)] 
Create VALGRIND_3_11_BRANCH as a copy of trunk r15642.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_11_BRANCH@15643

9 years agoCreate VEX_3_11_BRANCH as a copy of trunk r3186.
Julian Seward [Tue, 8 Sep 2015 10:09:42 +0000 (10:09 +0000)] 
Create VEX_3_11_BRANCH as a copy of trunk r3186.

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_11_BRANCH@3187

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 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

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 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

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 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

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 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

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 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

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

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 agoUpdate copyright dates, to include 2015. No functional change.
Julian Seward [Fri, 21 Aug 2015 11:29:16 +0000 (11:29 +0000)] 
Update copyright dates, to include 2015.  No functional change.

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

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