8391 Commits

Author SHA1 Message Date
Bart Van Assche
a4d817dbae Test separately whether g++ and/or gcc support built-in functions for atomic
memory access. Apparently for some distributions gcc 4.2 has that support but
g++ 4.2 doesn't. This patch has been supplied by Florian Krohm.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11665
2011-03-24 20:27:54 +00:00
Julian Seward
d6740217a1 Add support for sys_ptrace. Fixes #269079.
(Ulrich Weigand, uweigand@de.ibm.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11664
2011-03-24 11:34:12 +00:00
Julian Seward
a17e55e5c2 Definitions relating to ptrace: replace bogus x86 versions with
arm specific versions.  Partial fix for #269079.
(Ulrich Weigand, uweigand@de.ibm.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11663
2011-03-24 11:33:00 +00:00
Julian Seward
988b642540 Test improvements for FLOGR. Part of #268715.
(Florian Krohm, britzel@acm.org)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11662
2011-03-24 08:58:42 +00:00
Bart Van Assche
18ae9db0d9 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11656
2011-03-18 18:42:52 +00:00
Bart Van Assche
a170de4e78 Linux/ppc: Added support for the ppoll() system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11655
2011-03-18 17:47:38 +00:00
Julian Seward
aca925fd10 When handling client munmaps and mprotects with r=0 & w=0, actually
paint the relevant address range as NoAccess rather than ignoring the
event.  This is important for avoiding VTS leaks in libhb_core.
More details in comments in the code.

Also rename the _noaccess_ painters that do nothing to make it clearer
that they do nothing :-)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11654
2011-03-17 19:39:55 +00:00
Bart Van Assche
33790efd5e Removed an obsolete configure test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11653
2011-03-17 11:01:00 +00:00
Bart Van Assche
61e5d45e0c Replaced a Unicode character by an ASCII character in a source code comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11652
2011-03-17 11:00:11 +00:00
Bart Van Assche
9a8cdf03cb Moved two Linux-specific syscalls to the linux subdirectory.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11651
2011-03-17 10:57:49 +00:00
Bart Van Assche
2aeb270686 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11650
2011-03-17 10:50:33 +00:00
Bart Van Assche
1ecd0141bd Fixed a recently introduced compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11649
2011-03-17 10:24:53 +00:00
Bart Van Assche
e3dc1cde20 Un-break drd/tests/tc23_bogus_condwait.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11648
2011-03-17 10:18:22 +00:00
Bart Van Assche
4a32a7d8be Yet another attempt to make the timerfd-syscall test reliable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11647
2011-03-17 07:45:46 +00:00
Bart Van Assche
fb8198b2d0 Replaced busy-waiting by waiting on a condition variable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11646
2011-03-17 07:39:00 +00:00
Julian Seward
eae2f4ee81 Fix compile warnings (missing prototypes for malloc, or some such).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11645
2011-03-16 10:44:13 +00:00
Julian Seward
1f4fc7b346 Some fixes for the faultstatus testcase. Fixes #253206.
(Christian Borntraeger, borntraeger@de.ibm.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11644
2011-03-15 08:13:08 +00:00
Julian Seward
6724c5abb7 Build fix for older s390x-linux assemblers. Fixes #264800.
(Florian Krohm, britzel@acm.org)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11643
2011-03-14 09:53:44 +00:00
Bart Van Assche
e53eb1ec0c Updated modeline and copyright statement in DRD source files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11642
2011-03-13 12:02:44 +00:00
Bart Van Assche
75e3bb63ce Avoid that small time variations make the timerfd-syscall regression test fail.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11641
2011-03-13 09:42:56 +00:00
Bart Van Assche
40ece8a806 DRD: Report an error if --free-is-write=yes is used on a program invoking custom memory allocator client requests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11640
2011-03-13 09:08:10 +00:00
Bart Van Assche
9d5d77ca0f Added yet another regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11639
2011-03-13 09:04:21 +00:00
Bart Van Assche
c7b84c7d5b read_and_free_race test: Reduced number of stack frames to three.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11638
2011-03-12 16:28:29 +00:00
Bart Van Assche
0d787ae0df Added more regression tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11637
2011-03-12 16:10:33 +00:00
Bart Van Assche
84b87cf1e7 DRD: Restored --free-is-write support and fixed the bug that was present in the previous implementation. Still needs further testing though.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11636
2011-03-12 14:26:01 +00:00
Bart Van Assche
bf2479f28c DRD: Added command-line option --trace-hb for tracing ANNOTATE_HAPPENS_BEFORE()/AFTER().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11635
2011-03-12 14:07:09 +00:00
Bart Van Assche
8492622b53 Added --free-is-write stress test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11634
2011-03-12 14:02:06 +00:00
Bart Van Assche
3ced345153 DRD: Always invoke VG_(cli_free)() before the stop_using_mem callback.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11633
2011-03-12 12:43:39 +00:00
Bart Van Assche
73c5a1b3a3 DRD: Fixed an assertion failure triggered by setting the environment variable DRD_VERIFY_CONFLICT_SET. This environment variable is a debugging help.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11632
2011-03-12 12:37:46 +00:00
Bart Van Assche
1997767aad DRD: More source code cleanup (constant propagation).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11631
2011-03-12 12:34:44 +00:00
Bart Van Assche
ad2f458136 DRD: Allocate thread arguments again on the stack.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11630
2011-03-12 11:01:06 +00:00
Bart Van Assche
7b6ded50b6 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11629
2011-03-12 10:37:18 +00:00
Bart Van Assche
104adb9690 Added AC_LANG_SOURCE() invocations where appropriate.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11628
2011-03-12 10:36:35 +00:00
Julian Seward
d77ef03457 Add free-is-write functionality (experimental, not enabled by default).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11627
2011-03-11 21:06:59 +00:00
Julian Seward
4db10284cd Use DRD's annotate_smart_pointer regtest to check against regressions
of #243935.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11626
2011-03-11 20:02:47 +00:00
Julian Seward
159af3e3ee NB: this is an temporary fix, until such time as bug 243935 is fully
resolved.

Add a client request, ANNOTATE_HAPPENS_BEFORE_FORGET_ALL, to notify
Helgrind that it can forget about any h-b edges previously associated
with the specified tag, and release associated resources.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11625
2011-03-11 19:10:48 +00:00
Julian Seward
3cc6fcac8c Change the semantics of ANNOTATE_HAPPENS_BEFORE from 'overwrite' to
'add' behaviour, w.r.t. any h-b edges associated with the
synchronisation object prior to the call.  This brings the behaviour
into line with DRD and TSan, and is required for correct annotation of
thread safe reference counting.  It fixes #243935 -- at least, the
original bug as discussed in comments 0 and 2.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11624
2011-03-11 18:38:12 +00:00
Julian Seward
f701e93f04 Followup to r11619: more tidying up w.r.t. the renaming of
'struct _Thr :: opaque' to 'struct _Thr :: hgthread'.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11623
2011-03-10 21:34:21 +00:00
Julian Seward
0515ae169a Cleanup: get rid of univ_tsets as it is no longer needed.
Also, fix bug in del_LockN (segfault when the deleted lock is
the last in the list) exposed by r11620.  (Prior to r11620,
the last lock in the list was never deleted.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11622
2011-03-10 17:40:22 +00:00
Julian Seward
c729880b79 Cleanup: get rid of 'last lock lossage' mechanism, which is commented
out and no longer relevant.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11621
2011-03-10 15:21:40 +00:00
Julian Seward
1f04c804ad Cleanup: get rid of all mention of a Hardware Bus Lock. This
no longer exists.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11620
2011-03-10 15:20:10 +00:00
Julian Seward
f4b08e78ed Minor cleanup (no functional change): rename 'struct _Thr :: opaque'
to 'hgthread', since that's what it is really.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11619
2011-03-10 15:14:37 +00:00
Julian Seward
c9ed16792f Bring avg translation size statement closer to reality, for
amd64-linux with --smc-check=all.  350 would be better, but H already
soaks up so much space that a low-side of 320 seems prudent.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11618
2011-03-10 15:01:14 +00:00
Bart Van Assche
47fa81b4bf Process PDB files with a path that contains spaces properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11617
2011-03-10 12:49:50 +00:00
Julian Seward
dae0b7a571 'make dist' fixes following s390x-linux merge. (Christian Borntraeger
<borntraeger@de.ibm.com>)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11616
2011-03-10 12:36:09 +00:00
Bart Van Assche
4874ac5b47 DRD: Added an output variant for test pth_detached3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11615
2011-03-09 18:27:25 +00:00
Bart Van Assche
8c2ede1182 DRD: Report an error if an invalid argument is passed to pthread_detach(). Do not assume that pthread_detach() returns an error code if its argument is invalid. Should fix #267968.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11614
2011-03-09 17:53:28 +00:00
Bart Van Assche
c42807edf5 DRD: Added a regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11613
2011-03-09 17:50:34 +00:00
Bart Van Assche
942bd034c8 DRD: Fixed a race condition triggered by invoking pthread_detach() with an argument not equal to pthread_self(). Potential fix for #267968.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11612
2011-03-08 18:34:44 +00:00
Bart Van Assche
3eeee78bed DRD: Removed an obsolete comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11611
2011-03-08 18:32:36 +00:00