]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoA bit of tidying up:
Julian Seward [Sat, 8 Nov 2008 20:36:26 +0000 (20:36 +0000)] 
A bit of tidying up:

* get rid of 'struct _EC' (a.k.a 'struct EC_') and use ExeContext
  everywhere

* remove stacktrace_to_EC and call
  VG_(make_ExeContext_from_StackTrace) directly

* comment out some unused code

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

16 years agoUpdate.
Julian Seward [Sat, 8 Nov 2008 15:26:53 +0000 (15:26 +0000)] 
Update.

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

16 years agoWhen trying to establish whether or not debuginfo should be read from
Julian Seward [Sat, 8 Nov 2008 15:22:19 +0000 (15:22 +0000)] 
When trying to establish whether or not debuginfo should be read from
a file, first the mapping permissions _before_ peering at the file's
header, rather than afterwards.  This changes the logic to behave more
like it does in 3.3.x.  Fixes #164669, although really it is all still
rather fragile.  The bug report,
http://bugs.kde.org/show_bug.cgi?id=164669, contains a detailed
explanation.

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

16 years agoUpdate expected output, with a line number that's actually correct.
Julian Seward [Sat, 8 Nov 2008 15:18:53 +0000 (15:18 +0000)] 
Update expected output, with a line number that's actually correct.

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

16 years agoAdd a second expected output. It appears that a recent glibcs print
Julian Seward [Sat, 8 Nov 2008 15:17:50 +0000 (15:17 +0000)] 
Add a second expected output.  It appears that a recent glibcs print
one (or a value near it) as "+1.0000e+00" instead of "+1.0000e-00".
Or it could be a rounding issue .. I dunno.

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

16 years agoAttempt to reduce output variance by ensuring mainSort() is never inlined.
Julian Seward [Sat, 8 Nov 2008 15:15:06 +0000 (15:15 +0000)] 
Attempt to reduce output variance by ensuring mainSort() is never inlined.

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

16 years agoUse a "sided" comparison rather than a "point" comparison, so as to
Julian Seward [Sat, 8 Nov 2008 15:14:01 +0000 (15:14 +0000)] 
Use a "sided" comparison rather than a "point" comparison, so as to
ensure that gcc generates only one conditional jump per conditional
expression, not two.

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

16 years agoUpdate expected output now that Memcheck's realloc implementation always
Julian Seward [Sat, 8 Nov 2008 15:12:48 +0000 (15:12 +0000)] 
Update expected output now that Memcheck's realloc implementation always
moves the block, even when the new block is smaller or the same size.

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

