]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoNote results of investigation into segfaulting of tc22 on H on MacOS.
Julian Seward [Wed, 29 Jul 2009 10:57:09 +0000 (10:57 +0000)] 
Note results of investigation into segfaulting of tc22 on H on MacOS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10655

16 years agoAdd a suppression apparently required by Darwin 9.7.0, 32-bit.
Julian Seward [Wed, 29 Jul 2009 07:00:01 +0000 (07:00 +0000)] 
Add a suppression apparently required by Darwin 9.7.0, 32-bit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10654

16 years agoDon't include "how to write a tool" in the user manual -- it's in the tech
Nicholas Nethercote [Wed, 29 Jul 2009 03:34:56 +0000 (03:34 +0000)] 
Don't include "how to write a tool" in the user manual -- it's in the tech
docs, and the chapter/section numbering doesn't match the rest of the
numbering in the user manual.

Also change some of the names of the links in that file to match the
filename.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10653

16 years agoStarted overhauling the documentation:
Nicholas Nethercote [Wed, 29 Jul 2009 02:36:21 +0000 (02:36 +0000)] 
Started overhauling the documentation:
- There were detailed descriptions of all the tools in the Quick Start
  Guide, the Manual introduction, and the start of each tool chapter.  To
  avoid duplication/overlap, I removed these altogether from the Quick Start
  Guide, and shortened them in the intro.

- Improved the description of what errors Memcheck can find.

- Made all tool chapters start with "Overview" section, for consistency.

- Made the "run with --tool=XXX" bit consistent in each tool chapter.

- Made all tool chapter titles match the description given when running them.

- Added BBV to the User Manual intro.

- Generally clarified, updated, and future-proofed various bits of text in
  the Quick Start Guide and User Manual introduction.

Also:
- Changed Nulgrind's start-up description to "the minimal Valgrind tool".

- Fixed some punctuation in the usage message.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10652

16 years agoImprove checking for pthread_mutex_cond operations: implement a check
Julian Seward [Tue, 28 Jul 2009 20:52:36 +0000 (20:52 +0000)] 
Improve checking for pthread_mutex_cond operations: implement a check
for consistent binding between the CV and the mutex, as specified by
POSIX.  Add commented out code for some other checks that could be
done but aren't, as they'd give false positives.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10651

16 years agoBack out a small part of r10589 (the tick-after-recv thing). On
Julian Seward [Tue, 28 Jul 2009 20:22:18 +0000 (20:22 +0000)] 
Back out a small part of r10589 (the tick-after-recv thing).  On
contemplation it seems like a bad idea.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10650

16 years agoReran SPLASH-2 benchmark.
Bart Van Assche [Tue, 28 Jul 2009 12:54:47 +0000 (12:54 +0000)] 
Reran SPLASH-2 benchmark.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10649

16 years agoUn-break regression test run.
Bart Van Assche [Tue, 28 Jul 2009 08:03:31 +0000 (08:03 +0000)] 
Un-break regression test run.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10648

16 years agoUpdated gcc version from 4.4.0 to 4.4.1.
Bart Van Assche [Tue, 28 Jul 2009 08:01:40 +0000 (08:01 +0000)] 
Updated gcc version from 4.4.0 to 4.4.1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10647

16 years agoRemove non-Linux code from this Linux-only test.
Nicholas Nethercote [Tue, 28 Jul 2009 05:11:42 +0000 (05:11 +0000)] 
Remove non-Linux code from this Linux-only test.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10646

16 years agoMake lsframe1, lsframe2 and stack_changes Linux-only since they all fault
Nicholas Nethercote [Tue, 28 Jul 2009 05:10:33 +0000 (05:10 +0000)] 
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

16 years agoMake sure the x86 direction flag is cleared again if we set it as part
Tom Hughes [Mon, 27 Jul 2009 23:09:42 +0000 (23:09 +0000)] 
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

16 years agoClarify a comment.
Nicholas Nethercote [Mon, 27 Jul 2009 22:21:22 +0000 (22:21 +0000)] 
Clarify a comment.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10641

16 years agoFollow-up of r10638 and r10639: explained in the manual that DRD is now
Bart Van Assche [Mon, 27 Jul 2009 17:43:39 +0000 (17:43 +0000)] 
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

16 years ago- Added more rwlock type checking.
Bart Van Assche [Mon, 27 Jul 2009 17:02:52 +0000 (17:02 +0000)] 
- 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

