]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agomerge:
Julian Seward [Mon, 26 Jan 2009 12:41:31 +0000 (12:41 +0000)] 
merge:
r8957  The SG_GET_VERSION_NUM ioctl writes to memory rather than
       reading it.

r8958  The SG_GET_TIMEOUT ioctl doesn't write to memory - it returns the
       timeout via it's return value.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9066

16 years agomerge r8930 (Add signalfd4 support.)
Julian Seward [Mon, 26 Jan 2009 12:24:36 +0000 (12:24 +0000)] 
merge r8930 (Add signalfd4 support.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9065

16 years agomerge r8917 (Handle __NR_socketpair in Ptrcheck.)
Julian Seward [Mon, 26 Jan 2009 12:18:35 +0000 (12:18 +0000)] 
merge r8917 (Handle __NR_socketpair in Ptrcheck.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9064

16 years agoBump version number on 3_4_BRANCH.
Julian Seward [Mon, 5 Jan 2009 17:15:44 +0000 (17:15 +0000)] 
Bump version number on 3_4_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@8910

16 years agoSwizzle the external, to vex/branches/VEX_3_4_BRANCH.
Julian Seward [Sat, 3 Jan 2009 17:46:13 +0000 (17:46 +0000)] 
Swizzle the external, to vex/branches/VEX_3_4_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@8903

16 years agoMake a copy of trunk r8899, to form the start of 3_4_BRANCH.
Julian Seward [Sat, 3 Jan 2009 17:31:46 +0000 (17:31 +0000)] 
Make a copy of trunk r8899, to form the start of 3_4_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@8901

16 years agoLate entrant for 3.4.0 (sigh)
Julian Seward [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

16 years ago--> 3.4.0 (first attempt)
Julian Seward [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

16 years agoSuppress all races whose top frame is in libc.so. This is a not very
Julian Seward [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

16 years agoUpdated ignore list.
Bart Van Assche [Fri, 2 Jan 2009 17:49:17 +0000 (17:49 +0000)] 
Updated ignore list.

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

16 years agoPolished manual.
Bart Van Assche [Fri, 2 Jan 2009 13:29:32 +0000 (13:29 +0000)] 
Polished manual.

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

16 years agoAdd some more Intel cache configuration values needed for Atom
Tom Hughes [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

16 years agoRemove spurious newlines from messages.
Tom Hughes [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

16 years agoAdd some more Intel L2 and L3 cache configuration values.
Tom Hughes [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

16 years agoUpdated to do list.
Bart Van Assche [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

16 years agoSuppress any race that occurs in ld.so (just a single frame will do).
Julian Seward [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

16 years agoAdditional suppression patterns for glib.
Bart Van Assche [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

16 years agoMoved two define's, such that the ABIWARNING appears immediately before the enum...
Bart Van Assche [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

16 years agoMade sure that the file bar_trivial.stdout.exp gets included in the distribution...
Bart Van Assche [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

16 years agoSecond attempt at 3.4.0 RC1.
Julian Seward [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

16 years agoAdded a pthread suppression pattern and generalized a glib suppression pattern.
Bart Van Assche [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

16 years agoRenamed a variable and removed two statements that were commented out.
Bart Van Assche [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

16 years agoFinalise 3.4.0 RC1.
Julian Seward [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

16 years agoUn-break 'make dist'.
Julian Seward [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

16 years agoML_(addDiCfSI)(): truncate DiCfSI's that fall partially but not
Julian Seward [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

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

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

16 years agoBump the version stuff.
Julian Seward [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

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

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

16 years agoDisable the building of exp-omega, but don't rm it from the repo,
Julian Seward [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

16 years agoUpdate for 3.4.0 (imcomplete).
Julian Seward [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

16 years agoMinor futzing with the documentation.
Julian Seward [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

16 years agoAdd a couple more suppressions.
Julian Seward [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

16 years agoAdd an expected-output set for Ubuntu 8.04 (and 8.10) on amd64.
Julian Seward [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

16 years agoComment out unused code so as to get a warning free build.
Julian Seward [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

16 years agoUnbreak the build on aix5.
Julian Seward [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

16 years agoIgnore races that occur on data in .plt sections, as well as those
Julian Seward [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

16 years agoRationalise standard suppressions: get rid of vast amounts of
Julian Seward [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

16 years agoDuring instrumentation, handle Imbe_SnoopedStore{Begin,End} a bit more
Julian Seward [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

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

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

16 years agoUpdated after merge of Helgrind from YARD branch to trunk.
Bart Van Assche [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

16 years agoMinor updates for 3.4.0. Also fix a large number of missing <para>
Julian Seward [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

16 years agoFinish off updates to the Helgrind manual.
Julian Seward [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

16 years agoMore documentation updates. Urr. I knew there was a reason I'd been
Julian Seward [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

16 years agoPartial update of the Helgrind documentation (incomplete).
Julian Seward [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

16 years agoAdded prereq clause.
Bart Van Assche [Sun, 21 Dec 2008 17:44:32 +0000 (17:44 +0000)] 
Added prereq clause.

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

16 years agocircular_buffer test now passes on systems with and without built-in support for...
Bart Van Assche [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

16 years agoAdded a suppression pattern for the data races triggered by the glibc function fflush().
Bart Van Assche [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

16 years agoFixed bug in vector clock updating for semaphores with non-zero initial value.
Bart Van Assche [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

16 years agoAdded command-line option -n, which allows to disable locking.
Bart Van Assche [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

16 years agoReplaced regular increment by atomic increment.
Bart Van Assche [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

16 years agoMade config.h include path consistent with the other regression tests.
Bart Van Assche [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

16 years agoFixed typo: added missing right parentheses.
Bart Van Assche [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

16 years agoFinished renaming of boost_threads into boost_thread.
Bart Van Assche [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

16 years agoGeneralized the glibc _IO_file_xsputn suppression pattern. Added a suppression patter...
Bart Van Assche [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

16 years agoMove description of --read-var-info= from the "debugging options"
Julian Seward [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

16 years agoFollowing r8845, explicitly enable Dwarf3 variable/type info reading
Julian Seward [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

16 years agoVarious changes:
Julian Seward [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

16 years agoRearrange suppressions a bit, and add a couple more from David Faure.
Julian Seward [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

16 years agoUpdate expected outputs for glibc25-amd64.
Julian Seward [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

16 years agoUpdate the expected outputs following changes in Helgrind over the
Julian Seward [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

16 years agoCallgrind: add code pattern for runtime_resolve on OpenSuse11.0/x86
Josef Weidendorfer [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

16 years agoDon't apply cross-compilation patch during the nightly build any more,
Julian Seward [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

16 years agoMove the functionality from filter_threadnums into filter_stderr, so that
Julian Seward [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

16 years agoHG_(instrument): don't assert on Imbe_SnoopedStore{Begin,End}.
Julian Seward [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

16 years agoAdded another regression test.
Bart Van Assche [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

16 years agoFixed semaphore vector clock updating / simplified semaphore tracing.
Bart Van Assche [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

16 years agoFixed grammar / split a paragraph in two.
Bart Van Assche [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

16 years agoAdded a suppression pattern.
Bart Van Assche [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

16 years agoAdded a paragraph about the Boost.Thread library.
Bart Van Assche [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

16 years agoCreate rough entries for the 3.4.0 changes.
Julian Seward [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

16 years agoInclude new file (why-no-libc.txt) in the distro tarball.
Julian Seward [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

16 years agoFixed regression test tc20_verifywrap2, which was broken through r8829.
Bart Van Assche [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

16 years agoFix some format string mismatch warnings, associated with r8825.
Julian Seward [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

16 years agoAdd another magic constant to the Iex_Const case in isBogusAtom, as
Julian Seward [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

16 years agoAdd some useful info.
Nicholas Nethercote [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

16 years agoAdd support ioprio_get and wire up ioprio_set on all platforms.
Tom Hughes [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

16 years agoAdded more semaphore tracing info.
Bart Van Assche [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

16 years agoUpdate an FAQ to account for --track-origins=yes.
Nicholas Nethercote [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

16 years agoInclude vg-in-place in the distro tarball.
Julian Seward [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

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

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

16 years agoMake sure $mflag_primary is used in the tests for Boost and QtCore
Julian Seward [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

16 years agoAvoid causing an assertion failure in VG_(make_ExeContext_from_StackTrace)
Julian Seward [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

16 years agoAdd a couple of suppressions relating to unwinding the stack following
Julian Seward [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

16 years agoThis commit subtly changes the meaning of the values obtained via the
Julian Seward [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

16 years agoFix format string warning in PRE(sys_eventfd2).
Julian Seward [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

16 years agoAdd a new module, m_seqmatch, which does very simple sequence (regexp)
Julian Seward [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

16 years agoAdd support for eventfd2 (and wire up pipe2 on PPC platforms).
Tom Hughes [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

16 years agoAdded suppression pattern for random_r(), which is a.o. called by rand().
Bart Van Assche [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

16 years agoFix bug introduced by frame-level wildcarding changes for suppressions
Julian Seward [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

16 years agoDon't segfault the guest during a call MPI_Init(NULL,NULL), since
Julian Seward [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

16 years agoevent_map_lookup: when looking for a previous access to an address,
Julian Seward [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

16 years agoTidy up and comment sanity-checking code/configuration.
Julian Seward [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

16 years ago* In the conflicting-event mechanism, also record the size and
Julian Seward [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

16 years ago* Add a VG_(sizeSWA) function
Julian Seward [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

16 years agoUse the new SparseWA data type, rather than WordFM, to implement the
Julian Seward [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

16 years agoAdd a new container data type, a Sparse Word Array: an array of UWord
Julian Seward [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

16 years agoFollowup to vx1875: use .guest_amd64_assume_fs_is_zero == True on
Julian Seward [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

16 years agoAssert that the guest state size is a multiple of 16, not 8.
Julian Seward [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

16 years agoChange the memory allocation strategy used by the conflicting-access
Julian Seward [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

16 years agoSimplified test program.
Bart Van Assche [Thu, 27 Nov 2008 17:48:36 +0000 (17:48 +0000)] 
Simplified test program.

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