]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoMinor improvements to printing w.r.t. sync checking / resyncing.
Julian Seward [Mon, 3 Aug 2009 01:05:18 +0000 (01:05 +0000)] 
Minor improvements to printing w.r.t. sync checking / resyncing.

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

16 years agoAdd /Applications to the list of directories in which not to try to auto-run dsymutil.
Julian Seward [Mon, 3 Aug 2009 01:04:18 +0000 (01:04 +0000)] 
Add /Applications to the list of directories in which not to try to auto-run dsymutil.

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

16 years agoForgot to add these in r10690.
Nicholas Nethercote [Mon, 3 Aug 2009 00:23:16 +0000 (00:23 +0000)] 
Forgot to add these in r10690.

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

16 years agoIn the "Command:" line in the preamble, escape special chars such as ' ' and
Nicholas Nethercote [Sun, 2 Aug 2009 23:03:06 +0000 (23:03 +0000)] 
In the "Command:" line in the preamble, escape special chars such as ' ' and
'\\'.

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

16 years agoReinstating a heavily modified version of r10402. This is to do
Julian Seward [Sun, 2 Aug 2009 12:21:31 +0000 (12:21 +0000)] 
Reinstating a heavily modified version of r10402.  This is to do
with #190429.

This patch (originally from Jakub Jelinek) makes the redir of strlen
in ld.so on amd64-linux ld.so mandatory, but only for glibc 2.10 and
above.  For glibc-2.2 (our earliest supported version) to glibc-2.9
it is still optional.

Also, makes more verbose, the message that is printed if a mandatory
ld.so redirection on Linux cannot be set up.

Is believed to fix #190429.

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

