Commit Graph

10024 Commits

Author SHA1 Message Date
Bart Van Assche
21b57d82cd drd, Darwin: Add a suppression pattern
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13352
2013-03-30 09:38:11 +00:00
Julian Seward
509a6efaa9 Don't assume that page size is 4K when loading PIEs. Fixes #263034.
(Dodji Seketeli, dodji@redhat.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13351
2013-03-29 09:57:24 +00:00
Julian Seward
cca00cebc1 Enable prctl on ppc64-linux. Fixes #308089.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13350
2013-03-29 09:40:48 +00:00
Mark Wielaard
0ec8df03c1 For memcheck overlap filter_memcpy str[n]cpy and __GI_str[n]cpy are equal.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13349
2013-03-28 22:52:14 +00:00
Mark Wielaard
684a15246c memcheck/tests/strchr test should not depend on line numbers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13348
2013-03-28 22:52:13 +00:00
Mark Wielaard
cc1ee7885f Add new MISC vector Iops to memcheck/tests/vbit-test/irops.c.
memcheck/tests/vbit-test fails with unknown opcode after introduction
of new Iops for AVX2, BMI, FMA support #317506

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13347
2013-03-28 21:24:57 +00:00
Tom Hughes
b31167235f Cope with old linkers which don't support -Ttext-segment but which do
generate build-id sections. #317091.  (Mark Wielaard, mjw@redhat.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13346
2013-03-28 15:53:21 +00:00
Julian Seward
7a5e91776f Be more aggressive about dropping the lock in spinloops.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13345
2013-03-28 10:40:53 +00:00
Tom Hughes
a990370cde Update test results for EQ_UQ SSE FP comparison operation. BZ#317444.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13344
2013-03-28 09:35:39 +00:00
Julian Seward
78b3b945b4 Fix BMI assembler configure check and avx2/bmi/fma vgtest prereqs.
#317461.  (Mark Wielaard, mjw@redhat.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13343
2013-03-27 21:59:21 +00:00
Tom Hughes
9ada76d11c Test support for the EQ_UQ SSE FP comparison operation. BZ#317444.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13342
2013-03-27 15:39:18 +00:00
Julian Seward
dc0e01ab4d Build system and hwcaps fixes pertaining to #305728, which added
support for AVX2, BMI1, BMI2 and FMA instructions.
(Jakub Jelinek, jakub@redhat.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13340
2013-03-27 11:43:20 +00:00
Julian Seward
1c50d16462 Testcase additions pertaining to #305728, which added support for
AVX2, BMI1, BMI2 and FMA instructions.
(Jakub Jelinek, jakub@redhat.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13339
2013-03-27 11:42:05 +00:00
Julian Seward
9c91869bc9 Memcheck fixes for new IR ops introduced by r2702 (which added support
for AVX2, BMI1, BMI2 and FMA instructions).  Part of #305728.
(Jakub Jelinek, jakub@redhat.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13338
2013-03-27 11:40:02 +00:00
Julian Seward
0ebe62078c Add hwcaps checking on amd64 for RDTSCP. Part of the fix for #251569
and its dups.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13337
2013-03-26 13:57:48 +00:00
Julian Seward
ccf13bd148 Add test cases for SSE4 MOVNTDQA insn. Pertains to #316503.
(Patrick J. LoPresti, lopresti@gmail.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13336
2013-03-26 10:29:05 +00:00
Julian Seward
c96c55d600 Update bug status.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13335
2013-03-26 10:12:02 +00:00
Philippe Waroquiers
6ceb0e1f83 fix 307082 HG false positive: pthread_cond_destroy: destruction of unknown cond var
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13332
2013-03-24 20:10:23 +00:00
Julian Seward
c7f8191472 Use -Wl,-Ttext-segment when static linking if possible to keep build-ids.
Fixes #317091.  (Mark Wielaard, mjw@redhat.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13331
2013-03-22 11:49:46 +00:00
Philippe Waroquiers
66bc0e6f56 Undo void change done as part of rev 13329
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13330
2013-03-18 22:51:57 +00:00
Philippe Waroquiers
b5c064dfea Better fix for 295590
(problem reported in bug 307082, comment 8).
Solution applied is similar to what is in 307082 patch
(i.e. do not destroy the internal helgrind var if nWaiters > 0).
But also do not remove it from the FM.

+ add a test case (re-using the drd test case)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13329
2013-03-18 22:48:22 +00:00
Julian Seward
838dae3c46 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13328
2013-03-18 16:05:43 +00:00
Philippe Waroquiers
52b0e470c3 Document that user level client stack switches might cause crashes
and that these crahses might be avoided using VALGRIND_STACK_REGISTER
See bug 316613


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13327
2013-03-13 22:03:31 +00:00
Philippe Waroquiers
30275f300c Fix 316535 Use of |signed int| instead of (unsigned) |size_t| in messages...
* when SEGV trapped, report the main thread size as an unsigned size_t
* Similar for memcheck overlap errors
  For example, for the 2 calls:
     memcpy(&a, &a, 2147483648UL);
     memcpy(&a, &a, -1);  // silently accepted by gcc 4.4.4 -Wall
                          // while the 3rd arg is supposed to be a size_t
  we now obtain (on a 32 bit system)
    Source and destination overlap in memcpy(0xbe97113f, 0xbe97113f, 2147483648)
    Source and destination overlap in memcpy(0xbef6d13f, 0xbef6d13f, 4294967295)
  instead of
    Source and destination overlap in memcpy(0xbe8e012f, 0xbe8e012f, -2147483648)
    Source and destination overlap in memcpy(0xbe8e012f, 0xbe8e012f, -1)

Do not ask me why 
   memcpy(&a, &a, -1);
is supposed to be accepted/acceptable/valid code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13326
2013-03-13 21:44:07 +00:00
Florian Krohm
b6e7089a33 s390: Add testcase for the SRNMT instruction.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).
Part of fixing BZ 307113.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13325
2013-03-12 01:32:40 +00:00
Philippe Waroquiers
0e086ed3b1 Fix 316145 - callgrind command line options in manpage reference (unknown) callgrind manual
Patch by Mark Wielaard.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13324
2013-03-10 16:29:02 +00:00
Philippe Waroquiers
089210684b fix 315959 valgrind man page has bogus SGCHECK (and no BBV) OPTIONS section
PAtch from Mark Wielaard.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13323
2013-03-10 16:20:10 +00:00
Bart Van Assche
a8a84e19e1 drd/tests/annotate_smart_pointer2: Add an expected output file
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13322
2013-03-10 13:39:57 +00:00
Bart Van Assche
011cf17d6d drd/tests/sem_wait: Skip on Darwin since sem_init() fails with ENOSYS on Darwin
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13321
2013-03-10 13:38:41 +00:00
Bart Van Assche
7069f35e52 Darwin: Make stack growth tracking consistent with other architectures
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13320
2013-03-10 12:51:15 +00:00
Bart Van Assche
1ae0d437be Darwin: Fix a compiler warning
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13319
2013-03-10 12:49:08 +00:00
Bart Van Assche
8ad32c57d3 massif/tests/pages_as_heap.c: Fix a compiler warning
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13318
2013-03-10 12:37:48 +00:00
Bart Van Assche
2e49d05487 s390: Distribute dfp-1 expected output files also if built on a non-s390 platform
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13317
2013-03-10 11:30:22 +00:00
Bart Van Assche
0cca640bd4 drd: Fix stack growth tracking. Hopefully this is the proper fix for #297147.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13316
2013-03-10 11:02:32 +00:00
Bart Van Assche
7b44c91302 drd: Fix a 4x slowdown for certain applications (#316181)
This commit reverts r12629 ("drd: Don't sporadically report false positives on
newly allocated memory. Fixes #297147").


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13315
2013-03-10 10:43:11 +00:00
Philippe Waroquiers
58ceb6c593 Fix 316144 (valgrind.1 manpage contains ??? strings for references)
Patch by Mark Wielaard.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13314
2013-03-06 22:39:18 +00:00
Julian Seward
3525bf5b27 Add test cases for VCVT.{S,U}32.F64 D[d], D[d], #frac_bits.
Pertains to #315738.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13313
2013-03-06 08:35:12 +00:00
Julian Seward
cbc042d10e Add test cases for VCVT.F64.{SU}32, #imm, including a bunch of dodging and
weaving to work around buggy assemblers.  Pertains to #308717.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13312
2013-03-05 14:27:44 +00:00
Julian Seward
fd4de60b17 Add test cases for SMLAL{BB,BT,TB,TT}. Related to #308718.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13311
2013-03-04 18:35:17 +00:00
Josef Weidendorfer
5a2f34cff6 Fix inconsistency between callgrind and format spec
Bug found by, and fix based on a patch by Mark Wielaard

Callgrind format specification was inconsistent with
what Callgrind generates, and what callgrind_annotate
accepted. Now, callgrind_annotate accepts the examples
in the format specification.

* Callgrind writes 'cfi=' lines for when a call target goes
  into another source file. According to the spec, 'cfl=' is
  used for this. Change the spec to allow both, and change
  callgrind_annotate to accept both.
* The spec requires just an "events:" line as minimum header
  to render the file as correct according to the specification.
  callgrind_annotate also expected a 'cmd=' line. Fixed.
* The 'summary:' line is optional in the spec. Fixed in
  callgrind_annotate. If not provided, summary is calculated
  from all cost lines.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13310
2013-03-04 17:02:35 +00:00
Julian Seward
430a5dd2c8 Moved fixed bugs to the NEWS file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13309
2013-03-04 11:27:25 +00:00
Julian Seward
518635d2b4 Even more first-pass triage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13308
2013-03-04 10:41:18 +00:00
Julian Seward
668c7048f1 Even more first-pass triagery.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13307
2013-03-03 22:10:02 +00:00
Philippe Waroquiers
a612127d33 Better document an ignored return value.
The call to VG_(gdbserver_report_signal) is ignored
in synth_fault_common (m_signals.c) as these signals
are always to be delivered (as explained by the following
comment).
=> better document that the return value is ignored on purpose.
(spotted by Florian, using Coverity)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13306
2013-03-03 17:52:31 +00:00
Philippe Waroquiers
5f4e46336a announce fix for 309823 Generate errors for still reachable blocks
Functionality is provided via the new 3.9.0 arg
    --errors-for-leak-kinds=kind1,kind2,..  which leak kinds are errors?
                                            [definite,possible]
        where kind is one of definite indirect possible reachable all none

that was committed in rev 13170.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13305
2013-03-03 13:23:58 +00:00
Tom Hughes
269fc43ee7 Implement the name_to_handle_at system call for x86 and amd64.
Based on patch from Asmadeus to fix BZ#308930.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13304
2013-03-03 12:57:20 +00:00
Philippe Waroquiers
48f3860354 Avoid warning that format argument is not a string literal
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13303
2013-03-02 15:44:03 +00:00
Philippe Waroquiers
1b9a118603 Factorise some code from syswrap-amd64/arm/mips32/mips64-linux.c to syswrap-linux.c
Almost mechanical transformation, removes > 1000 SLOC.

Compiled and regtested on amd64/x86/mips32
Compiled and (somewhat) tested on mips64
Compiled on arm



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13302
2013-03-01 23:31:09 +00:00
Philippe Waroquiers
f239a1c516 small changes in sendmsg.c regtest
* avoid a warning related to pointer types
* replace exit (0) by return 0 (might help backtraces on Darwin, suggestion by Rich Coe)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13301
2013-03-01 23:05:43 +00:00
Philippe Waroquiers
5039f7dbbe allow compile time tracing to be enabled using the stats counters
(so put first the static stats counters).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13300
2013-03-01 20:37:41 +00:00