valgrind:mainlinemirror.git
9 years agoSwizzle the external, to vex/tags/VEX_3_4_0. VALGRIND_3_4_0
sewardj [Sat, 3 Jan 2009 17:37:50 +0000 (17:37 +0000)]
Swizzle the external, to vex/tags/VEX_3_4_0.

git-svn-id: svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_4_0@8902 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMake a copy of trunk r8899, as the released 3.4.0.
sewardj [Sat, 3 Jan 2009 17:31:00 +0000 (17:31 +0000)]
Make a copy of trunk r8899, as the released 3.4.0.

git-svn-id: svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_4_0@8900 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoLate entrant for 3.4.0 (sigh)
sewardj [Fri, 2 Jan 2009 23:21:54 +0000 (23:21 +0000)]
Late entrant for 3.4.0 (sigh)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8899 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years ago--> 3.4.0 (first attempt)
sewardj [Fri, 2 Jan 2009 23:19:26 +0000 (23:19 +0000)]
--> 3.4.0 (first attempt)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8898 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoSuppress all races whose top frame is in libc.so. This is a not very
sewardj [Fri, 2 Jan 2009 23:17:02 +0000 (23:17 +0000)]
Suppress all races whose top frame is in libc.so.  This is a not very
clever interim solution to the problem of Helgrind reporting lots of
false races in glibc's stdio functions, due to it not seeing the
relevant (inlined, alas) locking that glibc uses.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8897 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdated ignore list.
bart [Fri, 2 Jan 2009 17:49:17 +0000 (17:49 +0000)]
Updated ignore list.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8896 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoPolished manual.
bart [Fri, 2 Jan 2009 13:29:32 +0000 (13:29 +0000)]
Polished manual.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8892 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd some more Intel cache configuration values needed for Atom
tom [Fri, 2 Jan 2009 11:07:18 +0000 (11:07 +0000)]
Add some more Intel cache configuration values needed for Atom
processors. These come from sandpile.org as the current version
of Intel's Application Note 485 doesn't have them yet.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8891 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoRemove spurious newlines from messages.
tom [Fri, 2 Jan 2009 11:03:55 +0000 (11:03 +0000)]
Remove spurious newlines from messages.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8890 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd some more Intel L2 and L3 cache configuration values.
tom [Fri, 2 Jan 2009 10:42:27 +0000 (10:42 +0000)]
Add some more Intel L2 and L3 cache configuration values.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8889 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdated to do list.
bart [Wed, 31 Dec 2008 09:55:44 +0000 (09:55 +0000)]
Updated to do list.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8887 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoSuppress any race that occurs in ld.so (just a single frame will do).
sewardj [Mon, 29 Dec 2008 14:46:26 +0000 (14:46 +0000)]
Suppress any race that occurs in ld.so (just a single frame will do).
his gets rid of a bunch of more specific suppressions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8886 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdditional suppression patterns for glib.
bart [Sat, 27 Dec 2008 09:19:01 +0000 (09:19 +0000)]
Additional suppression patterns for glib.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8885 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMoved two define's, such that the ABIWARNING appears immediately before the enum...
bart [Thu, 25 Dec 2008 09:31:40 +0000 (09:31 +0000)]
Moved two define's, such that the ABIWARNING appears immediately before the enum declaration it applies to.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8884 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMade sure that the file bar_trivial.stdout.exp gets included in the distribution...
bart [Thu, 25 Dec 2008 09:09:59 +0000 (09:09 +0000)]
Made sure that the file bar_trivial.stdout.exp gets included in the distribution tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8883 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoSecond attempt at 3.4.0 RC1.
sewardj [Wed, 24 Dec 2008 18:40:57 +0000 (18:40 +0000)]
Second attempt at 3.4.0 RC1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8882 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded a pthread suppression pattern and generalized a glib suppression pattern.
bart [Wed, 24 Dec 2008 10:13:33 +0000 (10:13 +0000)]
Added a pthread suppression pattern and generalized a glib suppression pattern.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8881 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoRenamed a variable and removed two statements that were commented out.
bart [Wed, 24 Dec 2008 09:45:41 +0000 (09:45 +0000)]
Renamed a variable and removed two statements that were commented out.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8880 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFinalise 3.4.0 RC1.
sewardj [Tue, 23 Dec 2008 23:09:57 +0000 (23:09 +0000)]
Finalise 3.4.0 RC1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8879 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUn-break 'make dist'.
sewardj [Tue, 23 Dec 2008 20:46:12 +0000 (20:46 +0000)]
Un-break 'make dist'.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8878 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoML_(addDiCfSI)(): truncate DiCfSI's that fall partially but not
sewardj [Tue, 23 Dec 2008 20:00:23 +0000 (20:00 +0000)]
ML_(addDiCfSI)(): truncate DiCfSI's that fall partially but not
entirely inside the r-x mapped area, so that they fall entirely
within the mapped area.  This is necessary in order to avoid
assertion failures later in check_CFSI_related_invariants().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8877 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate bug lists.
sewardj [Tue, 23 Dec 2008 17:04:52 +0000 (17:04 +0000)]
Update bug lists.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8876 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoBump the version stuff.
sewardj [Tue, 23 Dec 2008 16:34:19 +0000 (16:34 +0000)]
Bump the version stuff.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8875 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate.
sewardj [Tue, 23 Dec 2008 16:26:06 +0000 (16:26 +0000)]
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8874 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoDisable the building of exp-omega, but don't rm it from the repo,
sewardj [Tue, 23 Dec 2008 15:09:09 +0000 (15:09 +0000)]
Disable the building of exp-omega, but don't rm it from the repo,
nor from the tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8873 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate for 3.4.0 (imcomplete).
sewardj [Tue, 23 Dec 2008 13:14:06 +0000 (13:14 +0000)]
Update for 3.4.0 (imcomplete).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8872 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMinor futzing with the documentation.
sewardj [Tue, 23 Dec 2008 11:13:07 +0000 (11:13 +0000)]
Minor futzing with the documentation.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8871 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd a couple more suppressions.
sewardj [Tue, 23 Dec 2008 11:12:40 +0000 (11:12 +0000)]
Add a couple more suppressions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8870 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd an expected-output set for Ubuntu 8.04 (and 8.10) on amd64.
sewardj [Tue, 23 Dec 2008 11:07:59 +0000 (11:07 +0000)]
Add an expected-output set for Ubuntu 8.04 (and 8.10) on amd64.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8869 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoComment out unused code so as to get a warning free build.
sewardj [Tue, 23 Dec 2008 02:31:22 +0000 (02:31 +0000)]
Comment out unused code so as to get a warning free build.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8868 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUnbreak the build on aix5.
sewardj [Tue, 23 Dec 2008 02:09:17 +0000 (02:09 +0000)]
Unbreak the build on aix5.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8867 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoIgnore races that occur on data in .plt sections, as well as those
sewardj [Tue, 23 Dec 2008 00:10:26 +0000 (00:10 +0000)]
Ignore races that occur on data in .plt sections, as well as those
that occur on data in .got.plt sections.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8866 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoRationalise standard suppressions: get rid of vast amounts of
sewardj [Mon, 22 Dec 2008 20:21:38 +0000 (20:21 +0000)]
Rationalise standard suppressions: get rid of vast amounts of
near-duplication on the suppressions concerning combinations of
libc, ld and libpthread.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8865 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoDuring instrumentation, handle Imbe_SnoopedStore{Begin,End} a bit more
sewardj [Mon, 22 Dec 2008 18:17:24 +0000 (18:17 +0000)]
During instrumentation, handle Imbe_SnoopedStore{Begin,End} a bit more
convincingly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8864 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate expected outputs.
sewardj [Mon, 22 Dec 2008 15:40:48 +0000 (15:40 +0000)]
Update expected outputs.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8863 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdated after merge of Helgrind from YARD branch to trunk.
bart [Mon, 22 Dec 2008 07:10:44 +0000 (07:10 +0000)]
Updated after merge of Helgrind from YARD branch to trunk.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8862 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMinor updates for 3.4.0. Also fix a large number of missing <para>
sewardj [Mon, 22 Dec 2008 01:00:15 +0000 (01:00 +0000)]
Minor updates for 3.4.0.  Also fix a large number of missing <para>
and </para> tags.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8861 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFinish off updates to the Helgrind manual.
sewardj [Mon, 22 Dec 2008 00:39:41 +0000 (00:39 +0000)]
Finish off updates to the Helgrind manual.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8860 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMore documentation updates. Urr. I knew there was a reason I'd been
sewardj [Sun, 21 Dec 2008 23:11:14 +0000 (23:11 +0000)]
More documentation updates.  Urr.  I knew there was a reason I'd been
putting this off.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8859 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoPartial update of the Helgrind documentation (incomplete).
sewardj [Sun, 21 Dec 2008 21:17:24 +0000 (21:17 +0000)]
Partial update of the Helgrind documentation (incomplete).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8858 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded prereq clause.
bart [Sun, 21 Dec 2008 17:44:32 +0000 (17:44 +0000)]
Added prereq clause.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8857 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agocircular_buffer test now passes on systems with and without built-in support for...
bart [Sun, 21 Dec 2008 17:24:21 +0000 (17:24 +0000)]
circular_buffer test now passes on systems with and without built-in support for atomic operations.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8856 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded a suppression pattern for the data races triggered by the glibc function fflush().
bart [Sun, 21 Dec 2008 17:21:05 +0000 (17:21 +0000)]
Added a suppression pattern for the data races triggered by the glibc function fflush().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8855 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFixed bug in vector clock updating for semaphores with non-zero initial value.
bart [Sun, 21 Dec 2008 17:20:22 +0000 (17:20 +0000)]
Fixed bug in vector clock updating for semaphores with non-zero initial value.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8854 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded command-line option -n, which allows to disable locking.
bart [Sun, 21 Dec 2008 17:19:05 +0000 (17:19 +0000)]
Added command-line option -n, which allows to disable locking.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8853 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoReplaced regular increment by atomic increment.
bart [Sun, 21 Dec 2008 17:16:03 +0000 (17:16 +0000)]
Replaced regular increment by atomic increment.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8852 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMade config.h include path consistent with the other regression tests.
bart [Sun, 21 Dec 2008 16:10:36 +0000 (16:10 +0000)]
Made config.h include path consistent with the other regression tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8851 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFixed typo: added missing right parentheses.
bart [Sun, 21 Dec 2008 16:09:03 +0000 (16:09 +0000)]
Fixed typo: added missing right parentheses.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8850 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFinished renaming of boost_threads into boost_thread.
bart [Sun, 21 Dec 2008 16:08:36 +0000 (16:08 +0000)]
Finished renaming of boost_threads into boost_thread.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8849 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoGeneralized the glibc _IO_file_xsputn suppression pattern. Added a suppression patter...
bart [Sun, 21 Dec 2008 16:08:07 +0000 (16:08 +0000)]
Generalized the glibc _IO_file_xsputn suppression pattern. Added a suppression pattern for Boost.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8848 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMove description of --read-var-info= from the "debugging options"
sewardj [Sun, 21 Dec 2008 10:45:55 +0000 (10:45 +0000)]
Move description of --read-var-info= from the "debugging options"
section to the "uncommon user options" section.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8847 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFollowing r8845, explicitly enable Dwarf3 variable/type info reading
sewardj [Sun, 21 Dec 2008 10:44:28 +0000 (10:44 +0000)]
Following r8845, explicitly enable Dwarf3 variable/type info reading
on tests whose output depends on it.

 --This line, and those below, will be ignored--