16 years agoSigh: /bin/sh on Ubuntu is not bash, it is dash (what a nuisance) and
Julian Seward [Sat, 8 Nov 2008 15:11:03 +0000 (15:11 +0000)] 
Sigh: /bin/sh on Ubuntu is not bash, it is dash (what a nuisance) and
it doesn't do the "[ ]" thing itself; instead it hands it off to
/usr/bin/[.  And that doesn't understand "==" on strings; it wants "="
instead.

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

16 years agoAdd a new expected output for this test. Really it's a bad test,
Julian Seward [Sat, 8 Nov 2008 15:06:57 +0000 (15:06 +0000)] 
Add a new expected output for this test.  Really it's a bad test,
in the sense that there are a huge number of valid outcomes, but
I'm not sure how to test it better.

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

16 years agoUpdate expected output.
Julian Seward [Sat, 8 Nov 2008 15:05:49 +0000 (15:05 +0000)] 
Update expected output.

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

16 years agoRun this test -q, so as to remove the variance in outputs exhibited as
Julian Seward [Sat, 8 Nov 2008 15:04:58 +0000 (15:04 +0000)] 
Run this test -q, so as to remove the variance in outputs exhibited as
different numbers of blank lines than expected.  I assume this
signifies that different numbers of forked-but-not-exec'd processes
are exiting, but I'm not sure.

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

16 years agoMark allocation operators as no-inline so as to make the test more
Julian Seward [Sat, 8 Nov 2008 15:01:22 +0000 (15:01 +0000)] 
Mark allocation operators as no-inline so as to make the test more
repeatable across different gccs.

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

16 years agoSupport sys_stime on x86-linux. Fixes #159285.
Julian Seward [Thu, 6 Nov 2008 23:11:42 +0000 (23:11 +0000)] 
Support sys_stime on x86-linux.  Fixes #159285.

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

16 years agoFix integer-pointer comparisons in new spu_ wrappers.
Julian Seward [Thu, 6 Nov 2008 09:22:50 +0000 (09:22 +0000)] 
Fix integer-pointer comparisons in new spu_ wrappers.

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

16 years agoAdd ioctl wrappers for Linux wireless extensions version 22.
Julian Seward [Wed, 5 Nov 2008 16:59:55 +0000 (16:59 +0000)] 
Add ioctl wrappers for Linux wireless extensions version 22.
Patch from Gwenael Lambrouin.  Fixes #159452.

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

16 years agoUpdate.
Julian Seward [Wed, 5 Nov 2008 12:46:43 +0000 (12:46 +0000)] 
Update.

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

16 years agoTry to compute a correct VG base directory, regardless of how/where
Julian Seward [Wed, 5 Nov 2008 12:05:14 +0000 (12:05 +0000)] 
Try to compute a correct VG base directory, regardless of how/where
the script is invoked.  See #162092.

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

16 years agoSupport sys_spu_run and sys_spu_create on ppc32-linux. Patch by
Julian Seward [Wed, 5 Nov 2008 11:36:59 +0000 (11:36 +0000)] 
Support sys_spu_run and sys_spu_create on ppc32-linux.  Patch by
Kenneth Skovhede.  Fixes #167288.

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

16 years agoSupport sys_pipe2 on {amd64,x86}-linux. Also, update syscall numbers
Julian Seward [Wed, 5 Nov 2008 11:20:59 +0000 (11:20 +0000)] 
Support sys_pipe2 on {amd64,x86}-linux.  Also, update syscall numbers
for all supported Linuxes to those in linux-2.6.28-rc3.

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

16 years agoMake sure that $d is always an absolute path, even if vg-in-place has been started...
Bart Van Assche [Tue, 4 Nov 2008 17:49:58 +0000 (17:49 +0000)] 
Make sure that $d is always an absolute path, even if vg-in-place has been started without specifying a path. Furthermore, vg-in-place now also works when started from a path containing spaces.

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

16 years agoUpdated ignore lists.
Bart Van Assche [Tue, 4 Nov 2008 17:42:00 +0000 (17:42 +0000)] 
Updated ignore lists.

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

16 years ago* add some assertions to frame-level wildcarding mechanism
Julian Seward [Tue, 4 Nov 2008 11:29:19 +0000 (11:29 +0000)] 
* add some assertions to frame-level wildcarding mechanism

* remove a couple of tabs

* clarify related documentation a bit

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

16 years agoUpdate documentation on suppressions following addition of frame-level
Julian Seward [Tue, 4 Nov 2008 01:38:02 +0000 (01:38 +0000)] 
Update documentation on suppressions following addition of frame-level
wildcarding in suppressions (r8725).  Also clarify a couple of bits of
wording.

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

16 years agoImprovements to the suppression mechanism:
Julian Seward [Mon, 3 Nov 2008 23:10:25 +0000 (23:10 +0000)] 
Improvements to the suppression mechanism:

* Allow frame-level wildcarding in suppressions.  Based on a patch by
  Akos PASZTORY.  Fixes #151612.  With this change, a line "..." in a
  suppression stacktrace matches any number of frames, including zero.

* Show line numbers in syntax errors when parsing supp files.

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

16 years agoAdd summaries for more than 60 bugs logged in bugzilla since 3.3.1 was
Julian Seward [Sun, 2 Nov 2008 23:46:32 +0000 (23:46 +0000)] 
Add summaries for more than 60 bugs logged in bugzilla since 3.3.1 was
released.  Looking at this lot, you'd get the impression the system is
so bug-riddled it's amazing it works at all.

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

16 years agoFixes for compilation warnings from the apparently very strict
Julian Seward [Sat, 1 Nov 2008 23:55:32 +0000 (23:55 +0000)] 
Fixes for compilation warnings from the apparently very strict
gcc-4.3.2 shipped with Ubuntu 8.10.

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

16 years agoGet rid of longstanding and now pointless restriction that disallowed
Julian Seward [Thu, 30 Oct 2008 13:26:29 +0000 (13:26 +0000)] 
Get rid of longstanding and now pointless restriction that disallowed
using --db-attach=yes and --trace-children=yes together.

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

16 years agoAdd notes on how to build/run KDE 4.2.
Julian Seward [Thu, 30 Oct 2008 13:17:35 +0000 (13:17 +0000)] 
Add notes on how to build/run KDE 4.2.

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

16 years agoEnable sys_quotactl on amd64-linux. Possible fixes #173177.
Julian Seward [Thu, 30 Oct 2008 13:12:50 +0000 (13:12 +0000)] 
Enable sys_quotactl on amd64-linux.  Possible fixes #173177.

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

16 years agoOrigin tracking: handle 16-bit excess in guest state reads/writes.
Julian Seward [Thu, 30 Oct 2008 13:08:31 +0000 (13:08 +0000)] 
Origin tracking: handle 16-bit excess in guest state reads/writes.
This gets rid of the messages "Approx: do_origins_Dirty(R): missed %d
bytes\n" and "Approx: do_origins_Dirty(W): missed %d bytes\n".

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

16 years agoAdd a test case for #156404 (main thread stack not getting extended
Julian Seward [Thu, 30 Oct 2008 11:11:40 +0000 (11:11 +0000)] 
Add a test case for #156404 (main thread stack not getting extended
downwards properly at syscalls).

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

