12712 Commits

Author SHA1 Message Date
Bart Van Assche
2393a4c5ca tests: Remove exception specifications
Exception specifications are a deprecated feature in C++11 and gcc 7
complains about these specifications. Hence remove these specifications.
This patch avoids that gcc reports the following:
    
  warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16360
2017-05-11 03:07:11 +00:00
Bart Van Assche
4782f8c4c1 drd: Update suppressions file
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16359
2017-05-11 03:05:53 +00:00
Ivo Raisr
754487de4f Add Linux specific ioctl wrapper for CDROMREADMODE1
Fixes BZ#360429
Original patch by: Vasantha Ganesh K <vasanthaganesh.k@tuta.io>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16358
2017-05-10 23:14:31 +00:00
Ivo Raisr
647a2e7877 Update list of ignored files in drd/tests.
Follow up to r16343.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16357
2017-05-10 18:09:36 +00:00
Ivo Raisr
dc5c10e622 Updated 3_12_BUGSTATUS.txt.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16356
2017-05-10 18:06:56 +00:00
Ivo Raisr
d73f2c748a Implement additional Xen hypercalls
Fixes BZ#373086
Patch by: Mihai DONȚU <mihai.dontu@gmail.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16355
2017-05-10 18:04:17 +00:00
Ivo Raisr
4770c34059 Update Xen 4.6 domctl wrappers
Fixes BZ#377891
Patch by: Antony Saba <awsaba@gmail.com>



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16354
2017-05-10 17:37:35 +00:00
Petar Jovanovic
8d121cf8c9 mips64: finetune cvm_atomic_thread test
Remove unnecessary logs from the expected output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16353
2017-05-10 16:18:12 +00:00
Ivo Raisr
aa0dc56441 Reduce the number of compiler warnings on MIPS platforms.
Patch by: Tamara Vlahovic <tamara.vlahovic@imgtec.com>
Partially fixes BZ#370028.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16352
2017-05-10 12:52:40 +00:00
Julian Seward
0b10411c2e Even more bug list updates, to catch up with recently reported bugs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16351
2017-05-10 09:12:01 +00:00
Julian Seward
4e6d269fc9 Update and prioritise fix-list for 3.13.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16350
2017-05-10 06:59:34 +00:00
Ivo Raisr
84ad3a82c2 Fix compilation problems with some unit tests on Ubuntu 16.10+.
Compiler produces position independent executables (PIE) by default
which gets in the way of some unit tests.
Fixes BZ#377066.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16349
2017-05-10 05:43:03 +00:00
Ivo Raisr
d8de8b8beb Reduce the number of compiler warnings on MIPS platforms.
Patch by: Aleksandar Rikalo <aleksandar.rikalo@imgtec.com>
Partially fixes BZ#370028.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16348
2017-05-10 05:38:57 +00:00
Philippe Waroquiers
64cd4a7111 Fix typo
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16347
2017-05-09 18:08:16 +00:00
Julian Seward
3cb0b3885c First pass triage of remaining untriaged bugs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16346
2017-05-09 16:23:36 +00:00
Petar Jovanovic
4f3cd8ff8f mips: reduce compiler warnings
Compiler complained about

warning: implicit declaration of function ‘vgPlain_prctl’

in coregrind/m_machine.c.

Also, it complained about

warning: no previous prototype for ‘vgSysWrap_mips_linux_sys_ptrace_before’
[-Wmissing-prototypes]
warning: no previous prototype for ‘vgSysWrap_mips_linux_sys_ptrace_after’
[-Wmissing-prototypes]

in coregrind/m_syswrap/syswrap-mips32-linux.c

