Commit Graph

11885 Commits

Author SHA1 Message Date
Florian Krohm
9d35a5c2fa Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15430
2015-07-21 21:44:02 +00:00
Florian Krohm
128fe0d9c4 Fix BZ #338606. Basically, the bug was that it was believed that
the interpreter following the #! has to be an absolute path name.
Not so; relative path works just fine.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15429
2015-07-21 21:37:23 +00:00
Florian Krohm
7f6d47e20c Update list of ignored files from solaris port.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15428
2015-07-21 21:01:40 +00:00
Julian Seward
0cc293514c Fix incorrect implementation of LOADV64le that was added in r15418.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15427
2015-07-21 15:38:43 +00:00
Julian Seward
ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com
            


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00
Carl Love
059aa611c1 Patch 7 of 7, improve PPC HW capabiltiy checking.
The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

A handful of cosmetic changes to the ppc32 and ppc64 makefiles.
Cleans up some whitespace issues, spaces/tabs/etc,
Rearranges some of the contents so they are logically group, and
more consistent between the 32- and 64- bit versions of the same.

Bugzilla 34979


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15425
2015-07-20 22:22:42 +00:00
Carl Love
a06e72acfe Patch 6 of 7, improve PPC HW capabiltiy checking.
The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Rework hwcap checking in configure.ac.  This adds and swizzles
some of the capability checking as found in configure.ac.
This cleans up some corner cases where capabilities were assumed
based on compiler features, but not supported by the platform.
- clean up vsx kludge, and remove associated comment.
- check assorted capabilities against the hwcap values, including
  altivec, vsx, dfp, htm, ISA_2_0* .

Bugzilla 34979


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15424
2015-07-20 21:57:21 +00:00
Carl Love
aa85e04a41 Patch 4 and 5 of 7, improve PPC HW capabiltiy checking.
The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Patches 4 and 5 need to be applied together.  Add convenience function
for processing hwcap entries. Add logic to check for HTM support in compiler.

Bugzilla 34979


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15423
2015-07-20 21:25:32 +00:00
Carl Love
296ac5e8c1 Patch 3 of 7, improve PPC HW capabiltiy checking.
The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

remove unused capability checking scripts.
these have been replaced by the check_ppc64_auxv_cap script.

change tests/check_ppc64_auxv_cap to executable.  Tried to make it
executable on the last commit but for some reason it didn't seem to suceed.

Bugzilla 34979


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15422
2015-07-20 20:36:47 +00:00
Carl Love
8c1cc04641 Patch 2 of 7, improve PPC HW capabiltiy checking.
The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Update all vgtest files to reference the new capability check helper.
This includes a few adjustments to ensure the test is checking for
the specific capability. I.e. isa_2_07 is a requirement for htm, but
does not indicate htm support is actually present.

Bugzilla 34979


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15421
2015-07-20 19:36:53 +00:00
Carl Love
8e3ac6c190 Patch 1 of 7, improve PPC HW capabiltiy checking.
The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Add generic (ppc64) aux vector capability checking script.
This consolidates several of the existing _cap checking scripts.

Bugzilla 34979



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15420
2015-07-20 18:53:56 +00:00
Julian Seward
73e3ad2a5b Bug 349879 - [PATCH] memcheck: add handwritten assembly for helperc_LOADV
Patch from Matthias Schwarzott (zzam@gentoo.org)

Also, add better sectioning with comment lines, as this part of the code
was getting hard to follow.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15419
2015-07-20 13:11:03 +00:00
Julian Seward
3174c10841 VG_(helperc_LOADV64le): add handwritten assembly helper for ARM32
VG_(helperc_LOADV32le): VG_(helperc_LOADV16le): VG_(helperc_LOADV8):
use ".L" style assembly labels so they don't appears as new symbols
during disassembly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15418
2015-07-20 09:59:25 +00:00
Rhys Kidd
449347505f Block the running of a known hanging regression test on OS X. Partial fix for bz#344416, and related to BZ#216837.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15417
2015-07-19 07:19:54 +00:00
Rhys Kidd
f8b4dc3b58 Block the running of a known hanging regression test on OS X. Partial fix for bz#344416, and related to BZ#350359.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15416
2015-07-19 01:07:26 +00:00
Rhys Kidd
b5ce362e7b Documentation: Ensure alignment of the x86 and amd64 darwin code in m_sigframe. Follows from a side-by-side code review.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15415
2015-07-18 05:53:56 +00:00
Florian Krohm
50efb3fc83 Announce bug fix for BZ #350251
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15414
2015-07-16 21:43:30 +00:00
Petar Jovanovic
6fa0e74c20 mips32: fix build error caused by r15404
Fix typo that caused build break for mips32.