16 years agoA clarification.
Nicholas Nethercote [Thu, 30 Oct 2008 02:41:13 +0000 (02:41 +0000)] 
A clarification.

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

16 years agoHandle a couple of syscalls needed to make Ptrcheck run bash.
Julian Seward [Thu, 30 Oct 2008 01:44:03 +0000 (01:44 +0000)] 
Handle a couple of syscalls needed to make Ptrcheck run bash.

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

16 years agoRename some local variables called 'index' to something else, to stop
Julian Seward [Mon, 27 Oct 2008 21:42:36 +0000 (21:42 +0000)] 
Rename some local variables called 'index' to something else, to stop
gcc-3.2.2 complaining they shadow some built-in global declaration of
'index'.

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

16 years agoFix #includes in some more libiberty files that seem to have been
Julian Seward [Mon, 27 Oct 2008 09:54:14 +0000 (09:54 +0000)] 
Fix #includes in some more libiberty files that seem to have been
forgotten about in r8710.  This should _really_ make the revised
demangler independent of any system installed libiberty.

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

16 years agoSpeed up VG_(am_find_nsegment). This is kind-of required by r8712,
Julian Seward [Mon, 27 Oct 2008 01:25:14 +0000 (01:25 +0000)] 
Speed up VG_(am_find_nsegment).  This is kind-of required by r8712,
which in turn is a fix for #156404.

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

16 years agoEnsure the root thread's stack is suitably mapped before doing a
Julian Seward [Mon, 27 Oct 2008 01:23:04 +0000 (01:23 +0000)] 
Ensure the root thread's stack is suitably mapped before doing a
client syscall.  Believed to fix #156404.

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

16 years agoRe-copy r3515 into new demangler: "Deal with apparently non-cfront
Julian Seward [Sun, 26 Oct 2008 11:59:03 +0000 (11:59 +0000)] 
Re-copy r3515 into new demangler: "Deal with apparently non-cfront
compliant new[]/delete[] manglings generated by the Portland Group's
C++ compiler."

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

16 years agoUpdate the C++ demangler to that from libiberty in the gcc svn trunk,
Julian Seward [Sun, 26 Oct 2008 11:53:30 +0000 (11:53 +0000)] 
Update the C++ demangler to that from libiberty in the gcc svn trunk,
rev 141363.

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