M    helgrind/tests/tc20_verifywrap.vgtest
M    helgrind/tests/tc16_byterace.vgtest
M    helgrind/tests/tc01_simple_race.vgtest
M    helgrind/tests/rwlock_race.vgtest
M    helgrind/tests/tc06_two_races.vgtest
M    helgrind/tests/hg03_inherit.vgtest
M    helgrind/tests/tc21_pthonce.vgtest
M    helgrind/tests/tc05_simple_race.vgtest
M    helgrind/tests/hg04_race.vgtest
M    helgrind/tests/hg05_race2.vgtest

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8846 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoVarious changes:
sewardj [Sun, 21 Dec 2008 10:43:10 +0000 (10:43 +0000)]
Various changes:

* remove flags --trace-addr= and --trace-level=.  These no longer
  have any effect, so there's no point in having the associated flags.

* add flag --show-conflicts=no|yes [yes], which makes it possible to
  disable the conflicting-access collection machinery.  This makes
  Helgrind run much faster.  Perhaps useful in regression testing,
  when it is desired only to find out if a race exists, but not to
  collect enough information to easily diagnose it.

* add flag --conflict-cache-size= [1000000], which makes it possible
  to control how much memory is used for storage of information about
  historical (potentially-conflicting) accesses.

* Update comments on the conflicting-access machinery to more closely
  reflect the code.  Includes comments on the important aspects of
  the value N_OLDREF_ACCS.  Increase said constant from 3 to 5.