16 years agoImplemented type checking for reader-writer synchronization
Bart Van Assche [Mon, 27 Jul 2009 16:03:51 +0000 (16:03 +0000)] 
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

16 years agoAdded a new suppression pattern for Darwin. This is necessary because of the changes...
Bart Van Assche [Mon, 27 Jul 2009 14:48:06 +0000 (14:48 +0000)] 
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

16 years agoRemoved -q from the Valgrind options for the bar_bad and bar_trivial tests.
Bart Van Assche [Mon, 27 Jul 2009 14:37:24 +0000 (14:37 +0000)] 
Removed -q from the Valgrind options for the bar_bad and bar_trivial tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10636

16 years agoSupport epoll_create and epoll_create1 in ptrcheck. Fixes #189762.
Tom Hughes [Mon, 27 Jul 2009 14:22:25 +0000 (14:22 +0000)] 
Support epoll_create and epoll_create1 in ptrcheck. Fixes #189762.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10635

16 years ago- Moved printing the thread number to the function that prints the
Bart Van Assche [Mon, 27 Jul 2009 14:17:33 +0000 (14:17 +0000)] 
- 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

16 years agoMade the error reporting behavior of DRD similar to that of other
Bart Van Assche [Mon, 27 Jul 2009 14:04:46 +0000 (14:04 +0000)] 
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

16 years agoFixed a bug in the code for reading suppression files: the line numbers
Bart Van Assche [Mon, 27 Jul 2009 12:03:03 +0000 (12:03 +0000)] 
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

16 years agoUpdated expected output of tc23_bogus_condwait for Darwin because the test program...
Bart Van Assche [Mon, 27 Jul 2009 08:30:52 +0000 (08:30 +0000)] 
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

16 years agoRe-enabled the regression tests tc17_sembar and tc23_bogus_condwait for DRD on Darwin.
Bart Van Assche [Mon, 27 Jul 2009 08:29:29 +0000 (08:29 +0000)] 
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

16 years agoMake sure the entire symbol is swapped when canonicaliseSymtab decides
Tom Hughes [Mon, 27 Jul 2009 07:52:56 +0000 (07:52 +0000)] 
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

16 years agoRelatively inconsequential tidying of the Helgrind supps for Darwin.
Julian Seward [Sun, 26 Jul 2009 21:59:29 +0000 (21:59 +0000)] 
Relatively inconsequential tidying of the Helgrind supps for Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10628

16 years agoAdd a new output file for tc12_rwl_trivial. It unfortunately can't be
Julian Seward [Sun, 26 Jul 2009 21:36:24 +0000 (21:36 +0000)] 
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

16 years agoUnbreak Helgrind on Linux following recent Darwin hackery.
Julian Seward [Sun, 26 Jul 2009 20:15:37 +0000 (20:15 +0000)] 
Unbreak Helgrind on Linux following recent Darwin hackery.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10626

16 years agoSome more baseline suppressions for Darwin.
Julian Seward [Sun, 26 Jul 2009 19:55:18 +0000 (19:55 +0000)] 
Some more baseline suppressions for Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10625

16 years agoUse correct preprocessor symbol for OS-specific code.
Julian Seward [Sun, 26 Jul 2009 19:54:43 +0000 (19:54 +0000)] 
Use correct preprocessor symbol for OS-specific code.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10624

