Commit Graph

24 Commits

Author SHA1 Message Date
Bart Van Assche
c154161128 Added output for the case where the data race is detected in thread 3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7459
2008-02-25 17:29:13 +00:00
Bart Van Assche
92670fc0bc Renamed pth_barrier.stderr.exp into pth_barrier.stderr.exp-thread2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7458
2008-02-25 17:26:23 +00:00
Bart Van Assche
f701eba29b Fixed output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7439
2008-02-24 18:19:09 +00:00
Bart Van Assche
a51563ace8 Various minor changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7438
2008-02-24 18:18:23 +00:00
Bart Van Assche
6be1f7fbdf Whitespace-only change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7437
2008-02-24 18:16:56 +00:00
Julian Seward
5679a22410 Update copyright dates ("200X-2007" --> "200X-2008").
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398
2008-02-11 11:34:59 +00:00
Julian Seward
ca86507864 Make exp-drd regression tests succeed when glibc-debuginfo is
installed.  (Bart Van Assche)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7388
2008-02-09 14:51:41 +00:00
Julian Seward
20e0f4893f Fix 'make dist' -- don't list nonexistent files for inclusion in the
tarball.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7366
2008-02-03 12:46:45 +00:00
Julian Seward
02c9054a2b drd changes (Bart Van Assche)
- The exp-drd regression tests now run without producing assertion
failures and without hanging on Red Hat 7.3. It doesn't make sense
however to run exp-drd on Red Hat 7.3 -- while exp-drd works fine with
the NPTL, more work would be required to make exp-drd work with
linuxthreads.
- Converted several tl_assert() calls into error messages.
- Added a regression test called pth_barrier, which tests whether data
races are detected in a program that uses barriers. The output exp-drd
produces for this test program is not yet correct however.
- Updated exp-drd/TODO.txt.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7358
2008-01-21 14:19:07 +00:00
Julian Seward
994193f9bb Regtest/stability changes for drd (Bart Van Assche)
- Fix helgrind/tests/tc18_semabuse.c on glibc 2.7 (RedHat 8).

- Fixed a glibc 2.7 specific assertion failure in exp-drd, namely one
  that was triggered when sem_post()'s return value is not zero.

- exp-drd/test/matinv.c compiles now also on RedHat 7.3.

Note: more work will be required to get exp-drd working correctly on
RedHat 7.3.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7354
2008-01-18 07:42:01 +00:00
Julian Seward
22b3fe2a3e DRD updates (Bart Van Assche):
- Updated copyright statement: replaced 2006-2007 by 2006-2008.
- Added copyright statement in the files where it was missing
(drd_track.h and drd_clientreq.c)
- Eliminated dependencies on core header files -- there are no more
#include "pub_core....h" directives in the exp-drd source code.
- Added semaphore support.
- Added barrier support.
- Added pthread_mutex_timedlock() support.
- Stack depth of stack traces printed by exp-drd can now be set via
--num-callers=...
- Added command-line option --trace-barrier=[yes|no].
- Added regression test for pthread_barrier() (matinv, a program that
performs matrix inversion).
- Added regression test sem_as_mutex, which tests whether race
detection works correctly when a semaphore is used to ensure mutual
exclusion of critical sections.
- Some of helgrind's regression tests are now used to test both
helgrind and exp-drd: tc17_sembar and tc18_semabuse.
- Cleaned up bitmap implementation code now that the const keyword has
been added to the declarations of the OSet functions.
- Cleaned up exp-drd/Makefile.am
- Updated exp-drd/TODO.txt




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7346
2008-01-14 11:54:56 +00:00
Julian Seward
78e156ef4c Rename drd_preloaded.c to drd_intercepts.c (Bart Van Assche)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7312
2008-01-04 11:36:41 +00:00
Julian Seward
3ab1602cce Add missing file to tarball.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7285
2007-12-09 02:21:22 +00:00
Julian Seward
de4d2156cc DRD changes (Bart Van Assche)
* Add docs: exp-drd/docs/README.txt
* Added one drd suppression pattern, and cleaned up the suppression file.
* All regression tests now pass on x86_64 and i386, including sigalrm.
* Updated TODO.txt file.
* pth_create_chain test is now started with 100 threads instead of 10
  -- 10 was not enough.
* DRD no longer exits on PPC32 and PPC64 but just prints a warning
  message before it starts.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7275
2007-12-04 21:27:18 +00:00
Julian Seward
ec903846a6 Remove pthread_object_size.h and associated hardwired constants.
(Bart Van Assche)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7252
2007-11-30 08:30:29 +00:00
Julian Seward
6b37c2e40e Make it compile on AIX, even if the result doesn't do anything useful.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7245
2007-11-28 01:27:03 +00:00
Julian Seward
f633404bb7 Fix compilation on older Linux distros (Bart Van Assche)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7244
2007-11-27 23:39:13 +00:00
Julian Seward
2a219917db Translate the drd regtests from C++ to C. (Bart Van Assche).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7238
2007-11-27 01:59:38 +00:00
Julian Seward
10d34261e7 Program uses too many new-ish constructions to be compilable on glibc 2.2
(Red Hat 7.3).  Do nothing on very old platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7223
2007-11-26 00:41:54 +00:00
Julian Seward
e2b1e84659 Make drd regtests work again following core changes. (Bart Van Assche)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7222
2007-11-26 00:11:04 +00:00
Julian Seward
8c77347278 Get rid of stuff which should not have been committed. Urrr.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7220
2007-11-25 23:56:12 +00:00
Julian Seward
4d8252fede Fix g++-2.96 build breakage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7219
2007-11-25 23:15:44 +00:00
Julian Seward
0da1890961 Un-break 'make distdir'. Either by removing from EXTRA_DIST, file
names pertaining to tests which cannot be run (no associated .vgtest),
or by adding missing .stdout.exp files for tests which are to be run
(there is an associated .vgtest).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7218
2007-11-25 20:20:49 +00:00
Julian Seward
dc1dbea937 Add DRD as an experimental tool. Bart Van Assche is the maintainer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7211
2007-11-25 14:01:38 +00:00