]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
9 years agoAdd test cases for: SHA1C SHA1H SHA1M SHA1P SHA1SU0 SHA1SU1 SHA256H2 SHA256H
Julian Seward [Mon, 18 Jul 2016 06:35:13 +0000 (06:35 +0000)] 
Add test cases for: SHA1C SHA1H SHA1M SHA1P SHA1SU0 SHA1SU1 SHA256H2 SHA256H
SHA256SU0 SHA256SU1.

Increase the number of iterations from 10 to 50 for AESD AESE AESIMC AESMC.

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

9 years agoFix arm64/fp_and_simd.c compile error.
Mark Wielaard [Sat, 16 Jul 2016 21:50:45 +0000 (21:50 +0000)] 
Fix arm64/fp_and_simd.c compile error.

Older GCC don't default to GNU11 and will produce:
error: ‘for’ loop initial declarations are only allowed in C99 mode

Move int i declaration to top of main.

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

9 years agoEnable test cases for: AESE AESD AESMC AESIMC.
Julian Seward [Fri, 15 Jul 2016 10:33:20 +0000 (10:33 +0000)] 
Enable test cases for: AESE AESD AESMC AESIMC.

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

9 years agoRegression test for n-i-bz amd64: memcheck false positive with shr %edx
Philippe Waroquiers [Tue, 12 Jul 2016 20:48:31 +0000 (20:48 +0000)] 
Regression test for n-i-bz amd64: memcheck false positive with shr %edx
Valgrind side : reproducer for the false positive memcheck
+ announce the fix (VEX side in next commit)

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

9 years agoIgnore pselect_sigmask_null executable.
Ivo Raisr [Mon, 11 Jul 2016 21:10:47 +0000 (21:10 +0000)] 
Ignore pselect_sigmask_null executable.
Part of fix for BZ#364413.

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

9 years agoSet executable protection on schedctl pages only when necessary.
Ivo Raisr [Mon, 11 Jul 2016 21:05:03 +0000 (21:05 +0000)] 
Set executable protection on schedctl pages only when necessary.
n-i-bz

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

9 years agoFix 365273 - Invalid write to stack location reported after signal handler runs
Philippe Waroquiers [Sun, 10 Jul 2016 21:17:58 +0000 (21:17 +0000)] 
Fix 365273 - Invalid write to stack location reported after signal handler runs

Analysis and patch by Earl Chew

Tested on x86/amd64/ppc64

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

9 years agoFinish first-pass classification of bugs reported up to 4 July 2016.
Julian Seward [Tue, 5 Jul 2016 08:41:07 +0000 (08:41 +0000)] 
Finish first-pass classification of bugs reported up to 4 July 2016.

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

9 years agoInitial triage of a bunch of bugs from Oct 2015 to Feb 2016, roughly.
Julian Seward [Mon, 4 Jul 2016 16:57:36 +0000 (16:57 +0000)] 
Initial triage of a bunch of bugs from Oct 2015 to Feb 2016, roughly.

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

9 years agoUpdate the bug list.
Julian Seward [Mon, 4 Jul 2016 11:17:37 +0000 (11:17 +0000)] 
Update the bug list.

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

9 years agoFix leak in m_redir.c
Philippe Waroquiers [Sat, 2 Jul 2016 18:46:23 +0000 (18:46 +0000)] 
Fix leak in m_redir.c
See below discussion for more details.

On Sat, 2016-07-02 at 14:20 +0200, Philippe Waroquiers wrote:
> I am testing a patch (provided by Julian) that solves a false positive
> memcheck found at my work.
>
> Testing this, I decided to run valgrind under valgrind (not done since
> a long time).
>
> This shows a leak in many tests, the stack trace being such as:
> ==26246== 336 bytes in 21 blocks are definitely lost in loss record 72 of 141
> ==26246==    at 0x2801C01D: vgPlain_arena_malloc (m_mallocfree.c:1855)
> ==26246==    by 0x2801D616: vgPlain_arena_strdup (m_mallocfree.c:2528)
> ==26246==    by 0x2801D616: vgPlain_strdup (m_mallocfree.c:2600)
> ==26246==    by 0x2801F5AD: vgPlain_redir_notify_new_DebugInfo (m_redir.c:619)
> ==26246==    by 0x2803B650: di_notify_ACHIEVE_ACCEPT_STATE (debuginfo.c:771)
> ==26246==    by 0x2803B650: vgPlain_di_notify_mmap (debuginfo.c:1067)
> ==26246==    by 0x2806589C: vgModuleLocal_generic_PRE_sys_mmap (syswrap-generic.c:2368)
> ==26246==    by 0x2809932A: vgSysWrap_amd64_linux_sys_mmap_before (syswrap-amd64-linux.c:637)
> ==26246==    by 0x28061E11: vgPlain_client_syscall (syswrap-main.c:1906)
> ==26246==    by 0x2805E9D2: handle_syscall (scheduler.c:1118)
> ==26246==    by 0x280604A6: vgPlain_scheduler (scheduler.c:1435)
> ==26246==    by 0x2806FF87: thread_wrapper (syswrap-linux.c:103)
> ==26246==    by 0x2806FF87: run_a_thread_NORETURN (syswrap-linux.c:156)
>
>
> The strdup call in m_redir.c:619 was introduced by r15726.
>
> However, I am not sure this is a bug that is introduced by this change,
> or if it just reveals a leak that was already there.
> The "very original" replacement logic did not do memory allocation for
> the replacement: see m_redir.c in valgrind 3.10.1 : it was just copying
> some chars from VG_(clo_soname_synonyms) to demangled_sopatt