16 years agoChange name of H1 history flag from --history-level=partial (which I can
Julian Seward [Sun, 2 Aug 2009 10:16:03 +0000 (10:16 +0000)] 
Change name of H1 history flag from --history-level=partial (which I can
never remember) to --history-level=approx.

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

16 years agoAttend to space leaks, to the extent that I can.
Julian Seward [Sun, 2 Aug 2009 10:15:07 +0000 (10:15 +0000)] 
Attend to space leaks, to the extent that I can.

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

16 years agoSmall improvements, including some commenting, for the H1 history
Julian Seward [Sun, 2 Aug 2009 09:34:35 +0000 (09:34 +0000)] 
Small improvements, including some commenting, for the H1 history
mechanism.

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

16 years agoRestored two of the suppression patterns removed in the previous commit.
Bart Van Assche [Sun, 2 Aug 2009 08:35:05 +0000 (08:35 +0000)] 
Restored two of the suppression patterns removed in the previous commit.

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

16 years agoCleaned up DRD's Linux suppression patterns:
Bart Van Assche [Sun, 2 Aug 2009 07:46:43 +0000 (07:46 +0000)] 
Cleaned up DRD's Linux suppression patterns:
- Grouped the three suppression patterns for ld into a single suppression
  pattern.
- Assigned more descriptive names to the suppression patterns.
- Improved suppression pattern documentation.
- Removed suppression patterns that were added before VEX supported atomic
  instructions and that are no longer necessary with the current version
  of VEX.

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

16 years agoReverted to r10509.
Bart Van Assche [Fri, 31 Jul 2009 19:00:05 +0000 (19:00 +0000)] 
Reverted to r10509.

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

16 years agoAdded an output variant for the pth_cancel_locked regression test.
Bart Van Assche [Fri, 31 Jul 2009 18:49:29 +0000 (18:49 +0000)] 
Added an output variant for the pth_cancel_locked regression test.
Apparently when canceling a thread waiting inside pthread_cond_wait()
on Linux the specified mutex is left unlocked while on Darwin the
mutex specified in the pthread_cond_wait() call is reacquired before
the thread is terminated.

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

16 years agoReport mutex errors for each different mutex even if the call stacks are identical.
Bart Van Assche [Fri, 31 Jul 2009 18:45:49 +0000 (18:45 +0000)] 
Report mutex errors for each different mutex even if the call stacks are identical.

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

16 years agoBuilds again on Darwin.
Bart Van Assche [Fri, 31 Jul 2009 17:59:28 +0000 (17:59 +0000)] 
Builds again on Darwin.

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

16 years agoImplemented a more systematic approach for intercepting POSIX threads
Bart Van Assche [Fri, 31 Jul 2009 17:31:44 +0000 (17:31 +0000)] 
Implemented a more systematic approach for intercepting POSIX threads
functions: for each function name to intercept, intercept the function
name itself, the function name with @* appended (versioned symbols on
Linux) and the function name with $* appended (versioned symbols on
Darwin). Updated filter_stderr such that symbol versions are removed.
Updated the expected output files that contain names of intercepted
functions.

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

16 years ago(almost completely just function renaming):
Julian Seward [Fri, 31 Jul 2009 09:41:29 +0000 (09:41 +0000)] 
(almost completely just function renaming):

* VG_(find_seginfo): incrementally rearrange the DebugInfo list, like
  most of the other list-searching functions do.

* rename all VG_(*seginfo*) functions exported from m_debuginfo to
  VG_(*DebugInfo*).  "seginfo" was a historical name which was mostly
  but not completely, done away with some time back.

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

16 years agoDarwin-specific followup to r10676 (helgrind: Don't instrument any code in ld.so).
Julian Seward [Fri, 31 Jul 2009 08:52:39 +0000 (08:52 +0000)] 
Darwin-specific followup to r10676 (helgrind: Don't instrument any code in ld.so).

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

16 years agoDon't instrument any code in ld.so. Doing so merely generates a large
Julian Seward [Fri, 31 Jul 2009 08:46:35 +0000 (08:46 +0000)] 
Don't instrument any code in ld.so.  Doing so merely generates a large
number of races which have to be expensively suppressed, so it's
better not to do so.

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

16 years agoOnly consider two error contexts as equivalent if the contexts have another
Bart Van Assche [Fri, 31 Jul 2009 08:45:02 +0000 (08:45 +0000)] 
Only consider two error contexts as equivalent if the contexts have another
type than "data race error" or if both data race error contexts refer to the
same access type and the same access size.

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

16 years agoReport an error message instead of triggering an assertion failure when a non-existin...
Bart Van Assche [Fri, 31 Jul 2009 08:26:17 +0000 (08:26 +0000)] 
Report an error message instead of triggering an assertion failure when a non-existing thread ID is passed to pthread_join() or pthread_cancel().

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Fri, 31 Jul 2009 07:50:17 +0000 (07:50 +0000)] 
Updated Subversion ignore list.

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

16 years agoFix compile error.
Nicholas Nethercote [Fri, 31 Jul 2009 05:19:29 +0000 (05:19 +0000)] 
Fix compile error.

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

16 years agoPrettify the messages printed when segment mismatches happen. Also get rid
Nicholas Nethercote [Fri, 31 Jul 2009 05:06:29 +0000 (05:06 +0000)] 
Prettify the messages printed when segment mismatches happen.  Also get rid
of two unnecessary gotos.

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

16 years agowibble
Nicholas Nethercote [Fri, 31 Jul 2009 00:07:55 +0000 (00:07 +0000)] 
wibble

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

16 years agoDon't bother printing "My PID" when logging to a file or socket, as that
Nicholas Nethercote [Thu, 30 Jul 2009 23:36:43 +0000 (23:36 +0000)] 
Don't bother printing "My PID" when logging to a file or socket, as that
value is shown at the start of every output line.

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

16 years agoNow that we always print the command, no need to reprint it when logging to
Nicholas Nethercote [Thu, 30 Jul 2009 23:35:11 +0000 (23:35 +0000)] 
Now that we always print the command, no need to reprint it when logging to
file or a socket.  And tweak how the PIDs are printed.

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

16 years agoDon't print the command in the preamble with --xml=yes.
Nicholas Nethercote [Thu, 30 Jul 2009 23:14:55 +0000 (23:14 +0000)] 
Don't print the command in the preamble with --xml=yes.

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

16 years agoAvoid ampersands that seem to be causing XML-to-PDF conversion troubles.
Nicholas Nethercote [Thu, 30 Jul 2009 22:21:24 +0000 (22:21 +0000)] 
Avoid ampersands that seem to be causing XML-to-PDF conversion troubles.

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

16 years agoUse <variablelist> for ms_print's and cg_annotate's options list.
Nicholas Nethercote [Thu, 30 Jul 2009 04:48:05 +0000 (04:48 +0000)] 
Use <variablelist> for ms_print's and cg_annotate's options list.

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

16 years agoMan page fix.
Nicholas Nethercote [Thu, 30 Jul 2009 04:27:26 +0000 (04:27 +0000)] 
Man page fix.

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

16 years agoRemove some not-very useful info that tends to get out of date.
Nicholas Nethercote [Thu, 30 Jul 2009 04:25:02 +0000 (04:25 +0000)] 
Remove some not-very useful info that tends to get out of date.

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

16 years agoRemove lots of boilerplate text (tool descriptions) that tends to get out of
Nicholas Nethercote [Thu, 30 Jul 2009 04:22:09 +0000 (04:22 +0000)] 
Remove lots of boilerplate text (tool descriptions) that tends to get out of
date from the man page.

Make the man page match the ordering in the user manual.

Put Nulgrind last in the user manual.

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

16 years agoUnbreak 'make dist'.
Nicholas Nethercote [Thu, 30 Jul 2009 04:07:10 +0000 (04:07 +0000)] 
Unbreak 'make dist'.

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

16 years agoImprove the "acting on Cachegrind's info" section.
Nicholas Nethercote [Thu, 30 Jul 2009 03:21:42 +0000 (03:21 +0000)] 
Improve the "acting on Cachegrind's info" section.

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

16 years agoWe currently use a mix of <option> and <computeroutput> tags for command
Nicholas Nethercote [Thu, 30 Jul 2009 02:57:52 +0000 (02:57 +0000)] 
We currently use a mix of <option> and <computeroutput> tags for command
line options.  This commit changes them to all <option>.

Also make consistent how options with multiple names (eg. -h --help) are
shown.

Also, remove section describing --help and --version in Callgrind's chapter;
these aren't necessary and are presumably a hangover from when Callgrind was
a separate tool.

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

16 years agoImprove formatting of a command.
Nicholas Nethercote [Thu, 30 Jul 2009 02:27:17 +0000 (02:27 +0000)] 
Improve formatting of a command.

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

16 years agoPrint the command being run at startup. It wraps to avoid going over 80
Nicholas Nethercote [Wed, 29 Jul 2009 23:34:49 +0000 (23:34 +0000)] 
Print the command being run at startup.  It wraps to avoid going over 80
chars wide whenever possible.  Finishes off bug 197933.

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

16 years agoImprove futex system call support. Patch from BZ#201757 which I have
Tom Hughes [Wed, 29 Jul 2009 11:09:01 +0000 (11:09 +0000)] 
Improve futex system call support. Patch from BZ#201757 which I have
attempted to cross check against current kernel code. Reading the
futex system call code mostly just made my head hurt however...

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

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