This change fixes those issues.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16345
2017-05-09 15:57:59 +00:00
Bart Van Assche
7064a05014 drd/tests/Makefile.am: Add dlopen.stdout.exp to EXTRA_DIST
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16344
2017-05-09 05:13:40 +00:00
Bart Van Assche
dca461cf60 drd/tests: Add the "dlopen" test program
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16343
2017-05-09 04:46:20 +00:00
Bart Van Assche
e3bc6c7dc7 drd: Add support for calling pthread_create() from inside a shared library - bug #356374
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16342
2017-05-09 04:45:30 +00:00
Bart Van Assche
06c6edda5e drd: Rename a function
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16341
2017-05-09 04:44:25 +00:00
Ivo Raisr
246bb0e25f Remove TileGX/Linux port.
Fixes BZ#379504.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16340
2017-05-08 17:21:59 +00:00
Petar Jovanovic
88e398fc24 Update NEWS with the latest fix
KDE #379473 has been fixed with VEX r3362.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16339
2017-05-08 15:38:24 +00:00
Ivo Raisr
4a28356f92 Some bug squashing before 3.13 release
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16338
2017-05-08 14:57:58 +00:00
Julian Seward
5e797949ee Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16337
2017-05-08 14:50:42 +00:00
Ivo Raisr
d8f648486e Fix some spelling mistakes.
Fixes BZ#374719
Patch by: klemens <ka7@la-evento.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16336
2017-05-05 22:13:20 +00:00
Petar Jovanovic
8531fa9c3c mips32: remove false warnings on Android
Remove false warnings for strlen and strchr on Android.

Patch by Tamara Vlahovic.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16335
2017-05-05 14:36:46 +00:00
Ivo Raisr
41decc89fe Fix Valgrind internal error when dereferencing memory supplied by a client
in ptrace(getregset) and ptrace(setregset) syscall wrappers.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16334
2017-05-05 13:20:15 +00:00
Ivo Raisr
38edd50c0e Update copyright end year to 2017 in preparation for 3.13 release.
n-i-bz



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16333
2017-05-04 15:09:39 +00:00
Ivo Raisr
4cd484d4a3 Remove list of potential trunk->3.12.1 merges as it is no longer needed with the upcoming 3.13
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16332
2017-05-04 10:25:26 +00:00
Julian Seward
9a6bcc8c96 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16331
2017-05-04 10:21:17 +00:00
Carl Love
d4ef9f82c4 Updated PPC64 ISA 3.0B, add support for the additional instructions: addex, mffscdrn,
mffscdrni, mffsce, mffscrn, mffscrni, mffsl. vmsumudm.

Forgot to add the new files.  


Vex commit 3359  Has the source code changes for the instruction and OV32, CS32
support

Valgrind commit 16329 updated the existing files

This commit adds all the new files.  

Valgrind bugzilla 378931

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16330
2017-05-03 18:15:01 +00:00
Carl Love
6c88349325 PPC64 ISA 3.0B, add support for the additional instructions: addex, mffscdrn,
mffscdrni, mffsce, mffscrn, mffscrni, mffsl. vmsumudm.

Additionally, the OV32 and CA32 bits were introduced in ISA 3.0 but
Valgrind add support for setting these bits for ISA 3.0.  The OV32 and CA32
bits must now be set on a number of pre ISA 3.0 instructions.  So now the
instructions produce different results in the XER register.  Thus we need pre
and post ISA 3.0 expect files.  Command line options were added to thee 
pre ISA test cases so instructions that didn't change could be run with one
set of command line args.  The instructions that have different XER results
are run using a different set of command line args.  The tests were split into
two, one for instructions that didn't change on for instructions that do 
change under ISA 3.0.  We then create ISA3.0 expect files only for the tests
that run differently.  By doing this we minimized the size of the expect files
needed.

Vex commit 3359  Has the source code changes for the instruction and OV32, CS32
support

This commit is all the test case changes, adding the new test case files.