16 years agoFix references to undefined labels. Why was ld even prepared to link
Julian Seward [Sun, 26 Oct 2008 11:06:44 +0000 (11:06 +0000)] 
Fix references to undefined labels.  Why was ld even prepared to link
this before?

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

16 years agoMerge howto_profile.txt from branches/YARD and BIG_APP_NOTES.txt from
Julian Seward [Sat, 25 Oct 2008 16:30:38 +0000 (16:30 +0000)] 
Merge howto_profile.txt from branches/YARD and BIG_APP_NOTES.txt from
branches/HGDEV.

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

16 years agoMerge Helgrind from branches/YARD into the trunk. Also includes some
Julian Seward [Sat, 25 Oct 2008 16:22:41 +0000 (16:22 +0000)] 
Merge Helgrind from branches/YARD into the trunk.  Also includes some
minor changes to make stack unwinding on amd64-linux approximately
twice as fast as it was before.

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

16 years agoUpdate
Josef Weidendorfer [Fri, 24 Oct 2008 19:17:52 +0000 (19:17 +0000)] 
Update

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

16 years agoCallgrind manual: add section on client requests and note about fork().
Josef Weidendorfer [Fri, 24 Oct 2008 18:50:04 +0000 (18:50 +0000)] 
Callgrind manual: add section on client requests and note about fork().

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

16 years agoFix for bug 166581: use correct output file name after PID change
Josef Weidendorfer [Fri, 24 Oct 2008 18:50:00 +0000 (18:50 +0000)] 
Fix for bug 166581: use correct output file name after PID change

This is a little tricky because
* we want to check directly at startup whether the output file
  can be written, thus the file name is set at beginning.
* a fork changes the PID in the child, and thus (potentially) the
  output file name has to be updated. This best is directly before
  generating the profile dump.
* the child after fork needs to be controllable via callgrind_control.
  The setup of the control interface needs the new file name, too.
The fix is to allow multiple calls of CLG(init_dumps), everytime the
output file name is needed.

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

16 years agoRemove old text-mode only version of the documentation.
Julian Seward [Thu, 23 Oct 2008 22:16:41 +0000 (22:16 +0000)] 
Remove old text-mode only version of the documentation.

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

16 years agoXML-ise exp-ptrcheck's documentation.
Julian Seward [Thu, 23 Oct 2008 13:15:23 +0000 (13:15 +0000)] 
XML-ise exp-ptrcheck's documentation.

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

16 years agoget_Form_contents: handle DW_FORM_block2.
Julian Seward [Thu, 23 Oct 2008 11:13:05 +0000 (11:13 +0000)] 
get_Form_contents: handle DW_FORM_block2.

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

16 years agoTolerate apparently broken Dwarf3 generated by gcc (GCC) 4.4.0
Julian Seward [Thu, 23 Oct 2008 10:54:40 +0000 (10:54 +0000)] 
Tolerate apparently broken Dwarf3 generated by gcc (GCC) 4.4.0
20081017 (experimental): accept DW_TAG_enumerator with only a
DW_AT_name but no DW_AT_const_value.  This is in violation of the
Dwarf3 standard.

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

16 years agoAdd further zlib suppressions.
Julian Seward [Thu, 23 Oct 2008 10:16:02 +0000 (10:16 +0000)] 
Add further zlib suppressions.

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

16 years agoRead suppression files in 256 byte chunks, not 64 byte chunks.
Julian Seward [Thu, 23 Oct 2008 10:15:37 +0000 (10:15 +0000)] 
Read suppression files in 256 byte chunks, not 64 byte chunks.

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

16 years agogcc-4.4.0 (snapshot) started complaining about buf.sem_nsems being
Julian Seward [Thu, 23 Oct 2008 09:46:59 +0000 (09:46 +0000)] 
gcc-4.4.0 (snapshot) started complaining about buf.sem_nsems being
uninitialised in get_sem_count().  This makes it quiet.  I am not sure
whether get_sem_count() was correct or not without it (probably was
OK).

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