* Fix bug in event_map_bind: when searching for an OldRef.accs[]
  entry that matches the current access, don't forget to also
  compare the access sizes.  The old code only compared the thread
  identity and the read/writeness.

* hg_main.c: disable Dwarf3 variable/type info reading by default.
  Mostly this provides little benefit and can cause Helgrind to use
  a lot more time and memory at startup.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8845 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoRearrange suppressions a bit, and add a couple more from David Faure.
sewardj [Sat, 20 Dec 2008 09:20:33 +0000 (09:20 +0000)]
Rearrange suppressions a bit, and add a couple more from David Faure.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8844 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate expected outputs for glibc25-amd64.
sewardj [Fri, 19 Dec 2008 09:46:17 +0000 (09:46 +0000)]
Update expected outputs for glibc25-amd64.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8843 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate the expected outputs following changes in Helgrind over the
sewardj [Thu, 18 Dec 2008 20:21:13 +0000 (20:21 +0000)]
Update the expected outputs following changes in Helgrind over the
past few weeks.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8842 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoCallgrind: add code pattern for runtime_resolve on OpenSuse11.0/x86
weidendo [Thu, 18 Dec 2008 19:48:35 +0000 (19:48 +0000)]
Callgrind: add code pattern for runtime_resolve on OpenSuse11.0/x86