Valgrind bugzilla 378931

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16329
2017-05-03 17:28:35 +00:00
Rhys Kidd
55728164c4 macos: Fix UNKNOWN task message [id 3447, to mach_task_self(), reply 0x603] (task_register_dyld_shared_cache_image_info). bz#379372
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16328
2017-05-01 01:44:01 +00:00
Rhys Kidd
77dfe595ef macos: Fix UNKNOWN task message [id 3444, to mach_task_self(), reply 0x603] (task_register_dyld_image_infos). bz#379371
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16327
2017-05-01 00:41:40 +00:00
Rhys Kidd
8226909643 macos: Fix unhandled syscall: mach:70 (host_create_mach_voucher_trap). bz#379390
Based upon a patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16326
2017-04-30 21:52:33 +00:00
Rhys Kidd
b0b7a84544 macos: Add additional darwin16 suppressions for system libraries. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16325
2017-04-30 19:40:03 +00:00
Rhys Kidd
bc4ee3af41 macos: Block out a few more macOS / Darwin syscalls. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16324
2017-04-30 01:59:33 +00:00
Rhys Kidd
254ca9753a macos: Add a no-op wrapper for a new-in-10.10 syscall: fstatat64
Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16323
2017-04-30 00:34:59 +00:00
Rhys Kidd
fd128453ff macos: Add a no-op wrapper for a new-in-10.10 syscall: faccessat
Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16322
2017-04-30 00:28:10 +00:00
Rhys Kidd
2cc6181ab4 macos: Add a no-op wrapper for a new-in-10.10 syscall: csrctl
Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16321
2017-04-30 00:09:56 +00:00
Rhys Kidd
1555060aad macos: Add a no-op wrapper for a new-in-10.12 syscall: ulock_wake
Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16320
2017-04-29 22:48:23 +00:00
Rhys Kidd
9539e65e36 macos: Add a no-op wrapper for a new-in-10.12 syscall: getentropy
Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16319
2017-04-29 22:35:30 +00:00
Rhys Kidd
f2c8220a6d macos: Improve macOS 10.12 support. bz#365327.
The new macOS 10.12 way of loading dylib (placing them at the end of the currently
loaded segments) requires that Valgrind needs to know where the last segment was loaded.

A new structure (load_info_t) has been created to store all this information and easily
carry it around.

Changes:
- dyld text address is relative instead of absolute (macOS 10.12)
- Handle dylinker's offset (macOS 10.12)
- Handle the executable requesting a non-default stack address (macOS 10.12)
- Refactor to use load_info_t structure (all macOS)

Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16318
2017-04-29 22:06:20 +00:00
Rhys Kidd
6fbaf672c8 macos: Improve consistency of VG_(printf)() usage in coregrind/m_ume/macho.c. n-i-bz.
Identified in the process of reviewing a proposed fix for bz#365327.

Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16317
2017-04-29 19:39:54 +00:00
Petar Jovanovic
7d51a5cbc8 mips: add missing assembler directives to please Clang
Add missing assembler directives in VG_MINIMAL_SETJMP() and
do_syscall_WRK().
Minor rewrite of do_syscall_WRK() to use delay slots.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16316
2017-04-28 12:53:00 +00:00
Ivo Raisr
99d603d2eb Follow up to SVN r16311.
Fix mismerge from SVN r16314.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16315
2017-04-27 07:45:16 +00:00
Ivo Raisr
c356e1c01f Syscall wrapper for prctl(PR_SET_NAME) must not check more than 16 bytes.
Fixes BZ#379039.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16314
2017-04-26 19:27:14 +00:00
Petar Jovanovic
e44daf67e9 update drd/tests/tc23_bogus_condwait.stderr.exp files
Follow up to r16312. drd tests use the same file, so we need to update
its exp files too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16313
2017-04-26 10:15:45 +00:00
Petar Jovanovic
7b0215b2ab make helgrind/tc23_bogus_condwait test deterministic
Using properly initialized mutex (instead of a dirty one) in case
"mx is not locked" makes behavior of this test deterministic.

Patch by Tamara Vlahovic.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16312
2017-04-25 13:52:21 +00:00
Ivo Raisr
e8a32aa888 Valgrind reports INTERNAL ERROR in rt_sigsuspend syscall wrapper.
Fixes BZ#379094.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16311
2017-04-25 06:44:28 +00:00