]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
9 years agoAdd ISA 2.07 vbit test support
Carl Love [Tue, 3 Nov 2015 17:48:04 +0000 (17:48 +0000)] 
Add ISA 2.07 vbit test support

The ISA 2.07 support adds new Iops as well as support for some existing
Iops.  None of these Iops have been enabled in the vbit tester.  This commit
adds the needed support to the files in memcheck/tests/vbit-test.
These changes add support for additional immediate operands and additional
undefined bit checking functions.

There are additional changes to files VEX/priv/ir_inject.c and VEX/pub/libvex.h
that are in VEX commit 3202

Bugzilla 354797 was created for this issue.

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

9 years agoELF debug info reader was confused with multiple .rodata sections on Solaris
Ivo Raisr [Thu, 29 Oct 2015 07:28:58 +0000 (07:28 +0000)] 
ELF debug info reader was confused with multiple .rodata sections on Solaris

The ELF debug info reader on Solaris now performs a quick pre-scan of section
headers for .rodata sections. If there are multiple .rodata sections
present then symbols from .symtab are scanned which section they point to.
The "true" .rodata section is thus determined.
Fixes BZ#353802.

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

9 years agoSolaris syscall: Add support for lwp_cond_signal(171).
Ivo Raisr [Mon, 26 Oct 2015 16:13:05 +0000 (16:13 +0000)] 
Solaris syscall: Add support for lwp_cond_signal(171).
Fixes BZ#354392.

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

9 years agoDisable none/tests/bug234814 test for TileGx.
Zhi-Gang Liu [Fri, 23 Oct 2015 02:36:09 +0000 (02:36 +0000)] 
Disable none/tests/bug234814 test for TileGx.
Add "bool on_altstack" parameter to VG_(sigframe_create)(..)
in sigframe-tilegx-linux.c

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

9 years agoFix 353891 Assert 'bad_scanned_addr < VG_ROUNDDN(start+len, sizeof(Addr))' failed
Philippe Waroquiers [Thu, 22 Oct 2015 19:14:30 +0000 (19:14 +0000)] 
Fix 353891  Assert 'bad_scanned_addr < VG_ROUNDDN(start+len, sizeof(Addr))' failed

All memory dereferences during leak search are checked either with
aspacemgr or using the VA-bits.
So, in theory, no memory fault should occur.
However, the leak search is done so as to resist to e.g.
- desynchronisation between the real pages mapped and the aspacemgr state.
- client pages mprotected against reading
- any other reason why dereferencing a client address would fail.

So, the function lc_scan_memory installs a fault catcher that
is called if a memory fault signal is raised during memory scan.
However, memory dereference is also done in the function heuristic_reachedness.
So, this function must also resist to memory fault.

This patch also installs a fault catcher for the function heuristic_reachedness.

More in details, the following changes are done:
* pub_tool_signal.h and m_signals.c :
  VG_(set_fault_catcher) now returns the previously set fault catcher.
  This is needed so that heuristic_reachedness/lc_scan_memory can save
  and restore the previous fault catcher.

* mc_leakcheck.c:
  Addition of leak_search_fault_catcher that contains the common
  code for the (currently 2) fault catchers used during leak search.

* Modification of heuristic_reachedness and lc_scan_memory:
  Add 2 (small) specific fault catcher that are calling the common
  leak_search_fault_catcher.

* The way sigprocmask is handled has been changed:
  Before this patch, lc_scan_memory was saving/restoring the procsigmask
  for each scanned block (and was restoring it when the fault catcher
  was longjmp-ing back to lc_scan_memory in case of SEGV or BUS.
  This was causing 2 system calls for each block scanned.

  Now, lc_scan_memory and  heuristic_reachedness are not saving/restoring
  the procmask: the work to reset the sigprocmask is only done
  in leak_search_fault_catcher. This is more efficient as no syscall
  anymore is done during leak search, except for (normally) unfrequent
  SIGSEGV/BUS. It is also simpler as signal handling is now done at
  a single place.

  It is ok to reset the procmask (in fact, just remove the caught signal
  from the process sigmask) as during leak search, no other activity than
  the leak search is on-going, and so no other SEGV/BUS can be received
  while the handler runs.

This gives moderate speed improvements for applications allocating a lot of
blocks (about 10% improvement when leak searching in 1 million small blocks).

Test case (slightly modified) by Matthias Schwarzott.

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

9 years agoAdd helgrind tool to the Solaris IPS packaging manifest.
Ivo Raisr [Thu, 22 Oct 2015 13:36:07 +0000 (13:36 +0000)] 
Add helgrind tool to the Solaris IPS packaging manifest.
Somehow it slipped through the cracks...
n-i-bz

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

9 years agoClarification for some of the Solaris requirements.
Ivo Raisr [Wed, 21 Oct 2015 12:02:04 +0000 (12:02 +0000)] 
Clarification for some of the Solaris requirements.
Reported by: Matthew Wozniczka <mattheww@simba.com>

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

9 years agoFix inconsistent use of vki_ prefixes for struct vki_ifreq.
Julian Seward [Mon, 19 Oct 2015 11:21:33 +0000 (11:21 +0000)] 
Fix inconsistent use of vki_ prefixes for struct vki_ifreq.
No functional change.

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

9 years agoSilence -Wincompatible-pointer-types-discards-qualifiers warning. n-i-bz.
Rhys Kidd [Mon, 19 Oct 2015 10:20:17 +0000 (10:20 +0000)] 
Silence -Wincompatible-pointer-types-discards-qualifiers warning. n-i-bz.

m_replacemalloc/vg_replace_malloc.c:1286:1: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
ZONE_GET_NAME(VG_Z_LIBC_SONAME, malloc_get_zone_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1283:14: note: expanded from macro 'ZONE_GET_NAME'
      return vg_default_zone.zone_name; \
             ^~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1287:1: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
ZONE_GET_NAME(SO_SYN_MALLOC,    malloc_get_zone_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1283:14: note: expanded from macro 'ZONE_GET_NAME'
      return vg_default_zone.zone_name; \
             ^~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1286:1: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
ZONE_GET_NAME(VG_Z_LIBC_SONAME, malloc_get_zone_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1283:14: note: expanded from macro 'ZONE_GET_NAME'
      return vg_default_zone.zone_name; \
             ^~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1287:1: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
ZONE_GET_NAME(SO_SYN_MALLOC,    malloc_get_zone_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_replacemalloc/vg_replace_malloc.c:1283:14: note: expanded from macro 'ZONE_GET_NAME'
      return vg_default_zone.zone_name; \
             ^~~~~~~~~~~~~~~~~~~~~~~~~

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

9 years agoSilence -Wcast-qual const qualifier warning. n-i-bz.
Rhys Kidd [Mon, 19 Oct 2015 10:18:28 +0000 (10:18 +0000)] 
Silence -Wcast-qual const qualifier warning. n-i-bz.

m_debuginfo/readmacho.c:395:30: warning: cast from 'const void *' to 'DiSym *' drops const qualifier [-Wcast-qual]
   const DiSym* s1 = (DiSym*)v1;
                             ^
m_debuginfo/readmacho.c:396:30: warning: cast from 'const void *' to 'DiSym *' drops const qualifier [-Wcast-qual]
   const DiSym* s2 = (DiSym*)v2;
                             ^
m_libcsignal.c:481:49: warning: cast from 'const vki_sigset_t *' to 'vki_sigset_t *' drops const qualifier [-Wcast-qual]
  VG_(sigintersectset)(&pending, (vki_sigset_t*)set);
                                                ^

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

9 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

9 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

9 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

9 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

9 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

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