Yes, it should do exactly the same as the other code paths. If
replaced_sopatt != NULL then it is an allocated string that has been
assigned to demangled_sopatt. I had assumed that would take care of the
life-time issues of the allocated string. But now that I read the code
it is indeed not so clear.

> Then in 3.11, the fixed size demangled_sopatt was changed to be
> a dynamically allocated buffer.
> The revision log 14664 that introduced this explains that the ownership of
> returned buffer is not easy. It tells at the end:
> "So the rule of thunb here is: if in doubt strdup the string."
>
> but now we have to see when to free what, it seems ???
>
> Any thoughts ?

So if replaced_sopatt != NULL, then demangled_sopatt contains the
allocated string, and it is then immediately copied and assigned to
spec->from_sopatt. After that it is used under check_ppcTOCs. But there
it will first be reassigned a new value through maybe_Z_demangle
(overwriting any existing string being pointed to). So for this
particular leak it seem fine to free it right after the spec[List] has
been initialized (line 642).

Cheers,

Mark

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

9 years agofix 364058 - clarify in manual limitations of array overruns detections
Philippe Waroquiers [Thu, 30 Jun 2016 20:28:53 +0000 (20:28 +0000)] 
fix 364058 - clarify in manual limitations of array overruns detections

Further try to clarify again with more words the way sgcheck works
and the implied limitations

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

9 years agoPower PC test suite for ISA 3.0, part 4
Carl Love [Wed, 29 Jun 2016 18:09:57 +0000 (18:09 +0000)] 
Power PC test suite for ISA 3.0, part 4

The test suite support for the Power PC ISA 3.0 instructions added in
VEX commit 3222 is added in this commit.

Note, this is part 4 of 5.  The NEWS file will be updated when the ISA 3.0
support is complete.

valgrind bugzilla 363858

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