OpenSuse 11.0 has glibc 2.8, which changed the assembly code for
runtime_resolve. This patch rearranges the code search such that
multiple variants can be scanned.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8841 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoDon't apply cross-compilation patch during the nightly build any more,
sewardj [Thu, 18 Dec 2008 08:33:24 +0000 (08:33 +0000)]
Don't apply cross-compilation patch during the nightly build any more,
as it's no longer necessary.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8840 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMove the functionality from filter_threadnums into filter_stderr, so that
sewardj [Thu, 18 Dec 2008 08:27:32 +0000 (08:27 +0000)]
Move the functionality from filter_threadnums into filter_stderr, so that
it applies to all tests.  Then remove all references to filter_threadnums.

Also:

* match and transform not only "Thread #n" and "thread #n"
  but also "Thread n" and "thread n", where n is [0-9][0-9]*.

* use -e ... for the sed commands where possible, to reduce the number
  of processes that have to be started

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8839 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoHG_(instrument): don't assert on Imbe_SnoopedStore{Begin,End}.
sewardj [Thu, 18 Dec 2008 01:20:11 +0000 (01:20 +0000)]
HG_(instrument): don't assert on Imbe_SnoopedStore{Begin,End}.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8838 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded another regression test.
bart [Wed, 17 Dec 2008 19:21:17 +0000 (19:21 +0000)]
Added another regression test.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8837 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFixed semaphore vector clock updating / simplified semaphore tracing.
bart [Wed, 17 Dec 2008 19:20:13 +0000 (19:20 +0000)]
Fixed semaphore vector clock updating / simplified semaphore tracing.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8836 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFixed grammar / split a paragraph in two.
bart [Wed, 17 Dec 2008 19:15:58 +0000 (19:15 +0000)]
Fixed grammar / split a paragraph in two.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8835 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded a suppression pattern.
bart [Wed, 17 Dec 2008 19:10:26 +0000 (19:10 +0000)]
Added a suppression pattern.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8834 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded a paragraph about the Boost.Thread library.
bart [Wed, 17 Dec 2008 19:10:06 +0000 (19:10 +0000)]
Added a paragraph about the Boost.Thread library.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8833 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoCreate rough entries for the 3.4.0 changes.
sewardj [Wed, 17 Dec 2008 12:26:24 +0000 (12:26 +0000)]
Create rough entries for the 3.4.0 changes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8832 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoInclude new file (why-no-libc.txt) in the distro tarball.
sewardj [Wed, 17 Dec 2008 12:25:05 +0000 (12:25 +0000)]
Include new file (why-no-libc.txt) in the distro tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8831 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFixed regression test tc20_verifywrap2, which was broken through r8829.
bart [Wed, 17 Dec 2008 07:32:09 +0000 (07:32 +0000)]
Fixed regression test tc20_verifywrap2, which was broken through r8829.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8830 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFix some format string mismatch warnings, associated with r8825.
sewardj [Wed, 17 Dec 2008 01:21:06 +0000 (01:21 +0000)]
Fix some format string mismatch warnings, associated with r8825.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8829 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd another magic constant to the Iex_Const case in isBogusAtom, as
sewardj [Wed, 17 Dec 2008 01:12:58 +0000 (01:12 +0000)]
Add another magic constant to the Iex_Const case in isBogusAtom, as
seen in glibc on ppc32.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8828 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd some useful info.
njn [Mon, 15 Dec 2008 21:29:29 +0000 (21:29 +0000)]
Add some useful info.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8827 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd support ioprio_get and wire up ioprio_set on all platforms.
tom [Mon, 15 Dec 2008 08:58:29 +0000 (08:58 +0000)]
Add support ioprio_get and wire up ioprio_set on all platforms.
Fixes bug #177819.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8826 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded more semaphore tracing info.
bart [Sun, 14 Dec 2008 08:56:49 +0000 (08:56 +0000)]
Added more semaphore tracing info.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8825 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate an FAQ to account for --track-origins=yes.
njn [Sat, 13 Dec 2008 22:27:05 +0000 (22:27 +0000)]
Update an FAQ to account for --track-origins=yes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8824 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoInclude vg-in-place in the distro tarball.
sewardj [Sat, 13 Dec 2008 18:46:44 +0000 (18:46 +0000)]
Include vg-in-place in the distro tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8823 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdate.
sewardj [Sat, 13 Dec 2008 16:53:35 +0000 (16:53 +0000)]
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8822 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoMake sure $mflag_primary is used in the tests for Boost and QtCore
sewardj [Sat, 13 Dec 2008 16:45:19 +0000 (16:45 +0000)]
Make sure $mflag_primary is used in the tests for Boost and QtCore
features.  Also add a big comment explaining why this is important.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8821 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAvoid causing an assertion failure in VG_(make_ExeContext_from_StackTrace)
sewardj [Sat, 13 Dec 2008 01:20:21 +0000 (01:20 +0000)]
Avoid causing an assertion failure in VG_(make_ExeContext_from_StackTrace)
in the case where VG_(clo_backtrace_size) < N_FRAMES (that is, with
--num-callers=N where N < N_FRAMES).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8820 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd a couple of suppressions relating to unwinding the stack following
sewardj [Sat, 13 Dec 2008 01:18:38 +0000 (01:18 +0000)]
Add a couple of suppressions relating to unwinding the stack following
pthread_exit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8819 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoThis commit subtly changes the meaning of the values obtained via the
sewardj [Fri, 12 Dec 2008 13:23:03 +0000 (13:23 +0000)]
This commit subtly changes the meaning of the values obtained via the
stack unwind mechanism (the function VG_(record_ExeContext) et al),
clears up some associated kludges, and makes suppression matching work
more reliably.

