10490 Commits

Author SHA1 Message Date
Florian Krohm
65d93e4de3 Make SGCheck fail with a meaningful message on unsupported platforms.
Fixes BZ #325856.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13834
2014-02-22 22:03:09 +00:00
Florian Krohm
d4cd406ade Announce bug fix for BZ #331305
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13833
2014-02-22 18:45:39 +00:00
Florian Krohm
1db5bb0f39 Do not use == as it is not portable. Use = instead.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13832
2014-02-22 18:38:32 +00:00
Florian Krohm
5428b4f7a2 Bump __VALGRIND_MINOR__ to catch up with the release.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13831
2014-02-22 15:26:30 +00:00
Florian Krohm
5db9baf50d Avoid "let" which isn't portable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13830
2014-02-22 13:24:15 +00:00
Mark Wielaard
98b2f6cb9d Accept glibc 2.19 as valid.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13829
2014-02-21 21:13:55 +00:00
Julian Seward
c67214fcb6 Fix incorrect include, spotted by mjw.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13828
2014-02-21 14:56:48 +00:00
Julian Seward
68eb4397b1 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13827
2014-02-21 14:54:51 +00:00
Julian Seward
b1b41a45d8 * fix a bug in sys_clone that was causing threads to hang at exit
* enable enough syscalls to be able to run ssh and bash


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13826
2014-02-21 14:51:14 +00:00
Mark Wielaard
3473540d22 memcheck/tests/Makefile.am include filter_dw4 in dist_noinst_SCRIPTS.
The fix for BZ#331254 (r13814) added filter_dw4.
Make sure it is always included in the dist.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13825
2014-02-21 10:50:06 +00:00
Julian Seward
40469b7085 Enable sys_ppoll, sys_kill, sys_socketpair.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13824
2014-02-20 23:20:08 +00:00
Julian Seward
fa2ba0f61a arm64-linux: make restarting of syscalls interrupted by signals work
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13823
2014-02-20 23:18:32 +00:00
Julian Seward
c1cd47aae4 First attempt at supporting sys_clone.
Also enable: sys_exit, sys_nanosleep, sys_madvise.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13822
2014-02-20 17:36:56 +00:00
Julian Seward
5f800d9f15 Make these buildable on arm64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13821
2014-02-20 17:34:45 +00:00
Mark Wielaard
93d88baa00 Bug 331337 s390x WARNING: unhandled syscall: 326 (dup3)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13820
2014-02-20 15:43:07 +00:00
Petar Jovanovic
94787bcbe7 Removing fixed issue #326444 from the bug list
Issue #326444 has just been marked as fixed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13819
2014-02-19 16:59:57 +00:00
Florian Krohm
ba7e9e57e9 Remove those bugs that are already reported in NEWS as being
fixed and have a FIXED status in Bugzilla.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13818
2014-02-19 13:41:14 +00:00
Dejan Jevtic
3d1369a6e0 mips32: Support for 64bit FPU on MIPS32 platforms.
Tests for 64bit FPU instructions on MIPS32 platforms.
Some mips instructions can cause SIGILL (Illegal instruction),
so we need to add SIGILL signal and a proper handler for that signal.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13817
2014-02-19 11:57:22 +00:00
Florian Krohm
bc1f32fb67 Fix BZ #327212. Check for absolute path name at the end of
expand_file_name -- not at the beginning.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13816
2014-02-19 11:16:00 +00:00
Dejan Jevtic
1413bad9ec mips32/64: Remove default flags -mips32 and -mips64 from the Makefile.all.am.
During configuration of Valgrind we check does the compiler support -march=mips32 and
-march=mips64. If compiler supports these flags we are using them as default flags for
mips32 and mips64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13815
2014-02-18 16:40:25 +00:00
Tom Hughes
c6e0a9d24e Filter out differences in structure size
Patch from Ivo Raisr on BZ#331254


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13814
2014-02-17 22:59:42 +00:00
Tom Hughes
1175b7c1a3 Use pclose instead of fclose to close pipes opened with popen, which
also allows us to drop the loop that was supposed to give the child a
chance to exit as the pclose will wait properly for the child.