9 years agoAdd the HW register support for missing registers in get_otrack_shadow_offset_wrk...
Carl Love [Mon, 27 Jun 2016 15:50:29 +0000 (15:50 +0000)] 
Add the HW register support for missing registers in get_otrack_shadow_offset_wrk().  The registers are: NRADDR, NRADDR_GPR2, (REDIR_STACK, TFHAR, TEXASR, TEXASRU, TFIAR, PPR, PSPB.

Bugzilla  36728

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

9 years agoBug 364413 followup - fix signask -> sigmask typo in EXTRA_DIST
Mark Wielaard [Tue, 21 Jun 2016 21:06:27 +0000 (21:06 +0000)] 
Bug 364413 followup - fix signask -> sigmask typo in EXTRA_DIST

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

9 years agoBug 364413 pselect sycallwrapper mishandles NULL sigmask.
Mark Wielaard [Tue, 21 Jun 2016 19:58:21 +0000 (19:58 +0000)] 
Bug 364413 pselect sycallwrapper mishandles NULL sigmask.

Don't check or try to copy sigmask if it is NULL. The sigmask might be
given in a struct, where the length is non-zero, but the signal set
pointer is NULL.

Testcase provided by Paul Eggert <eggert@cs.ucla.edu>.

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

9 years agoUpdated NEWS file for bugzilla 360035: missing (broken) support for wbit field
Carl Love [Mon, 13 Jun 2016 17:30:24 +0000 (17:30 +0000)] 
Updated NEWS file for bugzilla 360035: missing (broken) support for wbit field
on mtfsfi instruction (ppc64).  VEX fix committed, vex commit 3221.

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

9 years agoFix tst->os_state.pthread - magic_delta assertion failure on OSX 10.11
Rhys Kidd [Sat, 4 Jun 2016 15:34:56 +0000 (15:34 +0000)] 
Fix tst->os_state.pthread - magic_delta assertion failure on OSX 10.11
bz#354883

Whilst I’ve seen different magic_delta values on one of my older development machines (Intel Nehalem-based), enough other users have reported success with this change.

If this causes regressions, please report your hardware details in our Bugzilla.

Regression test output on OS X 10.11

Before:

== 601 tests, 223 stderr failures, 12 stdout failures, 0 stderrB failures, 0 stdoutB failures, 31 post failures ==

After:

== 601 tests, 223 stderr failures, 12 stdout failures, 0 stderrB failures, 0 stdoutB failures, 31 post failures ==

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

9 years agoPower PC Add test suite support for ISA 3.0, part 3
Carl Love [Wed, 1 Jun 2016 18:13:19 +0000 (18:13 +0000)] 
Power PC Add test suite support for ISA 3.0, part 3

The test suite support for the Power PC ISA 3.0 instructions added in
VEX commit 3220 is added in this commit.

Note, this is part 2 of 5.  The NEWS file will be updated when the ISA 3.0
support is complete.

valgrind bugzilla 362329

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

9 years agoBug 363680 add renameat2() support
Mark Wielaard [Tue, 31 May 2016 12:16:15 +0000 (12:16 +0000)] 
Bug 363680 add renameat2() support

Patch written by Jann Horn <jannhorn@googlemail.com>.

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

9 years agoBug 363714 ppc64 missing syscalls sync, waitid and name_to/open_by_handle_at
Mark Wielaard [Mon, 30 May 2016 20:16:04 +0000 (20:16 +0000)] 
Bug 363714 ppc64 missing syscalls sync, waitid and name_to/open_by_handle_at

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

9 years agoBug #363705 arm64 missing syscall name_to_handle_at and open_by_handle_at
Mark Wielaard [Mon, 30 May 2016 14:17:25 +0000 (14:17 +0000)] 
Bug #363705 arm64 missing syscall name_to_handle_at and open_by_handle_at

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

9 years agoUnify expected output of memcheck/tests/solaris/scalar test case
Ivo Raisr [Sun, 29 May 2016 17:28:00 +0000 (17:28 +0000)] 
Unify expected output of memcheck/tests/solaris/scalar test case
on amd64 and x86 architectures.
n-i-bz

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

9 years agoSolaris: Further refinement of r15882 for Solaris versions
Ivo Raisr [Sun, 29 May 2016 12:10:58 +0000 (12:10 +0000)] 
Solaris: Further refinement of r15882 for Solaris versions
which do not have <sys/sysnvl.h> header file.
n-i-bz

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

9 years agoSolaris: Add ioctl wrappers for DINFOUSRLD and DINFOIDENT.
Ivo Raisr [Sun, 29 May 2016 09:29:28 +0000 (09:29 +0000)] 
Solaris: Add ioctl wrappers for DINFOUSRLD and DINFOIDENT.
n-i-bz

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

9 years agoUnbreak non-Solaris builds after r15882.
Ivo Raisr [Sun, 29 May 2016 08:21:50 +0000 (08:21 +0000)] 
Unbreak non-Solaris builds after r15882.

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

9 years agoSolaris: Add syscall modctl with several commands implemented.
Ivo Raisr [Sat, 28 May 2016 22:05:43 +0000 (22:05 +0000)] 
Solaris: Add syscall modctl with several commands implemented.
n-i-bz

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

9 years agoMinor clarification for r15880.
Ivo Raisr [Tue, 24 May 2016 22:29:24 +0000 (22:29 +0000)] 
Minor clarification for r15880.

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

9 years agoDocument brk segment limitation, reference manual in limit reached msg.
Philippe Waroquiers [Sun, 22 May 2016 20:48:09 +0000 (20:48 +0000)] 
Document brk segment limitation, reference manual in limit reached msg.

The msg telling brk cannot be extended confuses some users
so improve the documentation and have the msg referencing the doc.

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

9 years agoSolaris: Add wrapper for setparam subcode of the door syscall.
Ivo Raisr [Mon, 16 May 2016 12:51:27 +0000 (12:51 +0000)] 
Solaris: Add wrapper for setparam subcode of the door syscall.

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

9 years agoSolaris ioctl: Add wrapper for I_FLUSH.
Ivo Raisr [Mon, 16 May 2016 11:38:29 +0000 (11:38 +0000)] 
Solaris ioctl: Add wrapper for I_FLUSH.

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

9 years agoSolaris ioctl: Add wrapper for I_FIND.
Ivo Raisr [Mon, 16 May 2016 06:12:27 +0000 (06:12 +0000)] 
Solaris ioctl: Add wrapper for I_FIND.

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

9 years agomips32: raise the limit for sizeof(TTEntryC)
Petar Jovanovic [Fri, 6 May 2016 17:34:55 +0000 (17:34 +0000)] 
mips32: raise the limit for sizeof(TTEntryC)

Raise limit for sizeof(TTEntryC) due to 8-byte alignement requirement for
ULong on mips32 platforms. It is a follow up to the same change on ppc32
(see r15875), and it un-breaks mips32-linux (broken with r15784).

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

9 years agoUn-break ppc32-linux following r15784. It appears that ppc32-ELF
Julian Seward [Thu, 28 Apr 2016 15:52:01 +0000 (15:52 +0000)] 
Un-break ppc32-linux following r15784.  It appears that ppc32-ELF
layout constraints are different from x86-ELF and so the assertion on
the sizeof(TTEntryC) fails on ppc32-linux.

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

9 years agoSplit the structure TTEntry into hot (small) and cold (large) parts,
Julian Seward [Wed, 27 Apr 2016 16:46:04 +0000 (16:46 +0000)] 
Split the structure TTEntry into hot (small) and cold (large) parts,
TTEntryH and TTEntryC.  TTEntryH is a VexGuestExtents plus one more
field.  For scenarios involving a lot of code discarding, when the
fast-path discard mechanism does not apply, this change reduces
significantly the number of LLC misses, because such discarding
involves sequentially searching the arrays of TTEntryH's.  For recent
Firefoxes the miss rate in a 6MB L3 cache is reduced by about 1/3, as
measured by /usr/bin/perf.

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

9 years agoFix indentation that gcc-6 -Wmisleading-indentation rightfully complaints about.
Julian Seward [Wed, 27 Apr 2016 08:19:52 +0000 (08:19 +0000)] 
Fix indentation that gcc-6 -Wmisleading-indentation rightfully complaints about.

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

9 years agoPower PC Fix V bit error in 128-bit BCD add and subtract instructions
Carl Love [Tue, 26 Apr 2016 20:05:13 +0000 (20:05 +0000)] 
Power PC  Fix V bit error in 128-bit BCD add and subtract instructions

Update the NEWS file for this bug

VEX commit       3218
Valgrind commit 15871

Bugzilla 360035

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

9 years agoPower PC Fix V bit error in 128-bit BCD add and subtract instructions
Carl Love [Tue, 26 Apr 2016 19:53:56 +0000 (19:53 +0000)] 
Power PC  Fix V bit error in 128-bit BCD add and subtract instructions

The original code was using the bcdadd / bcdsub instruction on the operand
shadow bits to calculate the shadow bits for the result.  This introduced
non-zero bits shadow bits in the result.   The shadow bits for these
instructions should be set to all valid or all invalid.  If one of the
argument shadow bits was one, then all of the shadow bits of the result should
be one.  Otherwise the result shadow bits should be zero.

This patch fixes the above bug in memcheck/mc_translate.c

Fixing the above bug broke the v-bit test.  The issue is the v-bit tester
assumes the shadow bits for the operands of a given Iop can be set to one
for testing purposes.  The implementation of the bcdadd and bcdsub was passing
a constant value for the variable ps.  The ps value is an argument to the
instruction that specifies how to set the sign code of the result.  The
implementation of the instructions was changed to issue the instruction with
ps=0.  Then the result of the instruction is updated in the VEX code if ps=1.
This changed also results in cleaning up the vbit test code.

This patch also fixes the issues with the v-bit test program.

Valgrind commit 3218

Bugzilla 360035

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

9 years agoPower PC Add test suite support for ISA 3.0, part 2
Carl Love [Tue, 26 Apr 2016 17:37:05 +0000 (17:37 +0000)] 
Power PC Add test suite support for ISA 3.0, part 2

The test suite support for the Power PC ISA 3.0 instructions added in
VEX commit 3217 is added in this commit.

Note, this is part 2 of 5.  The NEWS file will be updated when the ISA 3.0
support is complete.

valgrind bugzilla 359767

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

9 years agoFix compilation breakage on platforms that do already have a definition
Julian Seward [Sun, 24 Apr 2016 17:11:44 +0000 (17:11 +0000)] 
Fix compilation breakage on platforms that do already have a definition
for Elf{32,64}_Chdr.  This is fallout from r15868.  That commit provided
a configure test, but the resulting config.h was not included here, causing
the test results to be ignored.

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

9 years agoValgrind is able to read compressed debuginfo sections in two formats:
Ivo Raisr [Sat, 23 Apr 2016 20:28:27 +0000 (20:28 +0000)] 
Valgrind is able to read compressed debuginfo sections in two formats:
  - zlib ELF gABI format with SHF_COMPRESSED flag (gcc option -gz=zlib)
  - zlib GNU format with .zdebug sections (gcc option -gz=zlib-gnu)

Patch by: Aleksandar Rikalo <aleksandar.rikalo@imgtec.com>
Fixes BZ#303877

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

9 years agoFix Valgrind coredump when VG_(unimplemented)() is called
Ivo Raisr [Sat, 23 Apr 2016 19:35:11 +0000 (19:35 +0000)] 
Fix Valgrind coredump when VG_(unimplemented)() is called
early during main initialization, before the threads are
created and scheduler is initialized.
Fixes BZ#362009

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

9 years agoPPC64, Valgrind with GDB does not display 64-bit and 128-bit registers
Carl Love [Fri, 22 Apr 2016 15:03:46 +0000 (15:03 +0000)] 
PPC64, Valgrind with GDB does not display 64-bit and 128-bit registers
correctly

Forgot to add the new files to the previous commit 15864.

coregrind/m_gdbserver/power64-core2-valgrind-s1.xml
coregrind/m_gdbserver/power64-core2-valgrind-s2.xml
coregrind/m_gdbserver/power-vsx-valgrind-s1.xml
coregrind/m_gdbserver/power-vsx-valgrind-s2.xml
coregrind/m_gdbserver/power-vsx.xml

Bugzilla 360008 was opened for this issue.

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

9 years agoUpdate NEWS file for Bugzilla 360008 which has been fixed.
Carl Love [Thu, 21 Apr 2016 19:56:12 +0000 (19:56 +0000)] 
Update NEWS file for Bugzilla 360008 which has been fixed.
valgrind commit 15864

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

9 years agoPPC64, Valgrind with GDB does not display 64-bit and 128-bit registers
Carl Love [Thu, 21 Apr 2016 18:21:26 +0000 (18:21 +0000)] 
PPC64, Valgrind with GDB does not display 64-bit and 128-bit registers
correctly

1)  Fix Endianess issue that was missed in the BE to LE port.  GDB was
    not displaying the contents of the 64-bit and 128-bit registers
    correctly due to an Endianess issue.

