]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoAdded script filter_stderr_and_thread_no.
Bart Van Assche [Tue, 10 Mar 2009 09:19:26 +0000 (09:19 +0000)] 
Added script filter_stderr_and_thread_no.

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

16 years agoChange 'nightly' to print "(unchanged)" at the start of the email subject
Nicholas Nethercote [Tue, 10 Mar 2009 03:38:05 +0000 (03:38 +0000)] 
Change 'nightly' to print "(unchanged)" at the start of the email subject
line if the results are unchanged from 24 hours ago.  Makes it easier to see
(or filter) if results are unchanged.

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

16 years agoSome tweaks to make more tests pass, or get closer to passing, on
Nicholas Nethercote [Tue, 10 Mar 2009 03:34:00 +0000 (03:34 +0000)] 
Some tweaks to make more tests pass, or get closer to passing, on
--enable-only32bit builds on my Ubuntu box:

- For all tests, replace all operator new/new[]/delete/delete[] variants
  with a common form, eg. "...operator new...".  This makes
  exp-ptrcheck/tests/ccc and memcheck/tests/mismatches pass.

- For Helgrind tests, replace all libpthread paths with "/...libpthread...",
  as is done for libc paths.  This avoids problems when /lib32/libpthread.so
  is the path.  No extra tests pass, but many of them get a lot closer to
  passing.

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

16 years agoThis commit completely overhauls the leak checker. In particular:
Nicholas Nethercote [Mon, 9 Mar 2009 22:52:24 +0000 (22:52 +0000)] 
This commit completely overhauls the leak checker.  In particular:

- It heavily refactors the code:  uses better names for things, splits up
  complex functions that behaved very differently depending on how they were
  called, removes some redundancies, and generally makes it much simpler and
  easier to follow.

- It adds lots of comments, both inline, and also a big explanatory one at
  the top which makes it clear exactly how the leak checker works and also
  exactly what is meant by definite, possible, and indirect leaks.  It also
  has some ideas for future improvements.

- All tabs have been converted to spaces.

It also improves the functionality:

- Previously if you did --leak-check=summary, indirect and suppressed
  blocks were counted as definite leaks.  Now they are done properly, and so
  the summary results from --leak-check=summary match those from
  --leak-check=yes.

- Previously, some possibly reachable blocks were miscategorised as
  definitely reachable, because only the pointer to the block itself was
  considered, not any preceding pointers in the chain.  This is now fixed.

- Added memcheck/tests/leak-cases, which fully tests all the possible
  combinations of directly/indirectly reachable and possibly/definitely
  reachable.

And it improves the manual quite a bit, and the FAQ a little bit.

This doesn't fix the leak checker to handle MALLOCLIKE_BLOCK works that have
been taken from within malloc'd blocks, but I think I know how to do it and
hope to do so in a subsequent commit.

It also changes all instances of "<constant>memcheck</constant>" in the
Memcheck manual to "Memcheck", for consistency and because "Memcheck" is
easier to write.  There's one similar case for DRD but I didn't change that.

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

16 years agoKeep track of the svma and bias values for the debug data separately
Tom Hughes [Mon, 9 Mar 2009 09:19:03 +0000 (09:19 +0000)] 
Keep track of the svma and bias values for the debug data separately
as they may be different to those for other sections of the ELF file
if we have separated debug information and the main file has been
prelinked since they were split. Fixes bug #185816.

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

16 years agoReverted last commit (r9326) -- its commit message did not make sense.
Bart Van Assche [Sun, 8 Mar 2009 19:18:21 +0000 (19:18 +0000)] 
Reverted last commit (r9326) -- its commit message did not make sense.

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

16 years agoAdded vgopts: --var-info=yes.
Bart Van Assche [Sun, 8 Mar 2009 19:03:24 +0000 (19:03 +0000)] 
Added vgopts: --var-info=yes.

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

16 years agoFixed another unintended data race.
Bart Van Assche [Sun, 8 Mar 2009 19:02:59 +0000 (19:02 +0000)] 
Fixed another unintended data race.

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

16 years agoFixed an unintended data race in the bar_trivial test program.
Bart Van Assche [Sun, 8 Mar 2009 18:58:06 +0000 (18:58 +0000)] 
Fixed an unintended data race in the bar_trivial test program.

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

