Commit Graph

11919 Commits

Author SHA1 Message Date
Rhys Kidd
3d205e0fb4 Guard two hanging tests on OS X 10.11, which otherwise prevent regression test suite from running in automated manner. n-i-bz
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15474
2015-08-03 00:44:01 +00:00
Florian Krohm
7c333d2287 GCC 5.1 issues warnings about static variables declared within non-static
inline functions. There is no command line flag so suppress that particular
warnings. So let's suppress all warnings for this testcase.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15473
2015-08-02 20:05:41 +00:00
Florian Krohm
31b1a2ec78 Silence a few more warnings from GCC 5.1
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15472
2015-08-02 19:45:58 +00:00
Florian Krohm
6e1a7a11a0 Silence a few warnings issued by GCC 5.1 claiming that 'res' is
uninitialised. Perhaps an incorrect clobber or a compiler bug? 
Anyhow, initialising the variable will do the trick.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15471
2015-08-02 19:35:49 +00:00
Florian Krohm
56e0f1ed28 As pointed out by GCC 5.1 macro arguments ought to be paranthesized
when referenced. Previously CHECK(a && b) would expand to !a && b
which clearly was not the intention.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15470
2015-08-02 19:31:14 +00:00
Ivo Raisr
9ac1832814 Check for Solaris specific program headers PT_SUNW_SYSSTAT and PT_SUNW_SYSSTAT_ZONE;
and act accordingly. Test cases provided. n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15469
2015-08-01 21:53:08 +00:00
Philippe Waroquiers
6e9f720b20 ensure that __strncpy_sse2 is replaced by the canonical name.
This makes memcheck/tests/overlap work on debian8/x86 (pentium4).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15468
2015-08-01 14:20:10 +00:00
Ivo Raisr
5633f3b114 Fix hard-to-understand code in VG_(load_ELF)().
Although it is a valid C [1], the closing bracket for "case PT_INTERP" is misplaced.
Fixes BZ #350854.

[1] https://en.wikipedia.org/wiki/Duff%27s_device#Mechanism


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15467
2015-08-01 12:11:09 +00:00
Zhi-Gang Liu
93fd03ab35 Merge tilegx instruction test patch "valgrind-tilegx-instruction-test.patch"
in Bug 345921 - Add TileGX instruction set test in none/tests/tilegx
Submitted by Liming Sun, lsun@ezchip.com



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15466
2015-08-01 03:52:03 +00:00
Ivo Raisr
078782cc18 Update list of Solaris specific ignored files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15465
2015-07-31 18:54:57 +00:00
Ivo Raisr
37faa477be Use handwritten memcheck assembly helpers on x86/Solaris in addition to {arm,x86}-linux.
Fixes BZ #350813.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15464
2015-07-31 16:12:44 +00:00
Rhys Kidd
b21fcf35e9 Properly guard none/tests/amd64/avx-1. This resolves one failing regression test on OS X with modern hardware. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15463
2015-07-31 13:06:14 +00:00
Florian Krohm
4dc43bea4d Fix testcase such that it can be run under cron on Solaris.
The tescase depends on SIGHUP to be delivered but cron on Solaris
ignored the signal. So it needs to be enabled in child processes
after fork.
Patch by Ivo Raisr <ivosh@ivosh.net>.  Fixes BZ #350809.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15462
2015-07-31 06:58:16 +00:00
Florian Krohm
580130820c Remove implicit reference to the --db-attach feature which was
removed in r15445. Patch by Ivo Raisr <ivosh@ivosh.net>.
Fixes BZ #350811.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15461
2015-07-31 06:42:19 +00:00
Florian Krohm
f5ca26042c In VALGRIND_PRINTF write out the thread name to xml.
Patch by Matthias Schwarzott <zzam@gentoo.org>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15460
2015-07-30 21:49:49 +00:00
Rhys Kidd
12d2c103ad Fix memcheck/tests/darwin/aio on OS X.
n-i-bz

On OS X 10.10

Before:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 593 tests, 213 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15454
2015-07-26 05:52:21 +00:00
Rhys Kidd
0a59ab78ef Clean up some bit rot within memcheck/tests/darwin/scalar. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15453
2015-07-26 04:26:06 +00:00
Bart Van Assche
48ee0165f2 configure.ac: Improve portability of the code introduced in r15423
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15452
2015-07-25 14:31:02 +00:00
Rhys Kidd
c5cf91fc5d ioctl handling needs to do POST handling on generic ioctls and needs to handle BPF ioctls
bz#312989

Patch by Guy Harris <guy@alum.mit.edu>

On OS X 10.10

Before:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15451
2015-07-25 07:57:55 +00:00
Rhys Kidd
4848781351 Fix clang/osx: ld: warning: -read_only_relocs cannot be used with x86_64
bz#349769


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15450
2015-07-25 05:50:10 +00:00
Rhys Kidd
594601e8b5 Properly conditionalise these tests, now that they are guarded on certain combinations of operating system and compiler.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15446
2015-07-24 12:47:59 +00:00
Florian Krohm
021a3ef28b Remove command line options --db-attach and --db-command which were
deprecated in 3.10.0


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15445
2015-07-24 11:50:12 +00:00
Rhys Kidd
e2dfee078f Fix valgrind 3.9.0 build fails on Mac OS X 10.6.8
bz#327745

Patch by Mark H <mh8928@yahoo.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15444
2015-07-24 10:23:34 +00:00
Rhys Kidd
6a95af3f6a Resolve makefile consistency error at conclusion of make regtest
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15443
2015-07-23 06:21:07 +00:00
Rhys Kidd
15a0f32113 Complete fix for bz#344416 - Fix make regtest does not work cleanly on OS X (3).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15442
2015-07-23 05:49:13 +00:00
Rhys Kidd
5bd4c0d953 Partial fix for bz#344416 - Fix make regtest does not work cleanly on OS X (2).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15441
2015-07-23 05:33:31 +00:00
Rhys Kidd
e003dfb3b3 Partial fix for bz#344416 - Fix make regtest does not work cleanly on OS X.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15440
2015-07-23 05:04:36 +00:00
Bart Van Assche
d138ed7448 regression tests: Remove superfluous backticks
Backticks are not needed around a shell statement that does not produce
any output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15439
2015-07-23 02:47:42 +00:00
Bart Van Assche
9ce23dde2a tests/vg_regtest: Always evaluate prerequisite expressions with sh
This avoids that expressions like ! <stmnt> fail with a mysterious
error message.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15438
2015-07-23 02:46:44 +00:00
Rhys Kidd
feaf31d77f Set svn:ignore on new gdbserver_test/solaris folder
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15437
2015-07-23 01:07:38 +00:00
Rhys Kidd
12948fdbb8 Unbreak the OS X/clang build from r15419. This handrolled assembly on x86 will need more work to build with Apple's clang variant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15436
2015-07-23 00:08:30 +00:00
Philippe Waroquiers
e97d5ed3eb Unbreak the build on several setups :
It looks like the standard says that
   #define __STDC_FORMAT_MACROS
is needed in c++ in order to have PRIxPTR defined.

At least on gcc110 g++ 4.7.2, leak_cpp_interior.cpp
was not compiling.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15435
2015-07-22 21:37:06 +00:00
Florian Krohm
4977f5500b Add two more tests with missing interpreter names.
Consolidate 'nointerp' testcase file names.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15432
2015-07-21 22:05:07 +00:00
Florian Krohm
c5b5f7451a Add testcase. Should have been in r15429.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15431
2015-07-21 21:49:06 +00:00
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