2)  Fix displaying the shadow registers for the 64-bit and 128-bit
    registers.

Bugzilla 360008 was opened for this issue.

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

9 years agoPrint arguments of DWARF extension DW_CFA_ORCL_arg_loc.
Ivo Raisr [Wed, 20 Apr 2016 00:21:50 +0000 (00:21 +0000)] 
Print arguments of DWARF extension DW_CFA_ORCL_arg_loc.
n-i-bz

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

9 years agoSolaris: Add syscall wrapper for sysfs(84)
Ivo Raisr [Tue, 19 Apr 2016 15:57:13 +0000 (15:57 +0000)] 
Solaris: Add syscall wrapper for sysfs(84)
Fixes BZ#361926

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

9 years agoClean up after none/tests/solaris/stack-overflow.
Ivo Raisr [Mon, 18 Apr 2016 19:10:01 +0000 (19:10 +0000)] 
Clean up after none/tests/solaris/stack-overflow.
n-i-bz

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

9 years agoClean up properly Valgrind coredump after tests
Ivo Raisr [Mon, 18 Apr 2016 10:28:53 +0000 (10:28 +0000)] 
Clean up properly Valgrind coredump after tests
none/tests/solaris/reserve_sysstat_addr and reserve_sysstat_zone_addr.
The coredump is expected there as the test cases trigger unsupported
functionality.
n-i-bz

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

9 years agoFix compiler warning about implicit declaration of function "ioctl" on Solaris.
Ivo Raisr [Sun, 17 Apr 2016 20:21:24 +0000 (20:21 +0000)] 
Fix compiler warning about implicit declaration of function "ioctl" on Solaris.
It is required to #include <unistd.h> as well.
n-i-bz

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