Prior to this commit, a stack snapshot contained, at [0], the IP of
the relevant thread, and at all positions [1] and above, the return
addresses for the open calls.

When showing a snapshot to the user (in VG_(apply_StackTrace)), and
searching the stack for stack blocks (in VG_(get_data_description)), 1
is subtracted from positions [1] and above, so as to move these return
addresses back to the last byte of the calling instruction.  This
subtraction is also done even in VG_(get_StackTrace_wrk) itself, in
order to make the stack unwinding work at all.

It turns out that suppression-vs-function-name matching requires the
same hack, and sometimes failed to match suppressions that should
match, because of this self-same problem.

So the commit changes the stack unwinder itself, so that entries [1]
and above point to the last byte of the call instruction, rather than
the return address.  The associated kludges in VG_(apply_StackTrace)
and VG_(get_StackTrace_wrk) are removed, and suppression matching is
observed to work in a case where it failed before.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8818 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFix format string warning in PRE(sys_eventfd2).
sewardj [Fri, 12 Dec 2008 08:08:58 +0000 (08:08 +0000)]
Fix format string warning in PRE(sys_eventfd2).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8817 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd a new module, m_seqmatch, which does very simple sequence (regexp)
sewardj [Fri, 12 Dec 2008 08:07:49 +0000 (08:07 +0000)]
Add a new module, m_seqmatch, which does very simple sequence (regexp)
matching, in the function VG_(generic_match).  Patterns to be matched
against may contain only '*'-style wildcards (matches any number of
elements, we don't care what they are), '?' wildcards (matches exactly
one element, we don't care what it is) and literal elements.

It is totally abstractified, in the sense that the pattern and input
arrays may be arrays of anything.  The caller provides enough
information so that VG_(generic_match) can step along both arrays, and
can ask the questions "is this pattern element a '*' ?", "is this
pattern element a '?' ?", and "does this pattern element match an
input element ?".

The existing function VG_(string_match) is reimplemented using
VG_(generic_match), although the ability to escape metacharacters in
the pattern string is removed -- I don't think it was ever used.

In m_errormgr, matching of suppression stacks (including wildcard
"..." lines) against error stacks is re-implemented using
VG_(generic_match).

Further detailed comments are in m_seqmatch.h and pub_tool_seqmatch.h.

A negative side effect is that VG_(string_match) will be much slower
than before, due to the abstractification.  It may be necessary to
reimplement a specialised version later.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8816 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd support for eventfd2 (and wire up pipe2 on PPC platforms).
tom [Wed, 10 Dec 2008 09:28:56 +0000 (09:28 +0000)]
Add support for eventfd2 (and wire up pipe2 on PPC platforms).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8815 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdded suppression pattern for random_r(), which is a.o. called by rand().
bart [Tue, 9 Dec 2008 11:07:55 +0000 (11:07 +0000)]
Added suppression pattern for random_r(), which is a.o. called by rand().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8814 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFix bug introduced by frame-level wildcarding changes for suppressions
sewardj [Mon, 8 Dec 2008 13:45:35 +0000 (13:45 +0000)]
Fix bug introduced by frame-level wildcarding changes for suppressions
in r8725.  (Konstantin Serebryany)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8813 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoDon't segfault the guest during a call MPI_Init(NULL,NULL), since
sewardj [Mon, 8 Dec 2008 10:27:31 +0000 (10:27 +0000)]
Don't segfault the guest during a call MPI_Init(NULL,NULL), since
those are valid parameters to MPI_Init.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8812 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoevent_map_lookup: when looking for a previous access to an address,
sewardj [Mon, 8 Dec 2008 00:12:28 +0000 (00:12 +0000)]
event_map_lookup: when looking for a previous access to an address,
find conflicting accesses that overlap the current access in any way,
rather than just match at the addresses.  This allows reporting of
conflicts between accesses which overlap but are not the same
size/alignment.

Doesn't seem to always work reliably, for reasons I don't understand,
but I so far failed to make a small test case.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8811 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoTidy up and comment sanity-checking code/configuration.
sewardj [Sun, 7 Dec 2008 11:40:17 +0000 (11:40 +0000)]
Tidy up and comment sanity-checking code/configuration.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8810 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years ago* In the conflicting-event mechanism, also record the size and
sewardj [Sun, 7 Dec 2008 01:41:46 +0000 (01:41 +0000)]
* In the conflicting-event mechanism, also record the size and
  read-or-writeness of each access, so that these can be displayed in
  error messages.

* Use recorded read-or-writeness info to avoid producing error
  messages that claim claim two reads race against each other -- this
  is clearly silly.  For each pair of racing accesses now reported, at
  least one of them will (should!) always now be a write, and (as
  previously ensured) they will be from different threads.

* Lookups in the conflicting-access map is expensive, so don't do that
  as soon as a race is detected.  Instead wait until the update_extra
  method is called.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8809 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years ago* Add a VG_(sizeSWA) function
sewardj [Sat, 6 Dec 2008 23:34:52 +0000 (23:34 +0000)]
* Add a VG_(sizeSWA) function

* Fix spacing a bit

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8808 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUse the new SparseWA data type, rather than WordFM, to implement the
sewardj [Sat, 6 Dec 2008 22:10:54 +0000 (22:10 +0000)]
Use the new SparseWA data type, rather than WordFM, to implement the
(primary) mapping of the conflicting-access mechanism.  This speeds
up Helgrind by 0% to 30% depending on the workload.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8807 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAdd a new container data type, a Sparse Word Array: an array of UWord
sewardj [Sat, 6 Dec 2008 22:07:35 +0000 (22:07 +0000)]
Add a new container data type, a Sparse Word Array: an array of UWord
which is also indexed by UWord.  This can be used as a replacement for
WordFM with unboxed keys, when the key ranges are dense.  It is
implemented as a 256-way radix tree (4-deep on 32-bit platforms,
8-deep on 64-bit platforms).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8806 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoFollowup to vx1875: use .guest_amd64_assume_fs_is_zero == True on
sewardj [Thu, 4 Dec 2008 00:07:30 +0000 (00:07 +0000)]
Followup to vx1875: use .guest_amd64_assume_fs_is_zero == True on
amd64-linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8805 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoAssert that the guest state size is a multiple of 16, not 8.
sewardj [Wed, 3 Dec 2008 21:31:48 +0000 (21:31 +0000)]
Assert that the guest state size is a multiple of 16, not 8.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8804 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoChange the memory allocation strategy used by the conflicting-access
sewardj [Wed, 3 Dec 2008 11:39:37 +0000 (11:39 +0000)]
Change the memory allocation strategy used by the conflicting-access
machinery, so as to allocate fewer chunks of memory.  This increases
the speed of Helgrind by about 10% on some apps, which probably means
the conflicting-access machinery itself is about 20% faster.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8803 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoSimplified test program.
bart [Thu, 27 Nov 2008 17:48:36 +0000 (17:48 +0000)]
Simplified test program.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8802 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoupdate bug status
dirk [Sat, 22 Nov 2008 23:35:32 +0000 (23:35 +0000)]
update bug status

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8801 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoReran SPLASH2 benchmark and updated results.
bart [Sat, 22 Nov 2008 16:19:11 +0000 (16:19 +0000)]
Reran SPLASH2 benchmark and updated results.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8799 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoignore .valgrindrc files that are world writeable
dirk [Sat, 22 Nov 2008 12:03:19 +0000 (12:03 +0000)]
ignore .valgrindrc files that are world writeable
or not owned by the current user (CVE-2008-4865)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8798 a5019735-40e9-0310-863c-91ae7b9d1cf9

9 years agoUpdated notes section.
bart [Fri, 21 Nov 2008 19:18:47 +0000 (19:18 +0000)]
Updated notes section.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8797 a5019735-40e9-0310-863c-91ae7b9d1cf9