"error: invalid preprocessing directive #elsif"



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15413
2015-07-15 18:07:36 +00:00
Rhys Kidd
dd23e30c68 OS X 10.11: Tweak magic offset, which was amended prior to xnu-3247.1.36~7 (DP3). Also align some debug output text between x86 and amd64. bz#348909.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15411
2015-07-12 13:25:55 +00:00
Rhys Kidd
042441c57f Fix Valgrind does not support pthread_sigmask() on OS X
bz#201216

On OS X 10.10

Before:

== 592 tests, 220 stderr failures, 15 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 592 tests, 219 stderr failures, 15 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15410
2015-07-12 06:54:56 +00:00
Florian Krohm
68e854afe3 Fix syntax error;
Certain GCC versions do not accept empty clobber lists.
Patch by Andreas Arnez (arnez@linux.vnet.ibm.com). Part of 
fixing BZ #342841.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15409
2015-07-10 17:21:12 +00:00
Rhys Kidd
89c527ff7b Better align OS X error reporting with other platforms. Refer coregrind/m_ume/elf.c
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15408
2015-07-10 08:14:18 +00:00
Florian Krohm
bee7a2bf8b Followup to r15406:
- update list of supported s390 opcodes
- update bug status
- keep BZ list in NEWS sorted


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15407
2015-07-09 21:05:26 +00:00
Christian Borntraeger
b1b0ea7eae Fix from Andreas Arnez for bug 342841 s390x unrecognized instruction fiebra
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15406
2015-07-09 19:21:42 +00:00
Julian Seward
5081761ce2 Minor updates; also note the fixing of 346411.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15405
2015-07-08 17:13:46 +00:00
Julian Seward
2ac4c69401 Fix "346411 MIPS: SysRes::_valEx handling is incorrect"
Specialise type SysRes for mips{32,64}-linux to enable 
meaningful equality comparisons.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15404
2015-07-08 17:08:23 +00:00
Rhys Kidd
0fcd971d15 Preliminary support for OS X 10.11 (El Capitan). Refer BZ#348909 for ongoing work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15403
2015-07-08 13:46:57 +00:00
Julian Seward
b08074afb2 Roughly classify all the bugs in 3_10_BUGSTATUS.txt.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15401
2015-07-08 09:22:40 +00:00
Julian Seward
1c9d03a09d VG_(get_StackTrace_wrk) for x86-{linux,darwin}: when following
frame-pointer chains (via EBP), don't continue if EBP doesn't contain
a 4-aligned value.  A misaligned EBP is almost certainly invalid --
hence, no loss in unwind capability here -- and the misaligned access
causes gcc 5.1 ubsan alignment checks to fail.  So avoid them.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15400
2015-07-07 14:06:00 +00:00
Julian Seward
f182df1a0b Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15399
2015-07-07 13:29:09 +00:00
Mark Wielaard
c814eb6b35 349941 di_notify_mmap might create wrong start/size DebugInfoMapping
Use seg->start instead of a as DebugInfoMapping avma. Normally seg->start
equals a. But when it is not then the size of the map might extend beyond
the segment (and not actually cover the start of the segment). When another
ELF file is them mapped right after this then it triggers an overlap purge
of the DebugInfo. In the case the mapping was for libc or ld.so this then
removes all intercepts causing "bad things".

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15398
2015-07-07 13:01:40 +00:00
Mark Wielaard
1aef4dc72c 349828 memcpy intercepts memmove causing src/dst overlap error (ppc64 ld.so)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15397
2015-07-07 13:01:39 +00:00
Florian Krohm
20efd87659 Revert an accidental change to the address space manager that sneaked
in in r15394.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15396
2015-07-06 20:22:16 +00:00
Rhys Kidd
35da09b93d Followup to r15394 and BZ #349874. Ensure tests align with (corrected) output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15395
2015-07-06 09:34:12 +00:00
Florian Krohm
7a474c9455 Fix typos in source code. Patch by Dmitriy (olshevskiy87@bk.ru).
Fixes BZ #349874


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15394
2015-07-05 21:53:33 +00:00
Florian Krohm
9012b9df43 Fix scripts to use /bin/true consistently.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15392
2015-07-03 20:07:08 +00:00
Rhys Kidd
50310539d6 Fix Memcheck: the 'impossible' happened: unexpected size for Addr (OSX/wine)
bz#347988
== 345929