9 years agoFix compiler warnings on Solaris 12 about assigning a function pointer
Ivo Raisr [Sun, 17 Apr 2016 19:28:04 +0000 (19:28 +0000)] 
Fix compiler warnings on Solaris 12 about assigning a function pointer
of an incompatible type to signal handler.
Untyped function pointer sa_handler() is no longer available
so we leverage sa_sigaction(int, siginfo_t *, void *) instead.
n-i-bz

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

9 years agoFix build on newer illumos distributions which streamlined inclusion of sys/regset.h.
Ivo Raisr [Sun, 17 Apr 2016 15:57:11 +0000 (15:57 +0000)] 
Fix build on newer illumos distributions which streamlined inclusion of sys/regset.h.
This means that sys/regset.h needs to be included explicitly now.
n-i-bz

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

9 years agoFix build on newer illumos distributions where struct fpchip_state
Ivo Raisr [Sun, 17 Apr 2016 10:05:29 +0000 (10:05 +0000)] 
Fix build on newer illumos distributions where struct fpchip_state
was renamed to _fpchip_state.
n-i-z

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

9 years agoSolaris specific fixes to nightly report.
Ivo Raisr [Sat, 9 Apr 2016 19:49:37 +0000 (19:49 +0000)] 
Solaris specific fixes to nightly report.
Solaris libc is always tied to the Solaris release.
n-i-bz

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

9 years agoFollow up to bug 345307.
Ivo Raisr [Fri, 8 Apr 2016 21:29:15 +0000 (21:29 +0000)] 
Follow up to bug 345307.
Passing parameter on x86 architecture was wrong in final_tidyup().

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

9 years agoKludge for multiple .rodata sections on Solaris introduced by BZ#353802
Ivo Raisr [Fri, 8 Apr 2016 20:38:30 +0000 (20:38 +0000)] 
Kludge for multiple .rodata sections on Solaris introduced by BZ#353802
is no longer needed. The situation with multiple ".rodata" sections existed
only between dozens of builds of Solaris 12.
Fixes BZ#360749

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

9 years agoBug 361226 valgrind part: s390x: risbgn (EC59) not implemented
Christian Borntraeger [Thu, 7 Apr 2016 18:55:25 +0000 (18:55 +0000)] 
Bug 361226 valgrind part:  s390x: risbgn (EC59) not implemented

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

9 years agoFix ppoll_alarm exclusion on OS X. n-i-bz.
Rhys Kidd [Thu, 7 Apr 2016 03:48:59 +0000 (03:48 +0000)] 
Fix ppoll_alarm exclusion on OS X. n-i-bz.

ppoll() is not POSIX, and accordingly we should ignore the lack
of support for this on OS X.

Exclude the ppoll_alarm regression test on that platform, as
introduced in r15823.

Regression test output on OS X 10.11

Before:

n/a

After:

== 602 tests, 223 stderr failures, 13 stdout failures, 0 stderrB failures, 0 stdoutB failures, 31 post failures ==

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

9 years agoImprove performance of helperc_MAKE_STACK_UNINIT, especially for the
Julian Seward [Wed, 6 Apr 2016 09:52:17 +0000 (09:52 +0000)] 
Improve performance of helperc_MAKE_STACK_UNINIT, especially for the
amd64-{linux,darwin} cases.  n-i-bz.

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

9 years agoLimit gcc114-arm64 test results mail to 2250 lines.
Mark Wielaard [Mon, 4 Apr 2016 18:22:15 +0000 (18:22 +0000)] 
Limit gcc114-arm64 test results mail to 2250 lines.

The arm64 results (diffs) are too big for the mailinglist.
Only email the first 2250 lines to the list.

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

9 years agomemset replacement: unroll vectorised loops.
Julian Seward [Mon, 4 Apr 2016 12:33:35 +0000 (12:33 +0000)] 
memset replacement: unroll vectorised loops.

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

9 years agoFix expected output of massif/tests/{new-cpp,overloaded-new}
Ivo Raisr [Mon, 4 Apr 2016 02:25:40 +0000 (02:25 +0000)] 
Fix expected output of massif/tests/{new-cpp,overloaded-new}
for libstdc++ from gcc5.
Even with fix for bug 345307 we still see allocations for
the emergency pool in libstdc++ which skew the expected results.

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

9 years agoFollow up to SVN commit r15844.
Ivo Raisr [Mon, 4 Apr 2016 02:13:59 +0000 (02:13 +0000)] 
Follow up to SVN commit r15844.
Fix expected output of gdbserver_tests also for Solaris.

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

9 years agoBug 361354 ppc64[le]: wire up separate socketcalls system calls
Mark Wielaard [Sun, 3 Apr 2016 20:33:11 +0000 (20:33 +0000)] 
Bug 361354 ppc64[le]: wire up separate socketcalls system calls

Newer glibc will use separate socket related syscalls instead of using
the multiplexing socketcall systemcall. On Fedora rawhide this causes
several tests to fail.

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

9 years agoUpdate gdbserver_tests filter for newer GDB version.
Mark Wielaard [Sun, 3 Apr 2016 15:24:20 +0000 (15:24 +0000)] 
Update gdbserver_tests filter for newer GDB version.

- Newer gdb say Thread .... hit Breakpoint, we expect just Breakpoint.
- We expect "Program received" instead of "Thread .... received"
- Ordering of '  Thread .... (tid .' might differ between gdb version,
  so remove all such lines except the "current" one (starts with '*').

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

9 years agoAdd nightly gcc114 arm64 builder.
Mark Wielaard [Sun, 3 Apr 2016 13:56:51 +0000 (13:56 +0000)] 
Add nightly gcc114 arm64 builder.

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

9 years agodrd/tests/std_thread[2].cpp rename execute_native_thread_routine.
Mark Wielaard [Sat, 2 Apr 2016 22:07:59 +0000 (22:07 +0000)] 
drd/tests/std_thread[2].cpp rename execute_native_thread_routine.