16 years agoDon't assert on icc9 generated Dwarf3.
Julian Seward [Wed, 22 Oct 2008 15:49:59 +0000 (15:49 +0000)] 
Don't assert on icc9 generated Dwarf3.

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

16 years agoImprove suppressions for zlib-1.2.x. Needs further work, but this
Julian Seward [Wed, 22 Oct 2008 09:21:09 +0000 (09:21 +0000)] 
Improve suppressions for zlib-1.2.x.  Needs further work, but this
is a start.

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

16 years agoUpdated expected output following changes in r8689.
Julian Seward [Wed, 22 Oct 2008 08:51:37 +0000 (08:51 +0000)] 
Updated expected output following changes in r8689.

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

16 years agoMake VG_(dup2) compile on AIX.
Julian Seward [Wed, 22 Oct 2008 00:57:29 +0000 (00:57 +0000)] 
Make VG_(dup2) compile on AIX.

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

16 years agoTrack recent AIX 5.3 updates.
Julian Seward [Wed, 22 Oct 2008 00:56:53 +0000 (00:56 +0000)] 
Track recent AIX 5.3 updates.

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

16 years agoUpdate.
Julian Seward [Tue, 21 Oct 2008 23:15:39 +0000 (23:15 +0000)] 
Update.

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

16 years agoDon't simply break the build if gcc doesn't provide the require primitives on ppc.
Julian Seward [Tue, 21 Oct 2008 23:12:56 +0000 (23:12 +0000)] 
Don't simply break the build if gcc doesn't provide the require primitives on ppc.

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

16 years ago* intercept stpcpy
Julian Seward [Tue, 21 Oct 2008 23:11:38 +0000 (23:11 +0000)] 
* intercept stpcpy
* reorder declarations to make them be the same as in mc_replace_strmem.c.

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

16 years agoHandle ppc32/64 VRSAVE accesses.
Julian Seward [Tue, 21 Oct 2008 23:10:18 +0000 (23:10 +0000)] 
Handle ppc32/64 VRSAVE accesses.

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

16 years agoUpdate suppressions.
Julian Seward [Tue, 21 Oct 2008 23:09:25 +0000 (23:09 +0000)] 
Update suppressions.

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

16 years agoOn ppc32/64 we don't have a reliable way to detect function entries
Julian Seward [Mon, 20 Oct 2008 23:33:49 +0000 (23:33 +0000)] 
On ppc32/64 we don't have a reliable way to detect function entries
and exits at the moment.  So disable stack array bounds checking for
ppc32/64 platforms.  Also (unnecessarily) disables global array bounds
checking on those platforms.

Add a flag --enable-sg-checks=no|yes [yes] so that stack and global
checking can be optionally disabled on any platform.  This is useful
because stack and global checking is much more expensive than heap
checking, and so it may be desirable to disable it.

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

16 years agoFutz with debug printing.
Julian Seward [Mon, 20 Oct 2008 22:27:52 +0000 (22:27 +0000)] 
Futz with debug printing.

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

16 years agoChange the default PIE load address from 0x100000 (1MB) to 0x108000,
Julian Seward [Mon, 20 Oct 2008 22:24:31 +0000 (22:24 +0000)] 
Change the default PIE load address from 0x100000 (1MB) to 0x108000,
to keep ppc32-linux happy.

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

16 years agoDwarf3 variable & type reader: use 64-bit numbers throughout to
Julian Seward [Mon, 20 Oct 2008 16:08:55 +0000 (16:08 +0000)] 
Dwarf3 variable & type reader: use 64-bit numbers throughout to
represent the sizes of types, even on 32-bit hosts, where a type with
a size >= 2^32 is, well, if not meaningless, then at least impossible
to instantiate.  This is of course motivated by reality .. on ppc32
SUSE11.0, the debuginfo for glibc-2.8 appears to contain a declaration
amounting to

  char __EH_FRAME_BEGIN__ [4294967296]

Really.

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

16 years agoAdjust line spacing following r8645, so that .stderr output is
Julian Seward [Mon, 20 Oct 2008 11:29:51 +0000 (11:29 +0000)] 
Adjust line spacing following r8645, so that .stderr output is
as expected once again.

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