On OS X 10.10

Before:

== 592 tests, 222 stderr failures, 14 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 592 tests, 222 stderr failures, 14 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15391
2015-07-01 23:04:58 +00:00
Carl Love
c4fb707788 Backing out patch 1 and 2 from Bugzilla 349790.
The new script (tests/check_ppc64_auxv_cap) in the first patch was
written for the bash shell.  I was told by fkrohm that there was an
issue with bash sometime ago and the decision was to use sh instead.
sh maps to bash on a lot of systems but on some it maps to dash.  The
script is not compatible with dash.  

In retesting the second patch with a fresh svn pull, I found that I
forgot to do the svn add for the new script file.  Which causes the
regression test to fail with the second patch applied.  

So, I have decided it will be best to just back out patch 1 and 2 for now.
I will fix the script and do this again.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15390
2015-07-01 21:29:12 +00:00
Carl Love
633ec0c887 Patch 2 of 6
Update all vgtest files to reference the new capability check helper.
This includes a few adjustments to ensure the test is checking for
the proper capability. (i.e. htm versus isa_2_07).

Patch 1 valgrind commit id 15388.

The bugzilla for this commit is 349790

Patch submitted by 	 Will Schmidt <will_schmidt@vnet.ibm.com>
Reviewed and tested by Carl Love <cel@ibm.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15389
2015-07-01 19:44:13 +00:00
Carl Love
33d527bae5 Patch 1 of 6
Rework the aux vector hwcap capability checking utilities.
This is meant to consolidate a number of existing _cap
checking scripts, and allow a better way of checking for
additional capabilites.

The bugzilla for this commit is 349790

Patch submitted by 	 Will Schmidt <will_schmidt@vnet.ibm.com>
Reviewed and tested by Carl Love <cel@ibm.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15388
2015-07-01 18:48:48 +00:00
Bart Van Assche
f99af0adae Add news entry for bugzilla #349626
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15387
2015-06-28 17:06:14 +00:00
Bart Van Assche
6ae9001870 xen: Drop bogus port field from vki_xen_ioctl_evtchn_bind_virq
This ioctl argument struct has never had such a member.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15386
2015-06-28 16:57:48 +00:00
Bart Van Assche
a914bcf7f5 xen: Implement physdev_op and map_pirq
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15385
2015-06-28 16:57:10 +00:00
Bart Van Assche
b64fedcf91 xen: Implement the xsm_op hypercall
More recent Xen toolstacks use this for the SID_TO_CONTEXT operation
only, even when XSM is not in use.

XSM is actually an abstraction layer, of which the only current
implementation is FLASK. So this blindly assumes that the backend is
FLASK. Should another XSM backend be invented then we will have to
sort of detecting the correct one.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15384
2015-06-28 16:55:45 +00:00
Bart Van Assche
31229b7020 xen: syswrap XEN_SCHEDOP_remote_shutdown
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15383
2015-06-28 16:53:58 +00:00
Bart Van Assche
3adbf40a38 Follow-up for r15381
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15382
2015-06-28 16:52:49 +00:00
Bart Van Assche
d2a0392539 xen: Basic syswrap infrastructure for XEN_sched_op hypercalls
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15381
2015-06-28 16:48:22 +00:00
Bart Van Assche
f49647fd78 xen: Implement memory map hypercalls
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15380
2015-06-28 16:47:13 +00:00
Bart Van Assche
7a8a964019 xen: syswrap XENMEM_machphys_compat_mfn_list
XENMEM_machphys_compat_mfn_list is functionally identical to
XENMEM_machphys_mfn_list but returns a different list from Xen.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15379
2015-06-28 16:46:30 +00:00
Bart Van Assche
15667c1499 syswrap-xen.c: Make indentation consistent
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15378
2015-06-28 16:45:44 +00:00