Both tests define a execute_native_thread_routine function that we
took from libstdc++. Unfortunately because of a bug this function
is not local in some versions of libstdc++ and so our similar named
function will clash when trying to link.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476#c2

Simply rename our version to work around this.

Since we don't build this part of the test code for gcc >= 6, this
issue only happens if the buggy libstdc++ thread code is used together
with gcc 5. This is the case with for example devtoolset-4-gcc-5.

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

9 years agoPower PC Add test suite support for ISA 3.0, part 1, fixes to memcheck
Carl Love [Wed, 30 Mar 2016 20:09:26 +0000 (20:09 +0000)] 
Power PC Add test suite support for ISA 3.0, part 1, fixes to memcheck

This is a fix for memchech/mc_machine.c found by the nightly regression
test.  The fix is for valgrind commit 15837

valgrind bugzilla 359767

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

9 years agoRun __gnu_cxx::__freeres() cleanup function available
Ivo Raisr [Wed, 30 Mar 2016 17:53:03 +0000 (17:53 +0000)] 
Run __gnu_cxx::__freeres() cleanup function available
from libstdc++ when available, similar to existing __libc_freeres().
New option --run-cxx-freeres=<yes|no> can be used to change whether
this cleanup function is called or not.

Note that __gnu_cxx::__freeres() is currently available
only in gcc 6. It is not yet decided what to do about
libstdc++ from gcc 5.
Tracked under https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69945
for libstdc++.

Fixes BZ#345307 (partially).

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

9 years agoFix bug 324227 also on Solaris.
Ivo Raisr [Wed, 30 Mar 2016 17:36:03 +0000 (17:36 +0000)] 
Fix bug 324227 also on Solaris.
We somehow overlooked this commit during development work on Solaris port
before it landed in the official repository.

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

9 years agoPower PC Add test suite support for ISA 3.0, part 1
Carl Love [Tue, 29 Mar 2016 21:47:00 +0000 (21:47 +0000)] 
Power PC Add test suite support for ISA 3.0, part 1

The test suite support for the Power PC ISA 3.0 support is added in this commit.  The
following files were added:

   none/tests/ppc64/ppc64_helpers.h
   none/tests/ppc64/test_isa_3_0.c
   none/tests/ppc64/test_isa_3_0_altivec.stderr.exp
   none/tests/ppc64/test_isa_3_0_altivec.stdout.exp
   none/tests/ppc64/test_isa_3_0_altivec.vgtest
   none/tests/ppc64/test_isa_3_0_other.stderr.exp
   none/tests/ppc64/test_isa_3_0_other.stdout.exp
   none/tests/ppc64/test_isa_3_0_other.vgtest

The following file was modified:
   none/tests/ppc64/Makefile.am

Note, the NEWS file was not updated as the ISA 3.0 support is not complete yet. This is the
first of five sets of commits needed to add all of the ISA 3.0 support.

valgrind bugzilla 359767

Corresponding Valgrind support added in:
  VEX commit 3214
  valgrind commit 15837

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

9 years agoPower PC Add support for ISA 3.0, part 1
Carl Love [Tue, 29 Mar 2016 21:28:43 +0000 (21:28 +0000)] 
Power PC Add support for ISA 3.0, part 1

The Floating-point condition code bits FPCC is bits[15:12] of the FPSCR.
The instructions fcmpu, fcmpo, dcmpu, dcmpq, dtstdc, dtstdcq, xscmpodq
and xscmpudq set the FPCC bits in addition to the BE field of the CC
register.  This support is needed by the ISA 3.0 instructions to be added.

Added support to emulate the modsw, moduw, modsd, modud, extswsli,
maddld, maddhd, maaddhdu, xxperm, xxpermr, vabsdub, vabsduh, vabsduw,
mtvsrws, xxextractuw, xxinsertw, xxspltib, xxbrh, xxbrw, xxbrd, xxbrq,
vpermr, vextractub, vextractuh, vextractuw, vextractd, vinsertb, vinserth,
vinsertw, vinsertd, lxvwsx, stxvb16x, stxvx, lxvb16x, lxvh8x, lxvx
instructions.

valgrind bugzilla 359767
VEX commit 3214

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

9 years agoMC_(helperc_MAKE_STACK_UNINIT): make the #if 0'd bits of code actually
Julian Seward [Fri, 25 Mar 2016 14:27:20 +0000 (14:27 +0000)] 
MC_(helperc_MAKE_STACK_UNINIT): make the #if 0'd bits of code actually
compile.  This is clearly pointless but is done for a cleanliness
point of view.  No functional change.

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

9 years agoRaise the number of reserved fds in m_main.c from 10 to 12.
Ivo Raisr [Thu, 24 Mar 2016 06:24:12 +0000 (06:24 +0000)] 
Raise the number of reserved fds in m_main.c from 10 to 12.
Fixes BZ#360752.

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

9 years agoIgnore generated stuff under memcheck/tests/arm64-linux.
Ivo Raisr [Wed, 23 Mar 2016 18:31:05 +0000 (18:31 +0000)] 
Ignore generated stuff under memcheck/tests/arm64-linux.
n-i-bz

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

9 years agoVG_(discard_translations):
Julian Seward [Mon, 21 Mar 2016 20:04:05 +0000 (20:04 +0000)] 
VG_(discard_translations):

* fix off-by-one error that forced use of the slow case unnecessarily

* change ECLASS_SHIFT from 11 to 13 so that ranges up to 8KB can fall
  within an equivalence class, and increase ECLASS_WIDTH by 1 so as to
    double the number of hash buckets (effectively).