16 years agoRemove .exp64 files that are identical to their corresponding .exp files and
Nicholas Nethercote [Fri, 6 Mar 2009 02:58:12 +0000 (02:58 +0000)] 
Remove .exp64 files that are identical to their corresponding .exp files and
thus unnecessary.

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

16 years ago- Added more comments.
Bart Van Assche [Wed, 4 Mar 2009 19:26:47 +0000 (19:26 +0000)] 
- Added more comments.
- Removed DRD_() wrapper from around local functions and variables.
- Removed some obsolete code.

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

16 years agoRoll back accidental change that shouldn't have been in r9316.
Nicholas Nethercote [Wed, 4 Mar 2009 04:28:34 +0000 (04:28 +0000)] 
Roll back accidental change that shouldn't have been in r9316.

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

16 years agoThis should have been added to the last commit.
Nicholas Nethercote [Wed, 4 Mar 2009 04:18:33 +0000 (04:18 +0000)] 
This should have been added to the last commit.

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

16 years agotests/arch_test is currently being used for two purposes:
Nicholas Nethercote [Wed, 4 Mar 2009 04:15:16 +0000 (04:15 +0000)] 
tests/arch_test is currently being used for two purposes:
- by vg_regtest for determining if a directory name matches an architecture;
- by various .vgtest files for detecting x86/AMD64 features.

This commit splits it in two for the two different purposes, which makes
things clearer.

Specific changes

- Moved the x86/AMD64 feature detection stuff out of arch_test.c, and
  into the new x86_amd64_feature.c.  Updated the relevant .vgtest files for
  the change.

- In vg_regtest, now a prereq command must return 0 (prereq satisfied) or 1
  (prereq not satisfied).  Anything else makes vg_regtest abort.  This
  makes obvious any problems with prereq tests rather than just making the
  tests skip innocuously.  (We previously had exactly such a problem on the
  DARWIN branch;  the x86 feature detection tests caused segfaults so the
  tests were incorrectly skipped.  This change will catch any similar future
  problem.)

- Changed os_test from a script to a C program, matching cpu_test.

- Removed some unintentional darwin stuff from platform_test.

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

16 years agoRemove darwin code that crept into the trunk.
Nicholas Nethercote [Wed, 4 Mar 2009 01:23:04 +0000 (01:23 +0000)] 
Remove darwin code that crept into the trunk.

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

16 years agoUse "status" as the argname for 'exit' and 'exit_group'.
Nicholas Nethercote [Tue, 3 Mar 2009 05:39:23 +0000 (05:39 +0000)] 
Use "status" as the argname for 'exit' and 'exit_group'.

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

16 years agoMerge r9299..r9303 (various leak-check test fixes) from the DARWIN branch.
Nicholas Nethercote [Mon, 2 Mar 2009 05:11:06 +0000 (05:11 +0000)] 
Merge r9299..r9303 (various leak-check test fixes) from the DARWIN branch.

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

16 years agoGet rid of the second argument ("PtrdiffT debug_offset") to
Julian Seward [Sat, 28 Feb 2009 21:23:11 +0000 (21:23 +0000)] 
Get rid of the second argument ("PtrdiffT debug_offset") to
ML_(read_debuginfo_stabs) since it's always equal to di->text_bias.

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

16 years agoRemove dead code relating to interface versions.
Nicholas Nethercote [Fri, 27 Feb 2009 03:38:28 +0000 (03:38 +0000)] 
Remove dead code relating to interface versions.

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

16 years agoMerged r9287 (vgprintf fix) from the DARWIN branch.
Nicholas Nethercote [Fri, 27 Feb 2009 03:23:42 +0000 (03:23 +0000)] 
Merged r9287 (vgprintf fix) from the DARWIN branch.

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

16 years agoMerge r9285 (match-overrun fixes) from the DARWIN branch.
Nicholas Nethercote [Thu, 26 Feb 2009 22:38:42 +0000 (22:38 +0000)] 
Merge r9285 (match-overrun fixes) from the DARWIN branch.

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

16 years agoMerge r9283 (lackey testing fixes) from the DARWIN branch.
Nicholas Nethercote [Thu, 26 Feb 2009 22:26:45 +0000 (22:26 +0000)] 
Merge r9283 (lackey testing fixes) from the DARWIN branch.

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