16 years agoPortability fixes for Darwin (use sem_open and sem_close rather than
Julian Seward [Sun, 26 Jul 2009 19:53:42 +0000 (19:53 +0000)] 
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

16 years agoRe-check the symbol names for all pthread intercepts, to find all Linux
Julian Seward [Sun, 26 Jul 2009 19:52:06 +0000 (19:52 +0000)] 
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

16 years agoOnly collect stacktraces at scalar Kr boundaries at history level 1.
Julian Seward [Sun, 26 Jul 2009 19:50:06 +0000 (19:50 +0000)] 
Only collect stacktraces at scalar Kr boundaries at history level 1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10621

16 years agoAdd new mangling Z-pair "ZD" to encode '$', since that's sometimes used
Julian Seward [Sun, 26 Jul 2009 19:41:07 +0000 (19:41 +0000)] 
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

16 years agoUpdated expected outputs following r10589 (msm idempotency effects)
Julian Seward [Sun, 26 Jul 2009 19:28:07 +0000 (19:28 +0000)] 
Updated expected outputs following r10589 (msm idempotency effects)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10619

16 years agoFixed typo.
Bart Van Assche [Sun, 26 Jul 2009 16:21:00 +0000 (16:21 +0000)] 
Fixed typo.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10618

16 years agoUpdated manual because of the new client request DRD_STOP_IGNORING_VAR().
Bart Van Assche [Sun, 26 Jul 2009 15:58:25 +0000 (15:58 +0000)] 
Updated manual because of the new client request DRD_STOP_IGNORING_VAR().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10617

16 years agoSuppress data race reports for the data race triggered by Darwin's pthread_once(...
Bart Van Assche [Sun, 26 Jul 2009 15:55:48 +0000 (15:55 +0000)] 
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

16 years agoAdded the macro DRD_STOP_IGNORING_VAR().
Bart Van Assche [Sun, 26 Jul 2009 15:46:47 +0000 (15:46 +0000)] 
Added the macro DRD_STOP_IGNORING_VAR().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10615

16 years agoRemove the temporary file created during the test before exiting.
Bart Van Assche [Sun, 26 Jul 2009 15:43:39 +0000 (15:43 +0000)] 
Remove the temporary file created during the test before exiting.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10614

16 years agoShould have been included in the previous commit (r10612).
Bart Van Assche [Sun, 26 Jul 2009 15:39:57 +0000 (15:39 +0000)] 
Should have been included in the previous commit (r10612).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10613

16 years agoAdded regression test for pth_once().
Bart Van Assche [Sun, 26 Jul 2009 15:27:27 +0000 (15:27 +0000)] 
Added regression test for pth_once().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10612

16 years ago- Changed the names of several existing suppression patterns.
Bart Van Assche [Sun, 26 Jul 2009 13:52:35 +0000 (13:52 +0000)] 
- 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

16 years agoAdded regression test for %o (octal) format specifier.
Bart Van Assche [Sun, 26 Jul 2009 09:16:56 +0000 (09:16 +0000)] 
Added regression test for %o (octal) format specifier.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10610

16 years agoMade the semaphore name independent of the process ID.
Bart Van Assche [Sun, 26 Jul 2009 09:16:29 +0000 (09:16 +0000)] 
Made the semaphore name independent of the process ID.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10609

16 years agoTrace the oflag parameter of sem_open() in hexadecimal format instead of decimal.
Bart Van Assche [Sun, 26 Jul 2009 09:15:55 +0000 (09:15 +0000)] 
Trace the oflag parameter of sem_open() in hexadecimal format instead of decimal.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10608

16 years agoUpdated drd/tests/omp_printf:
Bart Van Assche [Sun, 26 Jul 2009 09:04:42 +0000 (09:04 +0000)] 
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

16 years agoRemoved code that has been commented out recently.
Bart Van Assche [Sun, 26 Jul 2009 08:48:49 +0000 (08:48 +0000)] 
Removed code that has been commented out recently.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10606

16 years agoDisplay sem_open() mode in octal format instead of hexadecimal format.
Bart Van Assche [Sun, 26 Jul 2009 08:40:51 +0000 (08:40 +0000)] 
Display sem_open() mode in octal format instead of hexadecimal format.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10605

16 years agoAdded support for %o (octal format).
Bart Van Assche [Sun, 26 Jul 2009 08:40:17 +0000 (08:40 +0000)] 
Added support for %o (octal format).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10604

16 years agoDRD is no longer considered experimental on Darwin.
Bart Van Assche [Sat, 25 Jul 2009 14:03:53 +0000 (14:03 +0000)] 
DRD is no longer considered experimental on Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10603

16 years agoGeneralized some suppression patterns and added several new suppression patterns.
Bart Van Assche [Sat, 25 Jul 2009 14:03:24 +0000 (14:03 +0000)] 
Generalized some suppression patterns and added several new suppression patterns.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10602

16 years agoUpdated testing instructions.
Bart Van Assche [Sat, 25 Jul 2009 13:57:43 +0000 (13:57 +0000)] 
Updated testing instructions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10601

16 years agoFixed an assertion failure that was triggered on Darwin by calling malloc_zone_realloc().
Bart Van Assche [Sat, 25 Jul 2009 13:28:24 +0000 (13:28 +0000)] 
Fixed an assertion failure that was triggered on Darwin by calling malloc_zone_realloc().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10600

16 years agoDRD does now support sem_open() and sem_close().
Bart Van Assche [Sat, 25 Jul 2009 11:16:51 +0000 (11:16 +0000)] 
DRD does now support sem_open() and sem_close().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10599

16 years agoFixed bug in DRD's rwlock implementation that caused the regression test called rwloc...
Bart Van Assche [Sat, 25 Jul 2009 11:15:03 +0000 (11:15 +0000)] 
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

16 years agoUncomment this; not sure why it was commented out.
Nicholas Nethercote [Fri, 24 Jul 2009 20:48:36 +0000 (20:48 +0000)] 
Uncomment this;  not sure why it was commented out.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10597

16 years agoDRD now works on Darwin!
Nicholas Nethercote [Fri, 24 Jul 2009 19:34:55 +0000 (19:34 +0000)] 
DRD now works on Darwin!

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10596

16 years agoAdd a note about our suspect handling of brk(). And disable the brk() part
Nicholas Nethercote [Fri, 24 Jul 2009 19:09:52 +0000 (19:09 +0000)] 
Add a note about our suspect handling of brk().  And disable the brk() part
of origin1-yes.c, because it's a pain, giving different results on different
systems.  This allowed origin1-yes.stderr.exp-darwin to be removed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10595

16 years agoUpdated expected output after r10592.
Bart Van Assche [Fri, 24 Jul 2009 11:23:45 +0000 (11:23 +0000)] 
Updated expected output after r10592.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10594

16 years agoPrint an easy-to-understand message in case the client program tries to create more...
Bart Van Assche [Fri, 24 Jul 2009 11:11:30 +0000 (11:11 +0000)] 
Print an easy-to-understand message in case the client program tries to create more threads than what is currently supported by DRD.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10593

16 years agorwlock_test: added more internal error checking.
Bart Van Assche [Fri, 24 Jul 2009 11:10:05 +0000 (11:10 +0000)] 
rwlock_test: added more internal error checking.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10592

16 years agoRemoved those suppression patterns that became superfluous because of r10584.
Bart Van Assche [Fri, 24 Jul 2009 10:51:11 +0000 (10:51 +0000)] 
Removed those suppression patterns that became superfluous because of r10584.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10591

16 years agoMade number of threads and number of iterations configurable. Decreased stack size...
Bart Van Assche [Fri, 24 Jul 2009 09:34:37 +0000 (09:34 +0000)] 
Made number of threads and number of iterations configurable. Decreased stack size allocated per thread.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10590

16 years agoVarious improvements:
Julian Seward [Fri, 24 Jul 2009 08:45:08 +0000 (08:45 +0000)] 
Various improvements:

* rename many functions to do with shadow memory handling, to
  more clearly differentiate reads and writes directly of the
  shadow state from client reads and writes, each of which
  generate both a read and a write of the client state.  It was
  getting confusing (== hard to verify) in there.

* use idempotency of memory state machine transition rules to
  speed up long sequential sections, speedups in range 0% to 28%

* remove 4-way Pord (EQ, LT, GT, UN) and associated machinery,
  and replace it with something that merely computes LEQ in the
  partial ordering, since that's all that is necessary, and
  this simplifies some fast-case paths.

* add optional approx history mechanism a la DRD (start/end stack
  of conflicting segment), much faster if you don't need exact
  conflicting-access details

* libhb_so_recv: tick the VTS in the receiving thread; don't just
  join with the VC in the SO.  It's probably correct without this
  modification, but that correctness is fragile and depends on
  complex properties of how SOs are used/created.  Much better to
  be completely safe.  (Needs cache-isation).

* get rid of unnecessary shadow memory state "SVal_NOACCESS"
  and simplify associated fast-case paths in msmc{read,write}

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10589

16 years agoUpdated Subversion ignore lists.
Bart Van Assche [Fri, 24 Jul 2009 08:42:38 +0000 (08:42 +0000)] 
Updated Subversion ignore lists.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10588

16 years agoOops, this should have been included in r10583 ("New methods in WordXA:")
Julian Seward [Fri, 24 Jul 2009 08:42:07 +0000 (08:42 +0000)] 
Oops, this should have been included in r10583 ("New methods in WordXA:")

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10587

16 years agoMade test output operating system independent by suppressing information about confli...
Bart Van Assche [Fri, 24 Jul 2009 08:36:18 +0000 (08:36 +0000)] 
Made test output operating system independent by suppressing information about conflicting segments.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10586

16 years agoUpdate.
Julian Seward [Fri, 24 Jul 2009 08:22:35 +0000 (08:22 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10585

16 years agoReplaced code for suppressing the stack memory in use at the time a
Bart Van Assche [Fri, 24 Jul 2009 08:20:10 +0000 (08:20 +0000)] 
Replaced code for suppressing the stack memory in use at the time a
thread is being created by code for suppressing the memory allocated
from inside the pthread_create() call. The new implementation should be
a more portable solution for suppressing data races triggered by the
thread-local-storage implementation of a Pthreads library.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10584

16 years agoNew methods in WordXA:
Julian Seward [Fri, 24 Jul 2009 08:11:39 +0000 (08:11 +0000)] 
New methods in WordXA:

* lookupXA_UNSAFE -- binary search in array without being forced
  to sortXA it first -- dangerous because if the array isn't in order
  then the lookup can loop forever

* dropHeadXA -- drop the first N elements (kinda like dropTailXA, but
  unfortunately O(N) not O(1)), so that xarrays can be used to
  implement FIFOs, after a fashion.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10583

16 years agoFix a compile warning.
Nicholas Nethercote [Fri, 24 Jul 2009 07:54:51 +0000 (07:54 +0000)] 
Fix a compile warning.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10582

16 years agoA fix for bug 186796: suppression symbol names were being truncated if they
Nicholas Nethercote [Fri, 24 Jul 2009 07:38:29 +0000 (07:38 +0000)] 
A fix for bug 186796:  suppression symbol names were being truncated if they
were longer than 200 chars.  Now dynamic memory is used and so they can be
arbitrarily long in theory, although in practice it bombs out at 100,000 for
sanity purposes.  This required adjusting the core/tool interface for
read_extra_suppression_info().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10581

16 years agoUpdate expected output, so at least Helgrind runs clean on openSUSE
Julian Seward [Fri, 24 Jul 2009 07:24:19 +0000 (07:24 +0000)] 
Update expected output, so at least Helgrind runs clean on openSUSE
11.0 x86_64.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10580

16 years agoReverted r10511.
Bart Van Assche [Fri, 24 Jul 2009 06:41:08 +0000 (06:41 +0000)] 
Reverted r10511.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10579

16 years agoFixed bug 149878 (calloc overflow). This disables some of the calloc silly
Nicholas Nethercote [Fri, 24 Jul 2009 06:41:02 +0000 (06:41 +0000)] 
Fixed bug 149878 (calloc overflow).  This disables some of the calloc silly
arg checking, but that's no great loss.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10578

16 years agoRun the pth_inconsistent_cond_wait in quiet mode.
Bart Van Assche [Fri, 24 Jul 2009 06:30:17 +0000 (06:30 +0000)] 
Run the pth_inconsistent_cond_wait in quiet mode.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10577

16 years agoAdded command line option -q, which allows to suppress printing an error message...
Bart Van Assche [Fri, 24 Jul 2009 06:29:57 +0000 (06:29 +0000)] 
Added command line option -q, which allows to suppress printing an error message if a Pthreads call fails.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10576

16 years agomremap2 is a totally unreliable test; it's the only test that fails on a
Nicholas Nethercote [Fri, 24 Jul 2009 05:38:23 +0000 (05:38 +0000)] 
mremap2 is a totally unreliable test;  it's the only test that fails on a
number of Linux machines.  This change makes it more reliable, at the cost
of being less specific.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10575

16 years agoThis was meant to go in with r10573.
Nicholas Nethercote [Fri, 24 Jul 2009 05:35:49 +0000 (05:35 +0000)] 
This was meant to go in with r10573.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10574

16 years agoIn r10465 --time-stamp=yes got slightly broken -- the space between the time
Nicholas Nethercote [Fri, 24 Jul 2009 05:16:31 +0000 (05:16 +0000)] 
In r10465 --time-stamp=yes got slightly broken -- the space between the time
and the PID was removed.  This commit adds it back in.  It also adds a basic
test that would have detected this regression, and also the breakage in bug
200990.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10573

16 years agoAdd Valgrind version back into the preamble.
Nicholas Nethercote [Fri, 24 Jul 2009 04:47:04 +0000 (04:47 +0000)] 
Add Valgrind version back into the preamble.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10572

16 years agoThe pc-file output from the exp-bbv tool is mildly implementation dependent.
Vince Weaver [Thu, 23 Jul 2009 21:13:14 +0000 (21:13 +0000)] 
The pc-file output from the exp-bbv tool is mildly implementation dependent.
This causes the regression test to fail with the "million" benchmark
on a Fedora 9 system.  For now, remove the pc-file part of the test,
and later I'll come up with a better way of testing this feature.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10571

16 years agoLabels printed with semaphore tracing enabled do now match the function names assigne...
Bart Van Assche [Thu, 23 Jul 2009 19:07:37 +0000 (19:07 +0000)] 
Labels printed with semaphore tracing enabled do now match the function names assigned by POSIX.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10570

16 years agoFixed two typo's.
Bart Van Assche [Thu, 23 Jul 2009 19:01:35 +0000 (19:01 +0000)] 
Fixed two typo's.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10569

16 years agoPorted circular_buffer test to Darwin.
Bart Van Assche [Thu, 23 Jul 2009 18:22:00 +0000 (18:22 +0000)] 
Ported circular_buffer test to Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10568

16 years agoModified filter_stderr to filter out even more platform differences.
Bart Van Assche [Thu, 23 Jul 2009 18:10:55 +0000 (18:10 +0000)] 
Modified filter_stderr to filter out even more platform differences.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10567

16 years agoPorted the pth_inconsistent_cond_wait test program to Darwin.
Bart Van Assche [Thu, 23 Jul 2009 18:02:52 +0000 (18:02 +0000)] 
Ported the pth_inconsistent_cond_wait test program to Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10566

16 years agoPrint an error message if sem_init() is called by a client program on Darwin.
Bart Van Assche [Thu, 23 Jul 2009 17:52:51 +0000 (17:52 +0000)] 
Print an error message if sem_init() is called by a client program on Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10565

16 years agoOnly run the test programs that call sem_init() on operating systems that have implem...
Bart Van Assche [Thu, 23 Jul 2009 17:51:58 +0000 (17:51 +0000)] 
Only run the test programs that call sem_init() on operating systems that have implemented this function.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10564

16 years agoRefactoring: moved semaphore initialization and cleanup code to two new functions.
Bart Van Assche [Thu, 23 Jul 2009 17:50:02 +0000 (17:50 +0000)] 
Refactoring: moved semaphore initialization and cleanup code to two new functions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10563

16 years agoShould have been included in the previous commit.
Bart Van Assche [Thu, 23 Jul 2009 17:34:26 +0000 (17:34 +0000)] 
Should have been included in the previous commit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10562

16 years agoReverted r10523 and r10540: since sem_init() is not yet supported on Darwin, revert...
Bart Van Assche [Thu, 23 Jul 2009 17:22:11 +0000 (17:22 +0000)] 
Reverted r10523 and r10540: since sem_init() is not yet supported on Darwin, revert the attempts to compensate for the different return values on Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10561

16 years agoAdded support for sem_open() and sem_close().
Bart Van Assche [Thu, 23 Jul 2009 16:31:39 +0000 (16:31 +0000)] 
Added support for sem_open() and sem_close().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10560

16 years agoAnother update of the testing instructions.
Bart Van Assche [Thu, 23 Jul 2009 16:24:45 +0000 (16:24 +0000)] 
Another update of the testing instructions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10559

16 years agoAdded (and commented out) more debugging code.
Bart Van Assche [Thu, 23 Jul 2009 16:24:02 +0000 (16:24 +0000)] 
Added (and commented out) more debugging code.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10558

16 years agoPorted TSAN test 98 to Darwin.
Bart Van Assche [Thu, 23 Jul 2009 10:52:32 +0000 (10:52 +0000)] 
Ported TSAN test 98 to Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10557

16 years agoSuppressed a compiler warning.
Bart Van Assche [Thu, 23 Jul 2009 10:50:33 +0000 (10:50 +0000)] 
Suppressed a compiler warning.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10556

16 years agoAdded more suppression patterns.
Bart Van Assche [Thu, 23 Jul 2009 10:50:08 +0000 (10:50 +0000)] 
Added more suppression patterns.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10555

16 years agoLet DRD print a warning at startup that support for Darwin is still considered experi...
Bart Van Assche [Thu, 23 Jul 2009 10:10:30 +0000 (10:10 +0000)] 
Let DRD print a warning at startup that support for Darwin is still considered experimental, and filter out this warning from the regression tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10554