These measures noticably improve the performance of modern Firefoxes,
since they do a lot of 4KB and 8KB discards as a result of mprotect
trickery used to implement W^X protection on JIT code pages.

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

9 years ago[mips] update stderr exp file for tc19_shadowmem
Petar Jovanovic [Mon, 21 Mar 2016 14:05:23 +0000 (14:05 +0000)] 
[mips] update stderr exp file for tc19_shadowmem

A few changes have had impact on expected output of tc19_shadowmem recently.
These are:
- r14175 (added extra "Block was alloc'd by thread #x" output)
- r13983 (removed "pthread_create_WRK (hg_intercepts.c:" output)
- r13965 (a few empty lines removed)

However, expected stderr file for mips32 has not been updated accordingly.
Update it now. This fixes helgrind/tests/tc19_shadowmem failure on mips32.

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

9 years agoAdd support for repository cache protocol version 31
Ivo Raisr [Wed, 16 Mar 2016 15:08:42 +0000 (15:08 +0000)] 
Add support for repository cache protocol version 31
n-i-bz

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

9 years agoBug #360425 - arm64 unsupported instruction ldpsw tests.
Mark Wielaard [Tue, 15 Mar 2016 15:08:01 +0000 (15:08 +0000)] 
Bug #360425 - arm64 unsupported instruction ldpsw tests.

Add tests for ldpsw implementation VEX svn r3212.

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

9 years agoBug #360519 none/tests/arm64/memory.vgtest might fail with newer gcc
Mark Wielaard [Tue, 15 Mar 2016 13:56:19 +0000 (13:56 +0000)] 
Bug #360519 none/tests/arm64/memory.vgtest might fail with newer gcc

The LDR (literal, int reg) testcase takes a code label and compares the
instructions around the label with known instructions in the code stream.
There were only fixed insns on either side of the checking instruction
which isn't enough given that offsets of +/-8 are used, instructions are
only 4 wide and the values loaded are 64bit. Newer gcc versions would
generate different code around the label and cause the tests to fail.

Add enough nops around the actual instruction to really give known
expected constant values to check against.

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

9 years agoSmall optimisation : use preprocessor for cache stats
Philippe Waroquiers [Sat, 12 Mar 2016 21:38:22 +0000 (21:38 +0000)] 
Small optimisation : use preprocessor for cache stats
as the compiler does not remove the access to the not useful static vars

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

9 years agoAdd arm64-linux to tests/platform_test.
Mark Wielaard [Thu, 10 Mar 2016 07:59:33 +0000 (07:59 +0000)] 
Add arm64-linux to tests/platform_test.

Prevent executing arm64-linux specific tests on other arches.

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

9 years agoBug 359503 - Add missing syscalls for aarch64 (arm64)
Mark Wielaard [Wed, 9 Mar 2016 16:18:37 +0000 (16:18 +0000)] 
Bug 359503 - Add missing syscalls for aarch64 (arm64)

Enable more arm64 syscalls. ioprio_set, ioprio_get, preadv, pwritev,
vmsplice, splice, tee, waitid, clock_nanosleep and perf_event_open.
Reported and patch (mostly) by Marcin Juszkiewicz.

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

9 years agoAdd arm64 scalar test. Enable tested syscalls.
Mark Wielaard [Wed, 9 Mar 2016 16:18:36 +0000 (16:18 +0000)] 
Add arm64 scalar test. Enable tested syscalls.

The new memcheck/tests/arm64-linux/scalar test is based on the
memcheck/tests/x86-linux/scalar test and contains all syscalls
that are also available on arm64. To make comparison of exp results
easier the order of the tested syscalls is the same as on x86.
This enables a couple extra arm64 syscalls. Part of the fix for
bug #359503 - Add missing syscalls for aarch64 (arm64).

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

9 years agoUse correct syscall numbers on arm64. Fix rename, dup2 and getpgrp.
Mark Wielaard [Wed, 9 Mar 2016 16:18:34 +0000 (16:18 +0000)] 
Use correct syscall numbers on arm64. Fix rename, dup2 and getpgrp.

We were using some wrong syscall numbers in vki-scnums-arm64-linux.h
arm64 doesn't implement a couple of old deprecated system calls like
rename, dup2, getpgrp and fork. Adjust m_libcfile.c rename and dup2
functions to use renameat (also on tilegx) and dup3 (with fcntl fallback
for bad oldfd). And in m_libcproc.c implement getpgrp as getpgid(0).
Also don't compile the fork syswrap on arm64 (it only supports clone).

In practice this only affected callgrind which was unable to rename
dump files in some cases and ELF core dumps might have contained some
bogus prstatus fields.

Related to bug #359503 - Add missing syscalls for aarch64 (arm64)
Reported by Marcin Juszkiewicz who also posted a nice overview
of system calls on different linux architectures:
https://marcin.juszkiewicz.com.pl/2016/03/05/from-a-diary-of-aarch64-porter-system-calls/

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

9 years agoSanitize signal mask in ppoll and pselect syscalls
Ivo Raisr [Tue, 8 Mar 2016 09:04:48 +0000 (09:04 +0000)] 
Sanitize signal mask in ppoll and pselect syscalls
Reported and Linux patch contributed by Steven Smith <sos22@archy.org.uk>
Fixes BZ#359871

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

9 years agomips32: minor improvements to vfp test
Petar Jovanovic [Mon, 7 Mar 2016 14:31:48 +0000 (14:31 +0000)] 
mips32: minor improvements to vfp test

Remove wrong use of early-clobber constraints.
Some formatting/codestyle changes added too.

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

