7489 Commits

Author SHA1 Message Date
Bart Van Assche
226db063ff Updated gcc version from 4.4.0 to 4.4.1.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10647
2009-07-28 08:01:40 +00:00
Nicholas Nethercote
ff3b502612 Remove non-Linux code from this Linux-only test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10646
2009-07-28 05:11:42 +00:00
Nicholas Nethercote
1165808df3 Make lsframe1, lsframe2 and stack_changes Linux-only since they all fault
natively on Mac.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10645
2009-07-28 05:10:33 +00:00
Tom Hughes
9bab1b80f8 Make sure the x86 direction flag is cleared again if we set it as part
of a test, as the x86 requires it to be clear when any function is called
and gcc 4.3.0 and later rely on that. Fixes #201708.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10642
2009-07-27 23:09:42 +00:00
Nicholas Nethercote
df02ee0eb8 Clarify a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10641
2009-07-27 22:21:22 +00:00
Bart Van Assche
ae27414328 Follow-up of r10638 and r10639: explained in the manual that DRD is now
able to perform rwlock type checking.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10640
2009-07-27 17:43:39 +00:00
Bart Van Assche
568200aa4a - Added more rwlock type checking.
- The rwlock_type_checking test should now no longer trigger a sporadic
  deadlock.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10639
2009-07-27 17:02:52 +00:00
Bart Van Assche
df0bcd77a8 Implemented type checking for reader-writer synchronization
objects: complain upon attempts to use a POSIX rwlock where a
user-defined rwlock is expected and vice versa.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10638
2009-07-27 16:03:51 +00:00
Bart Van Assche
4a6e44dd44 Added a new suppression pattern for Darwin. This is necessary because of the changes introduced by r10634.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10637
2009-07-27 14:48:06 +00:00
Bart Van Assche
c4a898250e Removed -q from the Valgrind options for the bar_bad and bar_trivial tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10636
2009-07-27 14:37:24 +00:00
Tom Hughes
7e1ba6bac4 Support epoll_create and epoll_create1 in ptrcheck. Fixes #189762.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10635
2009-07-27 14:22:25 +00:00
Bart Van Assche
4854264dfa - Moved printing the thread number to the function that prints the
preamble.
- Matching suppression types with error contexts does now work properly.
- Cleanup: added more comments, renamed some functions, removed an unused
  function argument.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10634
2009-07-27 14:17:33 +00:00
Bart Van Assche
3770e93570 Made the error reporting behavior of DRD similar to that of other
Valgrind tools: if the same kind of error has been detected a second
time with an identical call stack, count it as an error but do not print
it a second time. The total number of detected errors remains unchanged
but the number of error contexts is now reported correctly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10633
2009-07-27 14:04:46 +00:00
Bart Van Assche
2919d92191 Fixed a bug in the code for reading suppression files: the line numbers
reported in error messages were not correct. As an example, the following
output was produced before this patch (not correct):
$ ./vg-in-place --tool=helgrind --num-callers=1 /bin/true
...
FATAL: in suppressions file ".in_place/default.supp" near line 893:
   suppression must contain at least one location line which is not "..."
exiting now.
$ ./vg-in-place --tool=drd --num-callers=1 /bin/true
FATAL: in suppressions file ".in_place/default.supp" near line 475:
   suppression must contain at least one location line which is not "..."
exiting now.

After having applied this patch the above commands display line numbers
1104 and 619, referring to the first suppression pattern containing
three dots for the topmost stack frame, as expected.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10632
2009-07-27 12:03:03 +00:00
Bart Van Assche
fb1b7c8a7e Updated expected output of tc23_bogus_condwait for Darwin because the test program has been modified (r10623).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10631
2009-07-27 08:30:52 +00:00
Bart Van Assche
9bbe7e3f20 Re-enabled the regression tests tc17_sembar and tc23_bogus_condwait for DRD on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10630
2009-07-27 08:29:29 +00:00
Tom Hughes
62ebed98dc Make sure the entire symbol is swapped when canonicaliseSymtab decides
that two overlapping symbols needs to be swapped. Fixes #163253.