16 years agoMake this pass on AIX (untested).
Nicholas Nethercote [Thu, 26 Feb 2009 22:09:53 +0000 (22:09 +0000)] 
Make this pass on AIX (untested).

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

16 years agoClean up the diff -u test a little.
Nicholas Nethercote [Thu, 26 Feb 2009 21:25:50 +0000 (21:25 +0000)] 
Clean up the diff -u test a little.

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

16 years agoMake the VKI_PAGE_SIZE conditional match that in m_vki.c.
Nicholas Nethercote [Thu, 26 Feb 2009 21:17:39 +0000 (21:17 +0000)] 
Make the VKI_PAGE_SIZE conditional match that in m_vki.c.

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

16 years agoPorted this test to ppc.
Bart Van Assche [Thu, 26 Feb 2009 17:50:14 +0000 (17:50 +0000)] 
Ported this test to ppc.

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

16 years agoBuilds again on powerpc.
Bart Van Assche [Thu, 26 Feb 2009 13:21:50 +0000 (13:21 +0000)] 
Builds again on powerpc.

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

16 years agorename a function
Nicholas Nethercote [Thu, 26 Feb 2009 04:02:03 +0000 (04:02 +0000)] 
rename a function

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

16 years agoAvoid a warning.
Nicholas Nethercote [Thu, 26 Feb 2009 03:56:48 +0000 (03:56 +0000)] 
Avoid a warning.

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

16 years agoAdd more testing to memcheck/tests/unit_libcbase.c.
Nicholas Nethercote [Thu, 26 Feb 2009 03:52:35 +0000 (03:52 +0000)] 
Add more testing to memcheck/tests/unit_libcbase.c.

Remove VG_(strcmp_ws) and VG_(strncmp_ws);  they're no longer needed by CLO
handling, and they're not much use elsewhere.

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

16 years agoRemove WERROR. It's not much use because getting Valgrind to build without
Nicholas Nethercote [Wed, 25 Feb 2009 23:19:46 +0000 (23:19 +0000)] 
Remove WERROR.  It's not much use because getting Valgrind to build without
errors on all platforms is very difficult.

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

16 years agoGeneralise a couple of Qt4 suppressions (David Faure).
Julian Seward [Wed, 25 Feb 2009 21:28:38 +0000 (21:28 +0000)] 
Generalise a couple of Qt4 suppressions (David Faure).

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

16 years agoUse 'diff -u' for regtests if it's supported, its output it much easier to
Nicholas Nethercote [Wed, 25 Feb 2009 04:57:56 +0000 (04:57 +0000)] 
Use 'diff -u' for regtests if it's supported, its output it much easier to
read than plain 'diff'.

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

16 years agoRemove toobig-allocs.c -- it was unreliable and didn't test any
Nicholas Nethercote [Wed, 25 Feb 2009 04:34:44 +0000 (04:34 +0000)] 
Remove toobig-allocs.c -- it was unreliable and didn't test any
functionality of note.

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

16 years agoMove memcheck/tests/x86/bug133694 into memcheck/tests/x86-linux -- it uses
Nicholas Nethercote [Wed, 25 Feb 2009 04:20:54 +0000 (04:20 +0000)] 
Move memcheck/tests/x86/bug133694 into memcheck/tests/x86-linux -- it uses
MAP_FIXED and so is highly unportable, and doesn't work on x86/Darwin.

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

16 years agoDelete memcheck/tests/zeropage. The original purpose of the test is no
Nicholas Nethercote [Wed, 25 Feb 2009 04:04:29 +0000 (04:04 +0000)] 
Delete memcheck/tests/zeropage.  The original purpose of the test is no
longer valid, as the comment indicates.  Furthermore it mmaps arbitrary bits
of address space and so is horribly unportable, and doesn't work on Darwin.

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