16 years agoAdd a not very good test pertaining to the preening of global Invars
Julian Seward [Mon, 20 Oct 2008 11:14:50 +0000 (11:14 +0000)] 
Add a not very good test pertaining to the preening of global Invars
upon unmapping of a shared object, in sg_main.c.

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

16 years agoSupport a couple more syscalls needed for running KDE4 stuff on amd64-linux.
Julian Seward [Mon, 20 Oct 2008 10:30:08 +0000 (10:30 +0000)] 
Support a couple more syscalls needed for running KDE4 stuff on amd64-linux.

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

16 years agoRe-enable preening of global invariants. (This happens when a .so is
Julian Seward [Mon, 20 Oct 2008 10:25:16 +0000 (10:25 +0000)] 
Re-enable preening of global invariants.  (This happens when a .so is
unmapped, and that .so contains global variables that were accessed
while it was mapped in.)

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

16 years agoSet average translation size plausibly, so as to avoid excessive
Julian Seward [Mon, 20 Oct 2008 10:23:46 +0000 (10:23 +0000)] 
Set average translation size plausibly, so as to avoid excessive
retranslations caused by the default size.

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

16 years agoMerge (from branches/PTRCHECK r8599) a suppression file for exp-ptrcheck.
Julian Seward [Sun, 19 Oct 2008 18:58:13 +0000 (18:58 +0000)] 
Merge (from branches/PTRCHECK r8599) a suppression file for exp-ptrcheck.

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

16 years agoget_Seg_containing_addr() (in h_main.c): remove naive algorithm that
Julian Seward [Sat, 18 Oct 2008 19:55:31 +0000 (19:55 +0000)] 
get_Seg_containing_addr() (in h_main.c): remove naive algorithm that
searches through all live Segs and replace it with one which is O(log
N) in the number of live Segs.

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

16 years agoRemove five carriage returns introduced in r8665, so the expected outputs
Julian Seward [Sat, 18 Oct 2008 19:16:57 +0000 (19:16 +0000)] 
Remove five carriage returns introduced in r8665, so the expected outputs
match the actual outputs again.

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

16 years agoReplaced test for FILE::_lock by a more direct test.
Bart Van Assche [Mon, 13 Oct 2008 19:22:35 +0000 (19:22 +0000)] 
Replaced test for FILE::_lock by a more direct test.

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

16 years ago- Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
Nicholas Nethercote [Mon, 13 Oct 2008 04:19:15 +0000 (04:19 +0000)] 
- Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
  tools.
- Factor out 'execv' from 'system' and expose it to tools.

Partly based on a patch from Robert O'Callahan.

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

16 years agoPatch from Robert O'Callahan:
Nicholas Nethercote [Sun, 12 Oct 2008 19:53:28 +0000 (19:53 +0000)] 
Patch from Robert O'Callahan:

  create and expose 'dup2'

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

16 years agoPatch from Robert O'Callahan:
Nicholas Nethercote [Sun, 12 Oct 2008 19:51:41 +0000 (19:51 +0000)] 
Patch from Robert O'Callahan:

  make realloc(NULL, size) behave like malloc(size), and make
  realloc(ptr, 0) behave like free(ptr), as the real libc realloc does.

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

16 years agoAvoid warnings caused by mixed decls and code.
Nicholas Nethercote [Sun, 12 Oct 2008 19:50:51 +0000 (19:50 +0000)] 
Avoid warnings caused by mixed decls and code.

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

16 years agoAdded yet another suppression pattern.
Bart Van Assche [Sat, 11 Oct 2008 19:37:45 +0000 (19:37 +0000)] 
Added yet another suppression pattern.

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

16 years agoRemoved #define _IO_MTSAFE_IO again.
Bart Van Assche [Sat, 11 Oct 2008 19:25:18 +0000 (19:25 +0000)] 
Removed #define _IO_MTSAFE_IO again.

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

16 years agoRemoved inclusion of <bits/libc-lock.h>.
Bart Van Assche [Sat, 11 Oct 2008 19:04:40 +0000 (19:04 +0000)] 
Removed inclusion of <bits/libc-lock.h>.

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

16 years agoMake regression test output independent of the presence of glibc debug information.
Bart Van Assche [Sat, 11 Oct 2008 18:47:54 +0000 (18:47 +0000)] 
Make regression test output independent of the presence of glibc debug information.

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

16 years agoAdded check for the include file <bits/libc-lock.h>
Bart Van Assche [Sat, 11 Oct 2008 18:30:20 +0000 (18:30 +0000)] 
Added check for the include file <bits/libc-lock.h>

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

16 years agoSuppress race reports triggered by glibc's _IO_flockfile(FILE*) on stdout and stderr.
Bart Van Assche [Sat, 11 Oct 2008 18:29:46 +0000 (18:29 +0000)] 
Suppress race reports triggered by glibc's _IO_flockfile(FILE*) on stdout and stderr.

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

16 years agoIncreased gcc version to 4.3.2.
Bart Van Assche [Sat, 11 Oct 2008 18:28:34 +0000 (18:28 +0000)] 
Increased gcc version to 4.3.2.

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

16 years agoAdded paragraph "Using the POSIX Threads API Effectively."
Bart Van Assche [Sat, 11 Oct 2008 18:28:12 +0000 (18:28 +0000)] 
Added paragraph "Using the POSIX Threads API Effectively."

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

16 years agoAdded omp_printf regression test.
Bart Van Assche [Sat, 11 Oct 2008 18:04:52 +0000 (18:04 +0000)] 
Added omp_printf regression test.

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

16 years agoAdded command-line option -h.
Bart Van Assche [Sat, 11 Oct 2008 18:03:27 +0000 (18:03 +0000)] 
Added command-line option -h.

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

16 years agoget_IntRegInfo(x86): handle missing %bh case (Jim Clause)
Julian Seward [Sat, 11 Oct 2008 10:18:16 +0000 (10:18 +0000)] 
get_IntRegInfo(x86): handle missing %bh case (Jim Clause)

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

16 years agoUpdated ignore list.
Bart Van Assche [Mon, 6 Oct 2008 06:36:59 +0000 (06:36 +0000)] 
Updated ignore list.

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

16 years agoOnly call pthread_condattr_setclock() if it's available in libpthread.
Bart Van Assche [Mon, 6 Oct 2008 06:34:20 +0000 (06:34 +0000)] 
Only call pthread_condattr_setclock() if it's available in libpthread.

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

16 years agoAdded test for pthread_condattr_setclock().
Bart Van Assche [Mon, 6 Oct 2008 06:33:16 +0000 (06:33 +0000)] 
Added test for pthread_condattr_setclock().

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

16 years agoAdded a regression test called monitor_example.
Bart Van Assche [Sun, 5 Oct 2008 17:37:06 +0000 (17:37 +0000)] 
Added a regression test called monitor_example.

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

16 years agoIncreased source code portability.
Bart Van Assche [Sun, 28 Sep 2008 12:31:45 +0000 (12:31 +0000)] 
Increased source code portability.

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

16 years agoSummarized pthread-unwind suppression patterns.
Bart Van Assche [Sat, 27 Sep 2008 13:23:41 +0000 (13:23 +0000)] 
Summarized pthread-unwind suppression patterns.

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

16 years agoAdded one more suppression pattern related to pthread_cancel().
Bart Van Assche [Sat, 27 Sep 2008 13:14:06 +0000 (13:14 +0000)] 
Added one more suppression pattern related to pthread_cancel().

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

16 years agoUpdated svn:ignore properties.
Bart Van Assche [Sat, 27 Sep 2008 12:47:30 +0000 (12:47 +0000)] 
Updated svn:ignore properties.

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

16 years agoAdded suppression patterns related to pthread_cancel().
Bart Van Assche [Sat, 27 Sep 2008 12:43:52 +0000 (12:43 +0000)] 
Added suppression patterns related to pthread_cancel().

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