Fix from Ivo Raisr on BZ#331255


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13813
2014-02-17 22:44:52 +00:00
Tom Hughes
c8f66f8d4d Use sigjmp_buf with sig{set,long}jmp, not jmp_buf
Patch from Ivo Raisr on BZ#331257


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13812
2014-02-17 22:32:15 +00:00
Petar Jovanovic
b8c6f1c0a3 mips64: add missing file to EXTRA_DIST
Add missing cvm_lx_ins.stdout.exp-BE to EXTRA_DIST.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13811
2014-02-15 03:38:57 +00:00
Petar Jovanovic
2a676450a3 mips64: update list of svn ignore files
Several executables had to be added to the svn ignore list for
none/tests/mips64 folder.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13810
2014-02-14 18:57:29 +00:00
Petar Jovanovic
b117eca6ed mips64: correct mistyped test name
Minor name changed in .vgtest file.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13809
2014-02-14 18:09:03 +00:00
Petar Jovanovic
544994d634 mips64: add tests for load indexed instructions
Tests that should be executed on MIPS64 platforms that support lwx, ldx
and lbux.

Relevant VEX change - r2819.

Patch by Zahid Anwar, with some changes.

Related to Bugzilla issue 326444. It closes this issue now.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13808
2014-02-14 17:50:42 +00:00
Florian Krohm
bd3b47c9e3 Fix V-bit tester failures introduced by VEX r2815.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13807
2014-02-14 09:08:39 +00:00
Florian Krohm
d303ae08fa Update list of ignored files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13806
2014-02-14 08:30:28 +00:00
Petar Jovanovic
e65d1dafdf mips64: Add BE version of cvm_lx_ins.stdout.exp
Read-memory tests are endian sensitive.
Add BE version of cvm_lx_ins.stdout.exp that has been tested on
Cavium Octeon II in BE mode.

Related to Bugzilla issue 326444.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13805
2014-02-13 18:07:03 +00:00
Philippe Waroquiers
68e8bbc426 arm64: implement the apply on all GP register.
This is needed for leak search to work properly/not crash.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13804
2014-02-12 20:50:03 +00:00
Philippe Waroquiers
067c4c21bd Mention that --vgdb=full bypasses the discard_translation gdbsrv problem
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13803
2014-02-12 20:48:18 +00:00
Philippe Waroquiers
012e0080ef No need to discard translation in gdbserver when --vgdb=full
is given, as all instructions are in any case instrumented when
full is given.

This is (slightly) more efficient for full, and allows
to bypass the arm64 discard_translation problem caused by unchain
missing


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13802
2014-02-12 20:41:58 +00:00
Philippe Waroquiers
e6f86f0879 README.aarch64 : update status of gdbsrv for arm64
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13801
2014-02-12 00:02:05 +00:00
Philippe Waroquiers
2d3d477689 Fix or implement various things to have V gdbsrv working on arm64
* better handle error recovery when calling remote_desc_activity
  (avoid exhausting safe fd range)
* fix small error in m_gdbserver/README_DEVELOPERS
* implemented mknod and poll syscall on mknodat and ppoll
  (mknod and poll are not directly supported on arm64)
* implement or fix various gdbsrv specific things needed for arm64
* changed assert condition in aspacemgr to VKI_SHMLBA >= VKI_PAGE_SIZE