16 years agoatoll() is a terrible function -- you can't do any error checking with it.
Nicholas Nethercote [Wed, 25 Feb 2009 01:01:05 +0000 (01:01 +0000)] 
atoll() is a terrible function -- you can't do any error checking with it.
Some of our option processing code uses it.  This means that eg.
'--log-fd=9xxx' logs to fd 9, and '--log-fd=blahblahblah' logs to 0 (because
atoll() returns 0 if the string doesn't contain a number!)

It turns out that most of our option processing uses VG_(strtoll*) instead
of VG_(atoll).  The reason that not all of it does is that the
option-processing macros are underpowered -- they currently work well if you
just want to assign the value to a variable, eg:

        VG_BOOL_CLO(arg, "--heap",   clo_heap)
   else VG_BOOL_CLO(arg, "--stacks", clo_stacks)

   else VG_NUM_CLO(arg, "--heap-admin", clo_heap_admin)
   else VG_NUM_CLO(arg, "--depth",      clo_depth)

(This works because they are actually an if-statement, but it looks odd.)

VG_NUM_CLO uses VG_(stroll10).  But if you want to do any checking or
processing, you can't use those macros, leading to code like this:

      else if (VG_CLO_STREQN(9,  arg, "--log-fd=")) {
         log_to            = VgLogTo_Fd;
         VG_(clo_log_name) = NULL;
         tmp_log_fd        = (Int)VG_(atoll)(&arg[9]);
      }

So this commit:
- Improves the *_CLO_* macros so that they can be used in all circumstances.
  They're now just expressions (albeit ones with side-effects, setting the
  named variable appropriately).  Thus they can be used as if-conditions,
  and any post-checking or processing can occur in the then-statement.  And
  malformed numeric arguments (eg. --log-fd=foo) aren't accepted.  This also
  means you don't have to specify the lengths of any option strings anywhere
  (eg.  the 9 in the --log-fd example above).  The use of a wrong number
  caused at least one bug, in Massif.
