10345 Commits

Author SHA1 Message Date
Philippe Waroquiers
cc83a01b30 fix attribution of memcheck/tests/reach_thread_register.c code
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13673
2013-10-22 17:26:06 +00:00
Julian Seward
e37bfc02f3 mc_LOADVn_slow: also allow --partial-loads-ok=yes to grant an
exemption for aligned 32 bit loads on 64 bit targets, since it appears
to be necessary.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13672
2013-10-22 15:36:59 +00:00
Julian Seward
acddb7f8b3 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13671
2013-10-22 14:46:55 +00:00
Philippe Waroquiers
81d7bfddde Fix 324227 memcheck false positive leak when a thread calls exit+block
only reachable via other thread live register

The exiting thread will have its registers considered as not reachable
anymore, registers of other threads will be considered reachable.

This is ensured by using a different exit reason for the
exiting thread and for the other threads.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13670
2013-10-21 19:57:08 +00:00
Philippe Waroquiers
fbe834ff1a unbreak (future) Mac OS 10.9, 11.0, ... builds
Disappeared syscalls are better 
  #ifdef-ed with "< version_in_which_they_disappear"

Newly appeared syscalls are better
  #ifdef-ed with ">= version_in_which_they_appear"



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13669
2013-10-21 18:39:01 +00:00
Julian Seward
6abdeda828 Enable sys_rt_sigsuspend on ppc64-linux. Not sure why this is
necessary, but I found it lying around in a ppc64 tree, so there
was probably some use case at some point.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13668
2013-10-21 10:07:43 +00:00
Philippe Waroquiers
4f7d2ae066 Two small wording fixes in manual
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13667
2013-10-20 17:12:16 +00:00
Julian Seward
da5aab648e Fix a potentially serious bug discovered by BEAM.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13666
2013-10-20 09:34:13 +00:00
Bart Van Assche
0ff9e33d1b NEWS: Add entry for bug #326091 (drd and __GI_strlen())
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13665
2013-10-20 08:25:58 +00:00
Bart Van Assche
f82cf02f0a drd: Avoid that optimized strlen() implementations trigger false positive race reports (#326091)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13664
2013-10-20 08:23:38 +00:00
Florian Krohm
4035c74f04 Remove autotools requirement as it is not specific to s390.
Minor wording changes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13663
2013-10-19 08:21:19 +00:00
Bart Van Assche
0dcb9ab4dd NEWS: Add info about bugs #316181 and #316696
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13662
2013-10-19 06:43:55 +00:00
Petar Jovanovic
b926797b17 mips: update README.mips and NEWS for 3.9
Minor update to README.mips and NEWS section to state that MIPS64 support is
new in 3.9, as well as support for MIPS DSP ASE on MIPS32.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13661
2013-10-19 02:24:11 +00:00
Julian Seward
dfaedbfa9f Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13660
2013-10-18 15:13:12 +00:00
Julian Seward
4a9b50efe7 Un-break the build on OSX 10.7.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13659
2013-10-18 14:45:29 +00:00
Julian Seward
dbf9b63605 Update copyright dates (20XY-2012 ==> 20XY-2013)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13658
2013-10-18 14:27:36 +00:00
Julian Seward
682b7211e6 arm-linux only: make unwinding by stack scanning (a nasty hack)
be controllable from the command line.  Fixes (kind of) #289578.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13657
2013-10-18 13:21:26 +00:00
Mark Wielaard
e671b086cf Don't report BMI support when AVX support is missing.
Bug #326113. This is a bit conservative, but it is what the linux kernel
also seems to be doing. If AVX support is missing (because the OS doesn't
save the wide registers), then also don't report supporting BMI.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13656
2013-10-18 13:11:05 +00:00
Julian Seward
ab319a7e24 Followup to r13652 (make the translation cache size be command-line
controllable): reduce MAX_N_SECTORS to 24, speed up Sector
initialisation, wording tweaks.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13655
2013-10-18 11:18:45 +00:00
Julian Seward
f967a860bd Add test cases for PCMPxSTRx cases 0x30 and 0x40. Pertains to #320998.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13654
2013-10-18 10:46:52 +00:00
Carl Love
30565b278a This commit adds testing support for the following instructions:
vaddcuq, vadduqm, vaddecuq, vaddeuqm,
  vsubcuq, vsubuqm, vsubecuq, vsubeuqm,
  vbpermq and vgbbd.

The completes adding the Power ISA 2.07 support.

Bugzilla 325816

VEX commit id 2790


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13653
2013-10-18 01:20:11 +00:00
Philippe Waroquiers
61b8b9617b Allow the user to dimension the translation cache
A previous commit had decreased to 6 (on android) and increased to 16
(other platforms) the nr of sectors in the translation cache.
This patch adds a command line option to let the user specify
the nr of sectors as e.g. 16 sectors might be a lot and cause
an out of memory for some workloads or might be too small for
huge executable or executables using a lot of shared libs.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13652
2013-10-18 00:08:20 +00:00
Philippe Waroquiers
619be966db Allow tools to provide some statistics in suppression list produced at the end
Option -v outputs a list of used suppressions. This only gives
the nr of times a suppression was used.
For a leak search, this only gives the nr of loss records that
have been suppressed, but it does not give additional needed details
to understand more precisely what has been suppressed
(i.e. nr of blocks and nr of bytes).

=> Add in the tool interface update_extra_suppression_use and
print_extra_suppression_info functions to allow the tool to record
additioonal use statistics for a suppression. These statistics
can be done depending on the error (and its data) which is suppressed.

Use this in memcheck for the leak suppressions, to maintain and output
the nr of blocks and bytes suppressed by a suppression during
the last leak search.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13651
2013-10-17 22:10:41 +00:00
Dejan Jevtic
5c16367f0c mips64: Fix compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13650
2013-10-16 14:15:38 +00:00
Julian Seward
52b882283e Connect up the xacq_xrel test to the build system. Also, make the
TSX configure test check for that the assembler can deal with 
xacquire and xrelease prefixes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13649
2013-10-16 08:53:07 +00:00
Philippe Waroquiers
9f4120fb63 SIGSEGV/SIGBUS specific handling on s390, to cope with kernel peculiarity
On s390, the linux kernel does not deliver the exact address that
caused a SEGV but rather this address rounded down to a page boundary.
Also, old kernels do not deliver the address that caused a SIGBUS,
but deliver 0.
So, on s390, handle SIGSEGV and SIGBUG by always skipping one page
starting from the current value of the ptr scanning position.
As we need a correct value of ptr on this platform in the longjmp-ed
code, ptr is marked as volatile.
 


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13648
2013-10-15 21:04:56 +00:00
Christian Borntraeger
b550fd8e65 remove old broken testcase for s390
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13647
2013-10-15 19:10:11 +00:00
Carl Love
d143dd1f43 Power 8 support, phase 5
This commit adds the testcases for the following instructions:

  vpmsumb, vpmsumh, vpmsumw, vpmsumd, vpermxor, vcipher, vcipherlast,
  vncipher, vncipherlast, vsbox,
  vclzb, vclzw, vclzh, vclzd,
  vpopcntb, vpopcnth, vpopcntw, vpopcntd,
  vnand, vorc, veqv,
  vshasigmaw, vshasigmad,
  bcdadd, bcdsub

The VEX commit that added the support for the above instructions was 
commit 2789.

The patch is for Bugzilla 325628


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13646
2013-10-15 18:13:21 +00:00
Julian Seward
21e2ef83b2 A minimal test case for the parsing of XACQUIRE and XRELEASE prefixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13645
2013-10-15 11:37:16 +00:00
Julian Seward
4fc45578f6 Disallow client mmap calls with MAP_32BIT as a flag.
Fixes, or at least addresses, #324181.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13644
2013-10-14 14:50:57 +00:00
Julian Seward
a219096088 Update expected output following r13642, which fixes #323432
(When calling pthread_cond_destroy or pthread_mutex_destroy
   with initializers as argument Helgrind (incorrectly)
   reports errors.)
This introduces a new race report (but no new race) in
some conditions.  I think this is OK because the race only
occurs in the case where the program is buggy (racey) anyway.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13643
2013-10-14 14:09:35 +00:00
Julian Seward
e1b6cccf91 Fix #323432: When calling pthread_cond_destroy or pthread_mutex_destroy
with initializers as argument Helgrind (incorrectly) reports errors.
(Peter Boström, valgrind@pbos.me)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13642
2013-10-14 13:51:25 +00:00
Julian Seward
d23025ac42 For pthread_cond_destroy, don't report a false it's-still-waited-on
error if in fact the last wait finished with ETIMEDOUT.
Fixes #324149.  (Peter Boström, valgrind@pbos.me)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13641
2013-10-14 12:13:52 +00:00
Julian Seward
5f16bea2a7 Fix "Assertion '!di->soname' failed" on weird files.
Fixes #320661.  (Jiří Hruška, jirka@fud.cz)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13640
2013-10-14 12:02:15 +00:00
Julian Seward
3fd8c455b3 Enable sys_prlimit64 on arm-linux. Fixes #320131.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13639
2013-10-14 11:51:43 +00:00
Julian Seward
6d2f389d7b Fix compile failure with out-of-tree build of libmpiwrap.c.
Fixes #318050.  (Frederik Heber, foo@mastercontrolprogramm.de)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13638
2013-10-14 11:47:11 +00:00
Julian Seward
e4e2d388da PPC32/64: Allow 16 byte icache and dcache lines.
Partial fix for #308135.  (christophe.leroy@c-s.fr)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13637
2013-10-14 11:41:46 +00:00
Julian Seward
a46fd44204 A couple more leak supps for OSX10.7. Fixes #307557.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13636
2013-10-14 11:29:47 +00:00
Philippe Waroquiers
39c780284b Add definedness checking when dereferencing ptr during heuristic reachedness
Patch ensures that no heuristic reachedness is obtained with undefined data.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13635
2013-10-13 18:38:30 +00:00
Dejan Jevtic
1a65c43997 mips64: Prevent testing swc1 and swxc1 with the uninitialized memory values on
big endian platrofms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13634
2013-10-11 06:05:24 +00:00
Carl Love
9a6c4d0a0b Adding the link for none/tests/ppc32/test_touch_tm.c that got missed on
commit 13630.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13633
2013-10-10 15:30:02 +00:00
Dejan Jevtic
eb65531207 mips64: Change the input values for FPU tests.
Change the input values so that the binary values
is representing exactly the same float values.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13632
2013-10-10 09:10:35 +00:00
Philippe Waroquiers
90902aaf13 Fix use of uninit heuristic set for monitor command
* initialise leak_check heuristic parameter in the leak_check monitor command
* show the default value (none heuristic) in the monitor help command
  (none value chosen as default as this gives a backward compatible
   behaviour).
* document the heuristic leak check parameter in memcheck manual
  monitor command section



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13631
2013-10-09 20:12:39 +00:00
Carl Love
8044c5ce56 Power PC, add the two privileged Transactional Memory instructions.
The initial Transactional Memory instruction patch did not include the two
privileged (OS) instructions treclaim and trechkpt. VEX commit 2784 added
the support for these two instructions.

This patch adds a touch test to make sure all of the POWER Transactional
memory instrutions are recognized by Valgrind.  All of the the Transactional
Memory instructions, with the exception of tbegin, are treated as NOPs in the
first implementation.  The tbegin instruction causes the transaction to fail
thus no additional Transactional Memory instructions on the successful
transaction path would be executed in a real program.  This test just makes
sure each instruction is actually recognized by Valgrind.

The patch if for Bugzilla 325751.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13630
2013-10-09 17:56:34 +00:00
Dejan Jevtic
f0b787e8bf mips32: Don't test Iops that aren't supported in VEX.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13629
2013-10-09 08:33:18 +00:00
Florian Krohm
90cba9e6d4 Add a specific configury check to test compilability of the
<thread> C++ header file by the selected compiler.
Suggested by Bart Van Assche.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13628
2013-10-08 13:04:00 +00:00
Florian Krohm
8434d573a5 Tweak to avoid a trailing space.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13627
2013-10-08 06:02:01 +00:00
Florian Krohm
9f3b86cf35 Filter out the dynamic linker from back traces.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13626
2013-10-07 20:57:51 +00:00
Florian Krohm
d0ff47dfcc Remove unused variable (and associated compiler warning).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13625
2013-10-07 20:25:17 +00:00
Dejan Jevtic
961e487650 mips64: add extra Iop cases in VEX and fix compiler
warning.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13624
2013-10-07 10:27:31 +00:00