With these changes, gdbserver integration seems to be basically working.
However, when breakpoints are placed or removed, discard_translations
causes an assert as the unchain has not been implemented yet for arm64 :

    --1118:1:gdbsrv   remove software_breakpoint at addr 0x400DE74 0x400DE74: _dl_debug_state (in /usr/lib64/ld-2.17.so)
    --1118:2:transtab   discard_translations(0x400de74, 2) req by m_gdbserver breakpoint remove
    --1118:2:transtab                       FAST, ec = 27

    vex: priv/main_main.c:1070 (LibVEX_UnChain): Assertion `0' failed.
    vex storage: T total 5480544 bytes allocated
    vex storage: P total 0 bytes allocated

    valgrind: the 'impossible' happened:
       LibVEX called failure_exit().
    ==1118==    at 0x3809E6B8: ??? (in /home/philippe/crossaarch64/trunk/Inst/lib/valgrind/none-arm64-linux)

    sched status:
      running_tid=1

What remains to be done:
  * arm64 xml register description files (allowing shadow registers to be looked at).
  * ptrace invoker : currently disabled for both arm and arm64
  * cpsr transfer to/from gdb to be looked at (see also arm equivalent code)




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13800
2014-02-11 23:50:16 +00:00
Christian Borntraeger
4b8f0be86d - Handle KVM_CREATE_IRQCHIP, which does not take any parameter
and returns 0 or -1.
- white space fixes around the KVM ioctls


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13799
2014-02-11 15:15:31 +00:00
Florian Krohm
4f7f6d8d17 Ignore executable. Should have been part of r13791.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13798
2014-02-10 17:52:35 +00:00
Julian Seward
61ef1c2dde Fix the ppc32 special-instruction magic sequence so it really does
preserve the value of r0, as claimed.  Fixes #278808 (Valgrind side).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13797
2014-02-10 12:26:12 +00:00
Tom Hughes
7e3bedb81e Update NEWS for VEX r2814
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13796
2014-02-09 11:41:25 +00:00
Tom Hughes
1cdbef5fd8 Fix typo in poll wrapper
Patch from Ivo Raisr via BZ#330941


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13795
2014-02-09 11:10:08 +00:00
Bart Van Assche
74e8b94ed7 drd: Make the code added in r13792 portable
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13794
2014-02-09 09:10:14 +00:00
Bart Van Assche
41cc572c7f drd/tests/trylock: Make this test pass for glibc >= 2.18
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13793
2014-02-08 11:19:12 +00:00
Bart Van Assche
ea8a9313c2 drd: Avoid that the drd/tests/pth_mutex_reinit test fails with glibc >= 2.18
Apparently with glibc >= 2.18 the value returned by pthread_mutexattr_gettype()
is not the same as the value passed to pthread_mutexattr_settype(). Add a
workaround for this glibc bug.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13792
2014-02-08 10:55:08 +00:00
Carl Love
49987d5c4a This commit is a fix for "Bug 330622 - Add test to regression suite for POWER
instruction: dcbzl" submitted by Anmol P. Paralkar <paralkar@freescale.com>

The patch adds the following files:

 none/tests/ppc64/data-cache-instructions.vgtest
 none/tests/ppc64/data-cache-instructions.c
 none/tests/ppc64/data-cache-instructions.stdout.exp
 none/tests/ppc64/data-cache-instructions.stderr.exp
 none/tests/ppc32/data-cache-instructions.stdout.exp
 none/tests/ppc32/data-cache-instructions.c
 none/tests/ppc32/data-cache-instructions.vgtest
 none/tests/ppc32/data-cache-instructions.stderr.exp
 tests/power_insn_available.c


The following files are modified:

 none/tests/ppc32/Makefile.am
 none/tests/ppc64/Makefile.am
 tests/Makefile.am





git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13791
2014-02-08 02:19:12 +00:00
Florian Krohm
5b0ce0cc5e Fix V-bit tester failures introduced by VEX r2812.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13790
2014-02-06 18:53:30 +00:00
Julian Seward
5194dedac4 Create a list of all bugs reported after the 3.9.0 release
(I think).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13789
2014-02-05 14:00:16 +00:00
Julian Seward
00e47d922d Show a line in the output log when the client connects but the
requested file is not found by the server.  This makes it easier to
diagnose client--server communications problems.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13788
2014-02-05 13:20:58 +00:00
Julian Seward
fad45c7b45 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13787
2014-02-05 11:02:34 +00:00
Petar Jovanovic
1461dae691 mips64: Add tests that cover Cavium-specific load indexed instructions
Tests for lhux, lwux, and lbx for Cavium Octeon II.

Patch by Zahid Anwar, with changes.

Related to Bugzilla issue 326444.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13786
2014-01-31 12:49:22 +00:00
Tom Hughes
6ef2cbe59d Add support for the clock_adjtime system call.
Based on a patch from Stefan Sørensen on BZ#330469.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13785
2014-01-30 22:33:02 +00:00