- Updates all places where the macros were used.
- Updates Helgrind to use the *_CLO_* macros (it didn't use them).
- Updates Callgrind to use the *_CLO_* macros (it didn't use them), except
  for the more esoteric option names (those with numbers in the option
  name).  This allowed getUInt() and getUWord() to be removed.
- Improves the cache option parsing in Cachegrind and Callgrind -- now uses
  VG_(strtoll10)(), detects overflow, and is shorter.
- Uses INT instead of NUM in the macro names, to distinguish better vs. the
  DBL macro.
- Removes VG_(atoll*) and the few remaining uses -- they're wretched
  functions and VG_(strtoll*) should be used instead.
- Adds the VG_STREQN macro.
- Changes VG_BINT_CLO and VG_BHEX_CLO to abort if the given value is outside
  the range -- the current silent truncation is likely to cause confusion as
  much as anything.

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

16 years agoCallgrind: fix a few 'unused parameter' warnings
Josef Weidendorfer [Tue, 24 Feb 2009 12:26:53 +0000 (12:26 +0000)] 
Callgrind: fix a few 'unused parameter' warnings

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

16 years agoRemove a number of unused parameters, found with -Wunused-parameter.
Nicholas Nethercote [Tue, 24 Feb 2009 03:07:37 +0000 (03:07 +0000)] 
Remove a number of unused parameters, found with -Wunused-parameter.

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

16 years agoMinor performance optimization: reduced the number of client objects that are inspect...
Bart Van Assche [Mon, 23 Feb 2009 19:15:32 +0000 (19:15 +0000)] 
Minor performance optimization: reduced the number of client objects that are inspected during memory deallocation.

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

16 years agoDeclared those function arguments that are not modified as const.
Bart Van Assche [Mon, 23 Feb 2009 19:12:02 +0000 (19:12 +0000)] 
Declared those function arguments that are not modified as const.

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

16 years ago- handle a couple more syscalls, sys_fallocate and sys_getresuid32
Julian Seward [Mon, 23 Feb 2009 16:56:15 +0000 (16:56 +0000)] 
- handle a couple more syscalls, sys_fallocate and sys_getresuid32
- make suppressions for ld.so be a bit more aggressive

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

16 years agoUpdated expected output files.
Bart Van Assche [Mon, 23 Feb 2009 08:46:42 +0000 (08:46 +0000)] 
Updated expected output files.

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

16 years agoAnother 'make check' warning fix.
Nicholas Nethercote [Mon, 23 Feb 2009 07:28:54 +0000 (07:28 +0000)] 
Another 'make check' warning fix.

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

16 years agoMore 'make check' warning fixes.
Nicholas Nethercote [Mon, 23 Feb 2009 07:26:15 +0000 (07:26 +0000)] 
More 'make check' warning fixes.

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

16 years agoFix some more 'make check' warnings, ones that appear on non-Linux
Nicholas Nethercote [Mon, 23 Feb 2009 07:17:08 +0000 (07:17 +0000)] 
Fix some more 'make check' warnings, ones that appear on non-Linux
platforms.

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

16 years agoGet rid of all "make check" compile warnings, except for the ones from
Nicholas Nethercote [Mon, 23 Feb 2009 06:44:51 +0000 (06:44 +0000)] 
Get rid of all "make check" compile warnings, except for the ones from
fxtract.c.

Also, gets rid of some of the warnings that -Wextra finds in Massif.

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

16 years agoMerged part of r9234 (unit_libcbase improvements) from the DARWIN branch.
Nicholas Nethercote [Mon, 23 Feb 2009 04:16:56 +0000 (04:16 +0000)] 
Merged part of r9234 (unit_libcbase improvements) from the DARWIN branch.

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

16 years agoAdd missing __extension__ markings on a couple of clreqs.
Nicholas Nethercote [Mon, 23 Feb 2009 02:08:24 +0000 (02:08 +0000)] 
Add missing __extension__ markings on a couple of clreqs.

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

16 years agoA few more test/build changes.
Nicholas Nethercote [Mon, 23 Feb 2009 01:33:40 +0000 (01:33 +0000)] 
A few more test/build changes.

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

16 years agoSome more test/build cleanups missed in prior commits.
Nicholas Nethercote [Mon, 23 Feb 2009 01:18:06 +0000 (01:18 +0000)] 
Some more test/build cleanups missed in prior commits.

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

16 years agoCleanup this Makefile.am like other recent test Makefile.am files.
Nicholas Nethercote [Mon, 23 Feb 2009 01:03:06 +0000 (01:03 +0000)] 
Cleanup this Makefile.am like other recent test Makefile.am files.

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

16 years agoThis should have gone in with r9222.
Nicholas Nethercote [Mon, 23 Feb 2009 00:36:02 +0000 (00:36 +0000)] 
This should have gone in with r9222.

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

16 years agoUse dashes rather than underscores in library names (njn).
Julian Seward [Sun, 22 Feb 2009 23:40:31 +0000 (23:40 +0000)] 
Use dashes rather than underscores in library names (njn).

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

16 years agoTest files were being passed multiple arch options (eg. "-m32 -m64") when
Nicholas Nethercote [Sun, 22 Feb 2009 23:38:10 +0000 (23:38 +0000)] 
Test files were being passed multiple arch options (eg. "-m32 -m64") when
built.  This worked fine on the x86/Linux and AMD64/Linux but broke
ppc*/Linux.  This commit fixes the problem.  Thanks to Bart for spotting it.

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

16 years agoMerge a large chunk of r8949 (the part that moved fcntl and ioctl wrappers
Nicholas Nethercote [Sun, 22 Feb 2009 23:00:30 +0000 (23:00 +0000)] 
Merge a large chunk of r8949 (the part that moved fcntl and ioctl wrappers
out of syswrap-generic into syswrap-linux) from the DARWIN branch.

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

16 years agoFix an XML error spotted by Bart.
Nicholas Nethercote [Sun, 22 Feb 2009 22:25:31 +0000 (22:25 +0000)] 
Fix an XML error spotted by Bart.

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

16 years agoMake fcntl and fcntl64 wrappers more consistent.
Nicholas Nethercote [Sun, 22 Feb 2009 22:23:09 +0000 (22:23 +0000)] 
Make fcntl and fcntl64 wrappers more consistent.

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

16 years agoUpdated documentation.
Bart Van Assche [Sun, 22 Feb 2009 09:29:07 +0000 (09:29 +0000)] 
Updated documentation.

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

16 years agoAdded regression test for detection of unsynchronized pthread_barrier_wait() and...
Bart Van Assche [Sun, 22 Feb 2009 09:26:22 +0000 (09:26 +0000)] 
Added regression test for detection of unsynchronized pthread_barrier_wait() and pthread_barrier_delete() calls.

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

16 years ago- Bug fix: swapped order of VG_(OSetGen_Remove)() and
Bart Van Assche [Sat, 21 Feb 2009 16:17:50 +0000 (16:17 +0000)] 
- Bug fix: swapped order of VG_(OSetGen_Remove)() and
  (*p->any.cleanup)(p) such that the "first observed at" information is
  now included in error messages.
- Performance optimization: started using VG_(OSetGen_ResetIterAt)().

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

16 years agoUpdated test plan.
Bart Van Assche [Sat, 21 Feb 2009 16:13:50 +0000 (16:13 +0000)] 
Updated test plan.

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

16 years agoVG_(OSetGen_ResetIterAt)() now also works for OSet's that do not have an
Bart Van Assche [Sat, 21 Feb 2009 16:12:20 +0000 (16:12 +0000)] 
VG_(OSetGen_ResetIterAt)() now also works for OSet's that do not have an
explicit comparison function.

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

16 years agoChanges:
Bart Van Assche [Sat, 21 Feb 2009 15:27:04 +0000 (15:27 +0000)] 
Changes:
- pthread_barrier_wait() intercept now passes the information to the DRD
  tool whether or not this function returned
  PTHREAD_BARRIER_SERIAL_THREAD. This information is now displayed when
  the command-line option --trace-barrier=yes has been specified.
- Changed the cleanup functions for client objects that are called just
  before a thread stops into callback functions.
- Added DRD_(clientobj_delete_thread)().
- Removed DRD_(clientobj_resetiter)(void) and DRD_(clientobj_next)().
- Added test for race conditions between pthread_barrier_wait() and
  pthread_barrier_destroy() calls. An error message is now printed if
  this condition has been detected.
- Bug fix: pthread_barrier_delete() calls on barriers being waited upon
  are now reported.
- Removed DRD_() wrapper from around the name of some static variables and
  functions.

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

16 years agoUpdated svn:ignore property in multiple directories.
Bart Van Assche [Sat, 21 Feb 2009 09:45:38 +0000 (09:45 +0000)] 
Updated svn:ignore property in multiple directories.

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

16 years agoDocumentation updates.
Bart Van Assche [Sat, 21 Feb 2009 09:39:09 +0000 (09:39 +0000)] 
Documentation updates.

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

16 years agoFinished renaming of 'oset_test' into 'unit_oset'.
Bart Van Assche [Fri, 20 Feb 2009 19:53:50 +0000 (19:53 +0000)] 
Finished renaming of 'oset_test' into 'unit_oset'.

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

16 years agoMoved drd/tests/pth_barrier.c, drd/tests/rwlock_race.c and
Bart Van Assche [Fri, 20 Feb 2009 19:00:18 +0000 (19:00 +0000)] 
Moved drd/tests/pth_barrier.c, drd/tests/rwlock_race.c and
drd/tests/rwlock_test.c back to their original location.

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

16 years agoForgot to add this file in the last commit.
Nicholas Nethercote [Fri, 20 Feb 2009 06:37:52 +0000 (06:37 +0000)] 
Forgot to add this file in the last commit.

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

16 years ago- Add 'unit_libcbase', the beginnings of a unit test module for m_libcbase.
Nicholas Nethercote [Fri, 20 Feb 2009 06:10:44 +0000 (06:10 +0000)] 
- Add 'unit_libcbase', the beginnings of a unit test module for m_libcbase.
- Rename 'oset_test' as 'unit_oset' to make its meaning more clear.
- Remove VG_(atoll36), VG_(strtoll8)() and VG_(strtoll36)();  they're not
  used and so untested, but easy to crib from similar functions if they need
  to be added again later.

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

16 years agoUpdated cellbuzz configuration according to the changes made during the big upgrade...
Bart Van Assche [Thu, 19 Feb 2009 14:59:48 +0000 (14:59 +0000)] 
Updated cellbuzz configuration according to the changes made during the big upgrade of the Cellbuzz cluster in February 2009.

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

16 years agoVarious build system clean-ups and simplifications:
Nicholas Nethercote [Thu, 19 Feb 2009 09:52:05 +0000 (09:52 +0000)] 
Various build system clean-ups and simplifications:
- Created Makefile.tool-tests.am, put standard AM_CFLAGS et al for tests in
  it.
- A number of tests are shared between Helgrind and DRD.  They used to be
  built in both directories.  Now they are only built in helgrind/tests/,
  and the DRD .vgtest files just point to the executable in helgrind/tests/.
  Most of these (about 30) had the source files in helgrind/tests/;  I moved
  the three that were in drd/tests/ into helgrind/tests/ for consistency.
- Fixed rwlock_test, which was failing to run due to a wrong name in the
  .vgtest file.
- Removed remnants of unused 'hello' test for Memcheck.
- Avoided redundant flag specification in various places, esp.
  memcheck/tests/Makefile.am.
- Removed unnecessary _AIX guards in some Linux-only tests.

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

16 years agoMerged r9101 (make Massif tests work if VG_MIN_MALLOC_SZB==16) from the
Nicholas Nethercote [Wed, 18 Feb 2009 05:14:44 +0000 (05:14 +0000)] 
Merged r9101 (make Massif tests work if VG_MIN_MALLOC_SZB==16) from the
DARWIN branch, along with a few other minor things.

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

16 years agoFor the fdleak_* tests, completely remove the stack traces showing where
Nicholas Nethercote [Tue, 17 Feb 2009 06:55:10 +0000 (06:55 +0000)] 
For the fdleak_* tests, completely remove the stack traces showing where
file descriptors came into existence, because there's too much variation and
all the expected outputs are a pain.  This allows 16 fdleak_*.exp[234] files
to be removed.

Also remove an unnecessary newline in a tmp filename in fdleak_creat.c.

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

16 years agoIn the core, include malloc_usable_size() as one of the functions that must
Nicholas Nethercote [Tue, 17 Feb 2009 04:31:18 +0000 (04:31 +0000)] 
In the core, include malloc_usable_size() as one of the functions that must
be replaced if malloc() et al are replaced by a tool.  This is because
different tools implement the function in different ways.

Add an appropriate malloc_usable_size() replacement to each of Memcheck,
Helgrind, DRD, Ptrcheck, Massif.

Update memcheck/tests/malloc_usable and add massif/tests/malloc_usable.

Merged from the DARWIN branch.

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

16 years agoRemove unnecessary Memcheck test filters.
Nicholas Nethercote [Tue, 17 Feb 2009 00:47:10 +0000 (00:47 +0000)] 
Remove unnecessary Memcheck test filters.

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

16 years agoRemove unused filter scripts from DRD.
Nicholas Nethercote [Tue, 17 Feb 2009 00:32:58 +0000 (00:32 +0000)] 
Remove unused filter scripts from DRD.

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

16 years agoMerged r9185 (fix up getsockopt mess) from the DARWIN branch, minus the
Nicholas Nethercote [Tue, 17 Feb 2009 00:23:30 +0000 (00:23 +0000)] 
Merged r9185 (fix up getsockopt mess) from the DARWIN branch, minus the
Darwin-specific parts.

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

16 years ago- Updated copyright statements.
Bart Van Assche [Mon, 16 Feb 2009 19:43:56 +0000 (19:43 +0000)] 
- Updated copyright statements.
- Improved consistency of source file headers.

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

16 years agoJust as for the regression tests of other Valgrind tools, do not explicitly state...
Bart Van Assche [Mon, 16 Feb 2009 19:42:17 +0000 (19:42 +0000)] 
Just as for the regression tests of other Valgrind tools, do not explicitly state that these are licensed under the GPLv2 license but leave this implicit.

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

16 years agoStack traces for Memcheck's syscall param errors are terribly unreliable, so
Nicholas Nethercote [Mon, 16 Feb 2009 05:11:49 +0000 (05:11 +0000)] 
Stack traces for Memcheck's syscall param errors are terribly unreliable, so
I changed it to just filter the entire stack trace out for these errors (both
normal and XML cases).  The syscall name is still present in the error
string.  This allows a one or more alternative expected output files to be
removed for several tests, which is A Very Good Thing.

Also, I killed filter_test_paths because it was weird and clumsy and the
above change obviated most of its use and the remaining effects could be
achieved in other ways.

Also, I fixed up the scalar* tests a little and they now pass on my machine,
(and hopefully at least some other machines) for the first time ever!

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

16 years agoMerge r9175 (don't run inappropriate OS- and platform-specific tests) from
Nicholas Nethercote [Mon, 16 Feb 2009 00:42:10 +0000 (00:42 +0000)] 
Merge r9175 (don't run inappropriate OS- and platform-specific tests) from
the DARWIN branch.

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

16 years agodrd_bitmap_test compiles again.
Bart Van Assche [Sun, 15 Feb 2009 16:18:03 +0000 (16:18 +0000)] 
drd_bitmap_test compiles again.

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

16 years agoWrapped DRD_() macro around yet even more function names.
Bart Van Assche [Sun, 15 Feb 2009 15:59:20 +0000 (15:59 +0000)] 
Wrapped DRD_() macro around yet even more function names.

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

16 years agoWrapped DRD_() macro around even more function and variable names.
Bart Van Assche [Sun, 15 Feb 2009 14:46:17 +0000 (14:46 +0000)] 
Wrapped DRD_() macro around even more function and variable names.

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

16 years agoWrapped DRD_() macro around even more function names.
Bart Van Assche [Sun, 15 Feb 2009 14:18:02 +0000 (14:18 +0000)] 
Wrapped DRD_() macro around even more function names.

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

16 years agoChanged a global variable into a local variable.
Bart Van Assche [Sun, 15 Feb 2009 13:16:52 +0000 (13:16 +0000)] 
Changed a global variable into a local variable.

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

16 years agoWrapped DRD_() macro around thread-related function names.
Bart Van Assche [Sun, 15 Feb 2009 13:11:14 +0000 (13:11 +0000)] 
Wrapped DRD_() macro around thread-related function names.

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

16 years agoWrapped DRD_() macro around global and static variables in drd_thread.[ch].
Bart Van Assche [Sun, 15 Feb 2009 12:14:52 +0000 (12:14 +0000)] 
Wrapped DRD_() macro around global and static variables in drd_thread.[ch].

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

16 years agoWrapped DRD_() macro around all client object function names.
Bart Van Assche [Sun, 15 Feb 2009 11:34:57 +0000 (11:34 +0000)] 
Wrapped DRD_() macro around all client object function names.

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

16 years agoWrapped DRD_() macro around all barrier-related function names.
Bart Van Assche [Sun, 15 Feb 2009 11:00:29 +0000 (11:00 +0000)] 
Wrapped DRD_() macro around all barrier-related function names.

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

16 years agoRestored the previous method for passing arguments from the creator thread to the...
Bart Van Assche [Sun, 15 Feb 2009 10:40:44 +0000 (10:40 +0000)] 
Restored the previous method for passing arguments from the creator thread to the created thread, since the new approach made some regression tests fail. It is not yet clear to me why.

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

16 years agoAdded more comments / rearranged function order.
Bart Van Assche [Sun, 15 Feb 2009 10:38:37 +0000 (10:38 +0000)] 
Added more comments / rearranged function order.

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

16 years agoChanged the order of the function definitions.
Bart Van Assche [Sun, 15 Feb 2009 10:36:32 +0000 (10:36 +0000)] 
Changed the order of the function definitions.

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

16 years agoCleaned up the source code of the atomic_var regression test, without changing the...
Bart Van Assche [Sun, 15 Feb 2009 10:19:35 +0000 (10:19 +0000)] 
Cleaned up the source code of the atomic_var regression test, without changing the actual test.

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

16 years agoWrapped DRD_() macro around all segment function names.
Bart Van Assche [Sat, 14 Feb 2009 17:19:58 +0000 (17:19 +0000)] 
Wrapped DRD_() macro around all segment function names.

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

16 years agoWrapped DRD_() macro around all vector clock function names.
Bart Van Assche [Sat, 14 Feb 2009 16:55:19 +0000 (16:55 +0000)] 
Wrapped DRD_() macro around all vector clock function names.

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

16 years agoIntroduced more DRD_ prefixes.
Bart Van Assche [Sat, 14 Feb 2009 16:10:53 +0000 (16:10 +0000)] 
Introduced more DRD_ prefixes.

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

16 years agoUpdate the sed expressions that handle the output of ld --verbose:
Julian Seward [Sat, 14 Feb 2009 16:07:40 +0000 (16:07 +0000)] 
Update the sed expressions that handle the output of ld --verbose:

  GNU ld changed the output of ld --verbose recently, it used to emit:
  PROVIDE (__executable_start = 0x400000); . = 0x400000 + SIZEOF_HEADERS;

  and now emits:

  PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x08048000)); . = SEGMENT_START("text-segment", 0x08048000) + SIZEOF_HEADERS;

(Jakub Jelinek)

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

16 years agoRemoved configure test that is no longer used.
Bart Van Assche [Sat, 14 Feb 2009 15:48:23 +0000 (15:48 +0000)] 
Removed configure test that is no longer used.

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