Based on patch from John Reiser <jreiser@bitwagon.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10629
2009-07-27 07:52:56 +00:00
Julian Seward
c573c600f4 Relatively inconsequential tidying of the Helgrind supps for Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10628
2009-07-26 21:59:29 +00:00
Julian Seward
7ef87b5599 Add a new output file for tc12_rwl_trivial. It unfortunately can't be
the same as the glibc one, because glibc is broken in the sense that
it doesn't return an error code for an attempt to unlock a not-locked
rwlock, and the returned error code affects Helgrind's output.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10627
2009-07-26 21:36:24 +00:00
Julian Seward
d085fca8f9 Unbreak Helgrind on Linux following recent Darwin hackery.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10626
2009-07-26 20:15:37 +00:00
Julian Seward
0478bc7f68 Some more baseline suppressions for Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10625
2009-07-26 19:55:18 +00:00
Julian Seward
e475806a12 Use correct preprocessor symbol for OS-specific code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10624
2009-07-26 19:54:43 +00:00
Julian Seward
c6991c8fd7 Portability fixes for Darwin (use sem_open and sem_close rather than
sem_init and sem_destroy).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10623
2009-07-26 19:53:42 +00:00
Julian Seward
7f40fd1f60 Re-check the symbol names for all pthread intercepts, to find all Linux
and Darwin versions.  Add versions for Darwin names that are not so far
supported.  Add support for sem_open and sem_close.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10622
2009-07-26 19:52:06 +00:00
Julian Seward
aa884bb888 Only collect stacktraces at scalar Kr boundaries at history level 1.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10621
2009-07-26 19:50:06 +00:00
Julian Seward
a696c1536d Add new mangling Z-pair "ZD" to encode '$', since that's sometimes used
in Darwin symbol names.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10620
2009-07-26 19:41:07 +00:00
Julian Seward
eddea8d1ce Updated expected outputs following r10589 (msm idempotency effects)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10619
2009-07-26 19:28:07 +00:00
Bart Van Assche
6073c6f851 Fixed typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10618
2009-07-26 16:21:00 +00:00
Bart Van Assche
1512511f11 Updated manual because of the new client request DRD_STOP_IGNORING_VAR().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10617
2009-07-26 15:58:25 +00:00
Bart Van Assche
8235a379dd Suppress data race reports for the data race triggered by Darwin's pthread_once() implementation such that the pth_once test also passes on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10616
2009-07-26 15:55:48 +00:00
Bart Van Assche
5b7cbb23e0 Added the macro DRD_STOP_IGNORING_VAR().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10615
2009-07-26 15:46:47 +00:00
Bart Van Assche
6ccb6fd429 Remove the temporary file created during the test before exiting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10614
2009-07-26 15:43:39 +00:00
Bart Van Assche
ca91965fcb Should have been included in the previous commit (r10612).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10613
2009-07-26 15:39:57 +00:00
Bart Van Assche
b347a9de7c Added regression test for pth_once().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10612
2009-07-26 15:27:27 +00:00
Bart Van Assche
6bf707161f - Changed the names of several existing suppression patterns.
- Replaced the three suppression patterns for objc_msgSend by one.
- Added more suppression patterns, a.o. for the string manipulation
  and text encoding functions in WebCore.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10611
2009-07-26 13:52:35 +00:00
Bart Van Assche
d41e7bcdaf Added regression test for %o (octal) format specifier.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10610
2009-07-26 09:16:56 +00:00
Bart Van Assche
0b293063de Made the semaphore name independent of the process ID.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10609
2009-07-26 09:16:29 +00:00
Bart Van Assche
fe099060e0 Trace the oflag parameter of sem_open() in hexadecimal format instead of decimal.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10608
2009-07-26 09:15:55 +00:00
Bart Van Assche
945f25de9d Updated drd/tests/omp_printf:
- Added command-line options -i and -t to the omp_printf test program.
- Modified the OpenMP directive such that this test program no longer
  triggers a data race on the loop variable 'i'.
- Increased number of iterations and number of threads used during the
  test.
- Changed error filtering from filter_error_summary to filter_stderr.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10607
2009-07-26 09:04:42 +00:00
Bart Van Assche
a0f1a0b56f Removed code that has been commented out recently.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10606
2009-07-26 08:48:49 +00:00
Bart Van Assche
6265c05b39 Display sem_open() mode in octal format instead of hexadecimal format.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10605
2009-07-26 08:40:51 +00:00
Bart Van Assche
eee5e4caba Added support for %o (octal format).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10604
2009-07-26 08:40:17 +00:00
Bart Van Assche
f2a3a9901c DRD is no longer considered experimental on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10603
2009-07-25 14:03:53 +00:00
Bart Van Assche
9fffceb01b Generalized some suppression patterns and added several new suppression patterns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10602
2009-07-25 14:03:24 +00:00
Bart Van Assche
2c471edbb0 Updated testing instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10601
2009-07-25 13:57:43 +00:00
Bart Van Assche
63a3fca401 Fixed an assertion failure that was triggered on Darwin by calling malloc_zone_realloc().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10600
2009-07-25 13:28:24 +00:00
Bart Van Assche
a7bed0eddc DRD does now support sem_open() and sem_close().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10599
2009-07-25 11:16:51 +00:00
Bart Van Assche
60c7035beb Fixed bug in DRD's rwlock implementation that caused the regression test called rwlock_test to fail sometimes on Darwin. The fact that this test only failed on Darwin and not on Linux implies that on Linux after unlocking an rwlock that was locked for writing there always happens a context switch to another thread waiting for acquiring the rwlock, and that this is not the case on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10598
2009-07-25 11:15:03 +00:00
Nicholas Nethercote
024171ae89 Uncomment this; not sure why it was commented out.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10597
2009-07-24 20:48:36 +00:00
Nicholas Nethercote
0aea3c35b3 DRD now works on Darwin!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10596
2009-07-24 19:34:55 +00:00