9 years agoUnbreak build of several regression tests on Solaris 12 with gcc 5.3
Ivo Raisr [Fri, 4 Mar 2016 20:49:35 +0000 (20:49 +0000)] 
Unbreak build of several regression tests on Solaris 12 with gcc 5.3
We need to move _XOPEN_SOURCE from 500 to 600 which
comes with '-std=c99'.
n-i-bz

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

9 years agoSolaris door: Restrict availability of REP_PROTOCOL_ENTITY_FMRI to certain repcache...
Ivo Raisr [Tue, 1 Mar 2016 12:13:24 +0000 (12:13 +0000)] 
Solaris door: Restrict availability of REP_PROTOCOL_ENTITY_FMRI to certain repcache versions only
Follow-up for r15819.
n-i-bz

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

9 years agoSolaris door: Add support for REP_PROTOCOL_ENTITY_FMRI
Ivo Raisr [Mon, 29 Feb 2016 20:20:36 +0000 (20:20 +0000)] 
Solaris door: Add support for REP_PROTOCOL_ENTITY_FMRI
n-i-bz

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

9 years agoFix memcheck/tests/memalign_test expected output.
Mark Wielaard [Sun, 28 Feb 2016 10:37:55 +0000 (10:37 +0000)] 
Fix memcheck/tests/memalign_test expected output.

r15815 "Allow 8k and 32k page sizes" added an extra line in memalign_test.c.
This changed the line numbers in the output compared to the .exp file.
Just put everything on one (long) line to match expectations again.

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

9 years agomips: acquire exact page size using sysconf for unit_libcbase
Petar Jovanovic [Sat, 27 Feb 2016 00:38:38 +0000 (00:38 +0000)] 
mips: acquire exact page size using sysconf for unit_libcbase

Set exact value of VKI_PAGE_SIZE by calling sysconf(_SC_PAGESIZE).
This should set a correct value to this variable on MIPS systems with
different page sizes.

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

9 years agoPower PPC test case test_isa_2_07 steps out of array bounds.
Carl Love [Fri, 26 Feb 2016 17:38:47 +0000 (17:38 +0000)] 
Power PPC test case test_isa_2_07 steps out of array bounds.

The test none/tests/ppc64/test_isa_2_07.c steps beyond the data array in a
number of places. The issue is the array is declared to be of size N. The for
loop is: for (i=0; i<N; i=i+2). In the body of the loop the array elements
A[i] and A[i+1] are accessed. On the last iteration i=N-1 and the second array
access becomes A[N-1+1] which accesses one element past the declared array
size.

This commit fixes the array bounds by making the for loop read:

   for (i=0; i<N-1; i=i+2)

The expected output files

none/tests/ppc64/jm_int_isa_2_07.stdout.exp
none/tests/ppc64/jm_vec_isa_2_07.stdout.exp

are updated with the new expected results.

Valgrind Bugzilla 359829

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

9 years agoAllow 8k and 32k page sizes
Petar Jovanovic [Fri, 26 Feb 2016 16:05:29 +0000 (16:05 +0000)] 
Allow 8k and 32k page sizes

Allow 8k and 32k page sizes in memalign and other memory related tests.
This fixes crashes in the tests on systems with 8k or 32k pagesize.

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

9 years agomips: update README.mips
Petar Jovanovic [Fri, 26 Feb 2016 15:39:49 +0000 (15:39 +0000)] 
mips: update README.mips

Remove information on now obsolete "--with-pagesize" option.

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

9 years agomips: determine page size at runtime
Petar Jovanovic [Fri, 26 Feb 2016 15:30:53 +0000 (15:30 +0000)] 
mips: determine page size at runtime

Instead of passing an option to the configure script, use runtime detection
of the page size. Remove the "--with-pagesize" parameter from the configure
script.
Also accept 8k and 32k as valid page sizes.

Patch by Maran Pakkirisamy

It fixes BZ#342356.

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

9 years agoBug 359733 amd64 implement ld.so strchr/index override like x86
Mark Wielaard [Wed, 24 Feb 2016 11:12:01 +0000 (11:12 +0000)] 
Bug 359733 amd64 implement ld.so strchr/index override like x86

The suppression and redirection for ld.so strchr/index isn't needed for
x86. When testing a newer glibc or calling the ld.so through an alternative
path neither the suppression (doesn't match path/name) nor the redirection
(triggers too late) works. Since there is already an hardwire override for
strlen in amd64 ld.so anyway it makes sense to also hardware index (it is
always called when ld.so loads the preload images).

This was also explained in the easy hacks Fosdem session.
See https://bugs.kde.org/show_bug.cgi?id=359733 for a pointer.

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

9 years agoFix expected output of coredump generating test cases
Ivo Raisr [Wed, 24 Feb 2016 03:20:17 +0000 (03:20 +0000)] 
Fix expected output of coredump generating test cases
after SVN r15810.

Now that we have AT_ENTRY in the client auxv, mdb does not
print binary name before function designation.
n-i-bz

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

9 years agoEnable remote debugging for position independent executables
Ivo Raisr [Tue, 23 Feb 2016 21:48:13 +0000 (21:48 +0000)] 
Enable remote debugging for position independent executables
on Solaris. With gcc 5.3, PIEs can be produced on Solaris 12.

gdb on Solaris requires AT_ENTRY to correctly work with those.
See very long comment before function svr4_exec_displacement().
n-i-bz

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

9 years agoBug 359724 getsockname might crash - deref_UInt should call safe_to_deref
Mark Wielaard [Tue, 23 Feb 2016 21:27:19 +0000 (21:27 +0000)] 
Bug 359724 getsockname might crash - deref_UInt should call safe_to_deref

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