]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoDRD: avoid triggering an assertion failure if a thread is canceled while waiting...
Bart Van Assche [Thu, 3 Mar 2011 19:59:20 +0000 (19:59 +0000)] 
DRD: avoid triggering an assertion failure if a thread is canceled while waiting inside pthread_mutex_lock(). Fixes #267413.

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

14 years agoFix minor documentation nits (Michael Snyder, msnyder@vmware.com)
Julian Seward [Mon, 28 Feb 2011 10:26:42 +0000 (10:26 +0000)] 
Fix minor documentation nits (Michael Snyder, msnyder@vmware.com)

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

14 years agorm pointless comment and #define.
Julian Seward [Mon, 28 Feb 2011 09:25:12 +0000 (09:25 +0000)] 
rm pointless comment and #define.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoFix sanity check crash in Helgrind. Partial fix for #255353.
Julian Seward [Mon, 28 Feb 2011 09:22:51 +0000 (09:22 +0000)] 
Fix sanity check crash in Helgrind.  Partial fix for #255353.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoDon't construct the LAOG at all when --track-lockorders=no (as opposed
Julian Seward [Mon, 28 Feb 2011 09:03:44 +0000 (09:03 +0000)] 
Don't construct the LAOG at all when --track-lockorders=no (as opposed
to previous behaviour, in which it was constructed but any resulting
errors were not shown, hence wasting CPU and memory.)  Partial fix
for #255353.  (Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoBack out r11568 (Add a new constructor for empty XArrays,
Julian Seward [Sun, 27 Feb 2011 23:53:32 +0000 (23:53 +0000)] 
Back out r11568 (Add a new constructor for empty XArrays,
VG_(newSizedXA)) since r11571 removes the only use of the
functionality that r11568 introduces.

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

14 years agoSimplify the implementation of VTS__tick. The previous version was
Julian Seward [Sun, 27 Feb 2011 23:39:53 +0000 (23:39 +0000)] 
Simplify the implementation of VTS__tick.  The previous version was
hard to understand, and had no comments re loop invariants etc.

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

14 years agoChange the representation of VTSs. Instead of using an XArray of
Julian Seward [Sun, 27 Feb 2011 23:04:12 +0000 (23:04 +0000)] 
Change the representation of VTSs.  Instead of using an XArray of
ScalarTSs, have the ScalarTS array as a trailing array directly on the
VTS structure.  This reduces the number of malloc'd blocks per VTS
from 3 to 1, since an XArray always requires 2 malloc'd blocks.  At
least for tc19_shadowmem this reduces the total amount of heap
turnover in Arena 'tool' by a factor of 3, and modestly improves
performance whilst modestly reducing overall memory use.

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

14 years agoScalability fix for Helgrind: reduce the size of ScalarTS (scalar
Julian Seward [Thu, 24 Feb 2011 15:25:24 +0000 (15:25 +0000)] 
Scalability fix for Helgrind: reduce the size of ScalarTS (scalar
timestamps) from 16 to 8 bytes.  This halves the size of vector
timestamps and reduces the amount of memory needed to run programs
that have many threads and/or many synchronisation events.

The tradeoff is that Helgrind must abort the run if the program
creates more than 2^20 (1.0e+6) threads or performs more than 2^44
(1.76e+13) synchronisation events.  Neither of these seem like a
significant limitation in practice.  It's easy to argue that a limit
of 2^44 synch events would take at a minimum, several CPU months on a
very fast machine.

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

14 years agoA scalability fix for Helgrind for running large workloads. When
Julian Seward [Wed, 23 Feb 2011 13:30:53 +0000 (13:30 +0000)] 
A scalability fix for Helgrind for running large workloads.  When
creating new vector timestamps (VTSs) via tick and join operations,
preallocate the underlying XArray of ScalarTSs (scalar timestamps) at
the likely final size, using new function VG_(newSizedXA) introduced
in r11558.  This reduces overall heap turnover (in VG_AR_TOOL) by a
factor of several.  Together with revs 11567 and 11568, it mitigates
the worst-case performance falloff in long runs that involve lots of
threads and lots of synchronisation events (a.k.a Vector timestamps).

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

14 years agoAdd a new constructor for empty XArrays, VG_(newSizedXA). This is
Julian Seward [Wed, 23 Feb 2011 13:22:24 +0000 (13:22 +0000)] 
Add a new constructor for empty XArrays, VG_(newSizedXA).  This is
identical to VG_(newXA) but allows passing in a size hint.  In the
case where the likely final size of the XArray is known at creation
time, this allows avoiding the repeated (implicit) resizing and
copying of the array as elements are added, which can save a vast
amount of dynamic memory allocation turnover.

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

14 years agoFix a scalability problem observed whilst running Helgrind on a large
Julian Seward [Wed, 23 Feb 2011 13:18:56 +0000 (13:18 +0000)] 
Fix a scalability problem observed whilst running Helgrind on a large
workload: when scanning a freelist of a given size for a big-enough
block (to allocate), don't scan all the way around the list.  Instead
give up after 100 blocks and try the freelist above.  The pathological
case (as observed) is that the freelist contains tens of thousands of
blocks, but all are too small for the current request, hence they are
all visited pointlessly.  If the new heuristic is used, the freelist
start point is moved along by one block, so that future searches
eventually inspect the entire freelist, just very slowly.

Also, some improvements to stats gathering, and rename of some
existing stats fields in struct Arena.

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

14 years agoRecord the repo-mangling magic invokations needed for a minor release.
Julian Seward [Thu, 17 Feb 2011 12:20:59 +0000 (12:20 +0000)] 
Record the repo-mangling magic invokations needed for a minor release.

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

14 years agoSync w/ 3_6_BRANCH.
Julian Seward [Thu, 17 Feb 2011 12:20:19 +0000 (12:20 +0000)] 
Sync w/ 3_6_BRANCH.

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

14 years agoReverted r11536 because it didn't have the desired effect - changing the behavior...
Bart Van Assche [Sun, 13 Feb 2011 07:55:36 +0000 (07:55 +0000)] 
Reverted r11536 because it didn't have the desired effect - changing the behavior of DRD on Darwin.

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

14 years agoMake ld.so:index redir mandatory for glibc-2.12 and later, on x86-linux.
Julian Seward [Fri, 11 Feb 2011 16:47:03 +0000 (16:47 +0000)] 
Make ld.so:index redir mandatory for glibc-2.12 and later, on x86-linux.
Also, improve the failure message a bit, so as to tell people what package
they need to install, in at least some cases.

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

14 years agoRemoved an unused variable.
Bart Van Assche [Thu, 10 Feb 2011 21:09:25 +0000 (21:09 +0000)] 
Removed an unused variable.

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

14 years agoDRD: don't inline pthread intercepts because in combination with the current fragile...
Bart Van Assche [Thu, 10 Feb 2011 21:03:47 +0000 (21:03 +0000)] 
DRD: don't inline pthread intercepts because in combination with the current fragile implementation of the CALL_FN_* macros inlining intercepts can easily trigger stack alignment errors on Darwin.

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

14 years agoRefined a comment in the NEWS file.
Bart Van Assche [Thu, 10 Feb 2011 20:59:51 +0000 (20:59 +0000)] 
Refined a comment in the NEWS file.

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

14 years agoAdd glibc 2.13 support. Patch from Dmitry Djachenko in bug #265964.
Tom Hughes [Thu, 10 Feb 2011 09:09:09 +0000 (09:09 +0000)] 
Add glibc 2.13 support. Patch from Dmitry Djachenko in bug #265964.

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

14 years ago_pre_mem_asciiz handlers in both tools: don't segfault if passed an
Julian Seward [Wed, 9 Feb 2011 12:47:23 +0000 (12:47 +0000)] 
_pre_mem_asciiz handlers in both tools: don't segfault if passed an
obviously invalid address.  Fixes #255009.  Investigation & initial
patch by Philippe Waroquiers (philippe.waroquiers@skynet.be)

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

14 years agoDRD: handle fork() in processes with detached threads correctly (see also #255355).
Bart Van Assche [Wed, 9 Feb 2011 11:55:12 +0000 (11:55 +0000)] 
DRD: handle fork() in processes with detached threads correctly (see also #255355).

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 9 Feb 2011 11:32:58 +0000 (11:32 +0000)] 
Updated Subversion ignore list.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 9 Feb 2011 11:32:34 +0000 (11:32 +0000)] 
Updated Subversion ignore list.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 9 Feb 2011 11:32:02 +0000 (11:32 +0000)] 
Updated Subversion ignore list.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 9 Feb 2011 11:31:35 +0000 (11:31 +0000)] 
Updated Subversion ignore list.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 9 Feb 2011 11:30:10 +0000 (11:30 +0000)] 
Updated Subversion ignore list.

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

14 years agoDRD: added a test program that forks a process containing a detached thread.
Bart Van Assche [Wed, 9 Feb 2011 11:29:11 +0000 (11:29 +0000)] 
DRD: added a test program that forks a process containing a detached thread.

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

14 years agoDon't assert in the child after a threaded program does fork().
Julian Seward [Wed, 9 Feb 2011 10:34:00 +0000 (10:34 +0000)] 
Don't assert in the child after a threaded program does fork().
Fixes #255355 (helgrind part).

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

14 years agoFix bug 246152
Josef Weidendorfer [Fri, 4 Feb 2011 20:50:58 +0000 (20:50 +0000)] 
Fix bug 246152

When unwinding needs to be done because the stack pointer is reset
(e.g. by a longjmp), it makes no sense to interprete the control
flow change as call, but should be seen as a return.

This indirectly fixes bug 246152. Unwinding potentially changes the
exec state, which is unique for threads, but also for signal handlers.
E.g. this is true for a longjmp out of a signal handler. Exec state
changes modify members of struct CLG_(current_state), such as
CLG_(current_state).bbcc and CLG_(current_state).jmps_passed, which
are backed in CLG_(setup_bbcc)() by last_bbcc and passed, respectivly.
On a exec state change, these local vars go out of sync, and lead
to invalid data passed to CLG_(push_call_stack)() for handling a call,
which triggered data corruption, and the symptoms seen in bug 246152.
As in the given situation, there is no call anymore, there is no call
into CLG_(push_call_stack)(), and the corruption (or since last commit
the failed assertion) is not triggered any more.

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

14 years agoBetter failed assertion then silent data corruption
Josef Weidendorfer [Fri, 4 Feb 2011 19:55:25 +0000 (19:55 +0000)] 
Better failed assertion then silent data corruption

This is part 1 of the fix to bug 246152, and makes the bug
reproducable as failed assertion also on Ubuntu 10.10 on 64bit
machines. However, the test needs to be compiled 32bit (-m32).

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

14 years agoDRD: removed command-line option --free-is-write again since it is impossible
Bart Van Assche [Fri, 4 Feb 2011 19:07:11 +0000 (19:07 +0000)] 
DRD: removed command-line option --free-is-write again since it is impossible
to implement this functionality reliably.

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

14 years agovg-in-place: made sure that soft links to this script work fine too.
Bart Van Assche [Thu, 3 Feb 2011 17:49:07 +0000 (17:49 +0000)] 
vg-in-place: made sure that soft links to this script work fine too.

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

14 years agoDRD: do not assert() upon fork(). Fixes the DRD part of #255355.
Bart Van Assche [Thu, 3 Feb 2011 17:47:50 +0000 (17:47 +0000)] 
DRD: do not assert() upon fork(). Fixes the DRD part of #255355.

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

14 years agoAdd suppressions for __setenv leak. Fixes #188572.
Julian Seward [Wed, 2 Feb 2011 17:16:48 +0000 (17:16 +0000)] 
Add suppressions for __setenv leak.  Fixes #188572.

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

14 years agoDo the -m32 vs -m64 thing correctly for these tests. Fixes some very
Julian Seward [Wed, 2 Feb 2011 17:08:27 +0000 (17:08 +0000)] 
Do the -m32 vs -m64 thing correctly for these tests.  Fixes some very
strange failures on 64-bit OSX 10.6.

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

14 years agoHandle Dwarf3 types created by GNAT. Fixes #255130.
Julian Seward [Tue, 1 Feb 2011 23:10:14 +0000 (23:10 +0000)] 
Handle Dwarf3 types created by GNAT.  Fixes #255130.
(Philippe Waroquiers <philippe.waroquiers@skynet.be>)

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

14 years agox86: get_otrack_shadow_offset_wrk: handle guest_NRADDR. Fixes #257276.
Julian Seward [Fri, 28 Jan 2011 00:53:37 +0000 (00:53 +0000)] 
x86: get_otrack_shadow_offset_wrk: handle guest_NRADDR.  Fixes #257276.

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

14 years agoDon't produce suppression stack pseudo-traces with more than
Julian Seward [Fri, 28 Jan 2011 00:44:52 +0000 (00:44 +0000)] 
Don't produce suppression stack pseudo-traces with more than
VG_MAX_SUPP_CALLERS entries in them.  Fixes #255822.

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

14 years agoIn 3 error-path cases, place the closing </valgrindoutput> on the
Julian Seward [Fri, 28 Jan 2011 00:19:25 +0000 (00:19 +0000)] 
In 3 error-path cases, place the closing </valgrindoutput> on the
correct stream (XML instead of plain-text).  Fixes #255888.

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

14 years agoSomewhat reduce the amount of mempool sanity checking, so as to avoid
Julian Seward [Thu, 27 Jan 2011 23:56:36 +0000 (23:56 +0000)] 
Somewhat reduce the amount of mempool sanity checking, so as to avoid
rendering the mempool machinery impossibly slow for pools containing
many blocks.  Fixes #255966.

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

14 years agoIf Massif's --threshold value was less than 1.0, in lines like this:
Nicholas Nethercote [Thu, 27 Jan 2011 23:07:56 +0000 (23:07 +0000)] 
If Massif's --threshold value was less than 1.0, in lines like this:

  ->00.00% (0B) in 11 places, all below massif's threshold (00.00%)

the threshold would always be incorrectly printed as 00.00%.  This was
because the percentage printing was broken for percentages less than 1.0.
This change fixes this problem, and modifies a test to check for it.

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

14 years agoAdd a new mempool test resulting from work on #254420, and update
Julian Seward [Sun, 23 Jan 2011 20:47:26 +0000 (20:47 +0000)] 
Add a new mempool test resulting from work on #254420, and update
expected output for an existing test.

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

14 years agoImprove error reports for addressing errors in the presence of
Julian Seward [Sun, 23 Jan 2011 20:45:53 +0000 (20:45 +0000)] 
Improve error reports for addressing errors in the presence of
mempools: try and relate an invalid address to known mempool
allocated blocks, and if that fails, to malloc'd blocks that
back the mempool.  See #254420.

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

14 years agoFix up out of date documentation for VALGRIND_CREATE_BLOCK and
Julian Seward [Sat, 22 Jan 2011 11:21:58 +0000 (11:21 +0000)] 
Fix up out of date documentation for VALGRIND_CREATE_BLOCK and
VALGRIND_DISCARD.

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

14 years agoAdd a test for LOOPNEL. See #256669.
Julian Seward [Fri, 21 Jan 2011 20:59:52 +0000 (20:59 +0000)] 
Add a test for LOOPNEL.  See #256669.
(Jakub Jelinek <jakub@redhat.com>)

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

14 years agoExpand this test so as to cover FXSAVE and FXRSTOR, both REX.W and
Julian Seward [Fri, 21 Jan 2011 18:14:32 +0000 (18:14 +0000)] 
Expand this test so as to cover FXSAVE and FXRSTOR, both REX.W and
non-REX.W variants.

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

14 years agoAdd tests for SSE4.2 CRC32{B,W,L,Q} insns.
Julian Seward [Fri, 21 Jan 2011 18:13:02 +0000 (18:13 +0000)] 
Add tests for SSE4.2 CRC32{B,W,L,Q} insns.

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

14 years agoPrint a stack trace as part of the "unhandled instruction bytes" warning.
Nicholas Nethercote [Tue, 18 Jan 2011 05:16:21 +0000 (05:16 +0000)] 
Print a stack trace as part of the "unhandled instruction bytes" warning.
Useful if the program in question catches signals, in which case the usual
"Process terminating..." stack trace isn't shown.  Requested by Jesse
Ruderman.

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

14 years agoAdd test cases for PCMPxSTRx $0x00.
Julian Seward [Mon, 17 Jan 2011 23:10:39 +0000 (23:10 +0000)] 
Add test cases for PCMPxSTRx $0x00.

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

14 years agoAdd tests for AAD and AAM (base 10 only).
Julian Seward [Mon, 17 Jan 2011 12:34:33 +0000 (12:34 +0000)] 
Add tests for AAD and AAM (base 10 only).
(Vince Weaver, vince@csl.cornell.edu)

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

14 years agoConnect up tests for PCMPxSTRx to the build system.
Julian Seward [Mon, 17 Jan 2011 11:42:19 +0000 (11:42 +0000)] 
Connect up tests for PCMPxSTRx to the build system.

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

14 years agoConnect up sse4 tests to the build system.
Julian Seward [Mon, 17 Jan 2011 11:17:33 +0000 (11:17 +0000)] 
Connect up sse4 tests to the build system.

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

14 years agoAdd build system goop for testing SSE4.2 instructions.
Julian Seward [Mon, 17 Jan 2011 11:15:48 +0000 (11:15 +0000)] 
Add build system goop for testing SSE4.2 instructions.

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

14 years agoAdd test cases for EXTRACTPS, BLENDVPD, BLENDVPS, PBLENDVB.
Julian Seward [Mon, 17 Jan 2011 10:40:53 +0000 (10:40 +0000)] 
Add test cases for EXTRACTPS, BLENDVPD, BLENDVPS, PBLENDVB.

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

14 years agoFix bug 263099
Josef Weidendorfer [Fri, 14 Jan 2011 18:48:43 +0000 (18:48 +0000)] 
Fix bug 263099

Correct a beginners PERL bug ;-)
Need to create new arrays, not just copying references to ARRAYs
around, which are modified later on...

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

14 years agoAdd tests for non-immediate-rounding-mode versions of ROUND{P,S}{S,D}.
Julian Seward [Tue, 11 Jan 2011 18:26:16 +0000 (18:26 +0000)] 
Add tests for non-immediate-rounding-mode versions of ROUND{P,S}{S,D}.

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

14 years agoImprove performance of smc-checks substantially, by:
Julian Seward [Mon, 10 Jan 2011 15:09:23 +0000 (15:09 +0000)] 
Improve performance of smc-checks substantially, by:

(1) allowing translations to chase across BB boundaries, as in the
    non-smc-check case

(2) on 64-bit targets, do the checksumming with 64-bit loads
    instead of 32-bit ones.

(valgrind-side change, to match vex r2070)

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

14 years agoMemcheck, None: update avg translation size to be more realistic.
Julian Seward [Mon, 10 Jan 2011 15:01:03 +0000 (15:01 +0000)] 
Memcheck, None: update avg translation size to be more realistic.
Massif: specify avg translation size at all, so as to avoid excessive
retranslations caused by the fact that the default value is far below
reality for Massif.

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

14 years agoOnly show per-offset access counts for allocations up to 1024 bytes,
Julian Seward [Mon, 10 Jan 2011 14:56:59 +0000 (14:56 +0000)] 
Only show per-offset access counts for allocations up to 1024 bytes,
to avoid producing ridiculous amounts of output.

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

14 years agoClarify some details about "possibly lost" heap blocks.
Nicholas Nethercote [Tue, 4 Jan 2011 23:46:07 +0000 (23:46 +0000)] 
Clarify some details about "possibly lost" heap blocks.

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

14 years agoFix typo
Josef Weidendorfer [Tue, 4 Jan 2011 21:09:14 +0000 (21:09 +0000)] 
Fix typo

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

14 years agoUn-break the trunk build on OSX (broken by r11483 on 6 Dec '10).
Julian Seward [Tue, 4 Jan 2011 14:18:35 +0000 (14:18 +0000)] 
Un-break the trunk build on OSX (broken by r11483 on 6 Dec '10).
Fixes #261654.

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

14 years agoAdded a --mod-funcname option to cg_diff.
Nicholas Nethercote [Fri, 17 Dec 2010 00:45:19 +0000 (00:45 +0000)] 
Added a --mod-funcname option to cg_diff.

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

14 years agoWhen a shmat() size is passed to the tool, round it up to a page size. This
Nicholas Nethercote [Wed, 8 Dec 2010 02:51:43 +0000 (02:51 +0000)] 
When a shmat() size is passed to the tool, round it up to a page size.  This
is how mmap() sizes are treated.  It fixes an assertion failure in Massif
with --pages-as-heap=yes.

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

14 years agoRaise Massif's maximum --detailed-freq value from 10,000 to 1,000,000.
Nicholas Nethercote [Wed, 8 Dec 2010 02:42:38 +0000 (02:42 +0000)] 
Raise Massif's maximum --detailed-freq value from 10,000 to 1,000,000.

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

14 years agoNew command line option: --trace-children-skip-by-arg, which allows
Julian Seward [Mon, 6 Dec 2010 11:40:04 +0000 (11:40 +0000)] 
New command line option: --trace-children-skip-by-arg, which allows
chase/nochase decisions for child processes to be made on the basis
of their argv[] entries rather than on the name of their executables.

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

14 years agoMinor improvements to PDB reading:
Julian Seward [Mon, 6 Dec 2010 11:11:29 +0000 (11:11 +0000)] 
Minor improvements to PDB reading:

* better progress messages, to make it clear that reading of a
  PDB is finished, and how much stuff was read from it

* don't mmap PDB files to read them -- instead use VG_(read).
  This is because CIFS filesystem mounting only works reliably on
  Linux when mounted with option '-o directio', and that
  disallows mmap-ing files.

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

14 years agoAdd tests for ROUNDPD and ROUNDPS.
Julian Seward [Mon, 6 Dec 2010 11:05:29 +0000 (11:05 +0000)] 
Add tests for ROUNDPD and ROUNDPS.

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

14 years agoSpeedups and fixes:
Julian Seward [Mon, 6 Dec 2010 10:56:09 +0000 (10:56 +0000)] 
Speedups and fixes:

* (speedup) addMemEvent: generate inline code to check whether a
  memory access is within 16k of the stack pointer, and if so
  don't bother to call the helper

* (speedup) find_Block_containing: cache the most recently seen 2
  blocks, and check new references in them first.  This gives a
  worthwhile speedup.

* (fix) at the end of the run, merge stats from un-freed blocks
  back into APs.  This fixes misleading stats that cause un-freed
  blocks to appear to not have been accessed at all.

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

14 years agoRework the strcasecmp stuff a little, based on Jakub Jelinek's patch
Tom Hughes [Fri, 12 Nov 2010 10:40:20 +0000 (10:40 +0000)] 
Rework the strcasecmp stuff a little, based on Jakub Jelinek's patch
on bug #256600 because the original version turned out to somewhat
fragile across different glibc versions.

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

14 years agoAdd replacements for strcasecmp and related functions which have
Tom Hughes [Fri, 12 Nov 2010 10:03:13 +0000 (10:03 +0000)] 
Add replacements for strcasecmp and related functions which have
hyper-optimised versions which defeat valgrind in recent versions
of glibc.

Fixes #256600 based on patch from Dmitry Djachenko.

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

14 years agoDRD: the help text does now indicate that lock contention detection is off by default...
Bart Van Assche [Mon, 25 Oct 2010 18:18:54 +0000 (18:18 +0000)] 
DRD: the help text does now indicate that lock contention detection is off by default / changed default value of the exclusive mutex threshold from 1000s to off. See also #255247.

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

14 years agoRemoved superfluous semicolon.
Bart Van Assche [Fri, 22 Oct 2010 15:09:38 +0000 (15:09 +0000)] 
Removed superfluous semicolon.

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

14 years agoMerge from 3_6_BRANCH, r11471 (final change to NEWS for 3.6.0)
Julian Seward [Fri, 22 Oct 2010 06:44:59 +0000 (06:44 +0000)] 
Merge from 3_6_BRANCH, r11471 (final change to NEWS for 3.6.0)

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

14 years agoFinalise doc stuff for 3.6.0.
Julian Seward [Wed, 20 Oct 2010 17:07:01 +0000 (17:07 +0000)] 
Finalise doc stuff for 3.6.0.

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

14 years agoPreserve the stack's 16-alignment in x86 and amd64 wrappers.
Julian Seward [Wed, 20 Oct 2010 15:58:09 +0000 (15:58 +0000)] 
Preserve the stack's 16-alignment in x86 and amd64 wrappers.
Fixes #254646.

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

14 years agoSize the ARM_LINUX_FAKE_COMMPAGE correctly and add explanatory
Julian Seward [Wed, 20 Oct 2010 15:43:09 +0000 (15:43 +0000)] 
Size the ARM_LINUX_FAKE_COMMPAGE correctly and add explanatory
comments.  Fixes #254556.  (Peter Maydell, peter.maydell@linaro.org)

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

14 years agoUpdated Subversion ignore lists.
Bart Van Assche [Wed, 20 Oct 2010 13:20:15 +0000 (13:20 +0000)] 
Updated Subversion ignore lists.

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

14 years agoAvoid a double free when a binary has a build-id and no debuglink section.
Tom Hughes [Tue, 19 Oct 2010 13:12:59 +0000 (13:12 +0000)] 
Avoid a double free when a binary has a build-id and no debuglink section.

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

14 years agoMake sure all the handwritten assembly files for arm-linux are compiled with -marm.
Julian Seward [Mon, 18 Oct 2010 18:11:42 +0000 (18:11 +0000)] 
Make sure all the handwritten assembly files for arm-linux are compiled with -marm.

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

14 years agoDRD: Removed section about Qt from the manual.
Bart Van Assche [Mon, 18 Oct 2010 16:44:08 +0000 (16:44 +0000)] 
DRD: Removed section about Qt from the manual.

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

14 years agoAdd test cases for SMSAD{X}, SMLSD{X}, USAD{A}8, added in vex r2067.
Julian Seward [Mon, 18 Oct 2010 16:35:38 +0000 (16:35 +0000)] 
Add test cases for SMSAD{X}, SMLSD{X}, USAD{A}8, added in vex r2067.

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

14 years agoRemoved the Qt4 configure tests because these are no longer necessary.
Bart Van Assche [Mon, 18 Oct 2010 16:32:11 +0000 (16:32 +0000)] 
Removed the Qt4 configure tests because these are no longer necessary.

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

14 years agoDRD: Disabled the Qt4 regression tests because these are too hard to maintain.
Bart Van Assche [Mon, 18 Oct 2010 16:31:34 +0000 (16:31 +0000)] 
DRD: Disabled the Qt4 regression tests because these are too hard to maintain.

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

14 years agoHandle new Iop_Sad8Ux4 introduced in vex r2067.
Julian Seward [Mon, 18 Oct 2010 16:31:14 +0000 (16:31 +0000)] 
Handle new Iop_Sad8Ux4 introduced in vex r2067.

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

14 years agoAvoid that using VALGRIND_GET_VBITS() / VALGRIND_SET_VBITS() triggers warnings about...
Bart Van Assche [Mon, 18 Oct 2010 16:30:50 +0000 (16:30 +0000)] 
Avoid that using VALGRIND_GET_VBITS() / VALGRIND_SET_VBITS() triggers warnings about casting away constness.

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

14 years agoAdd support for DW_ATE_UTF from DWARF4 which is needed for char16_t
Tom Hughes [Mon, 18 Oct 2010 14:57:58 +0000 (14:57 +0000)] 
Add support for DW_ATE_UTF from DWARF4 which is needed for char16_t
support in C++0X.

Patch from Christian Borntraeger on bug #254550.

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

14 years agoDon't look for build-id notes if NT_GNU_BUILD_ID is not defined.
Tom Hughes [Mon, 18 Oct 2010 13:04:13 +0000 (13:04 +0000)] 
Don't look for build-id notes if NT_GNU_BUILD_ID is not defined.

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

14 years agoAdd support for using build-id to find debugging information as
Tom Hughes [Mon, 18 Oct 2010 12:38:22 +0000 (12:38 +0000)] 
Add support for using build-id to find debugging information as
some distributions are starting to drop the old debuglink support
now. Fixes #254257.

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

14 years agoBump version number on the trunk.
Julian Seward [Fri, 15 Oct 2010 08:52:43 +0000 (08:52 +0000)] 
Bump version number on the trunk.

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

14 years agoUpdate filter for Ubuntu 10.04.
Julian Seward [Thu, 14 Oct 2010 10:46:56 +0000 (10:46 +0000)] 
Update filter for Ubuntu 10.04.

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

14 years agoUpdate expected outputs following recent amd64-unwind improvements (??)
Julian Seward [Thu, 14 Oct 2010 10:46:22 +0000 (10:46 +0000)] 
Update expected outputs following recent amd64-unwind improvements (??)

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

14 years agoUpdate expected output.
Julian Seward [Thu, 14 Oct 2010 10:45:20 +0000 (10:45 +0000)] 
Update expected output.

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

14 years agoUpdates for 3.6.0.
Julian Seward [Thu, 14 Oct 2010 00:26:42 +0000 (00:26 +0000)] 
Updates for 3.6.0.

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

14 years agoDocumentation update for 3.6.0 (not including NEWS).
Julian Seward [Wed, 13 Oct 2010 21:47:29 +0000 (21:47 +0000)] 
Documentation update for 3.6.0 (not including NEWS).

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

14 years agoIncrease default size of the freed blocks queue from 10MB to 20MB.
Julian Seward [Wed, 13 Oct 2010 21:19:54 +0000 (21:19 +0000)] 
Increase default size of the freed blocks queue from 10MB to 20MB.

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

14 years agoAdd documentation for exp-dhat.
Julian Seward [Wed, 13 Oct 2010 14:06:00 +0000 (14:06 +0000)] 
Add documentation for exp-dhat.

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

14 years agoAdd heading items.
Julian Seward [Wed, 13 Oct 2010 14:05:30 +0000 (14:05 +0000)] 
Add heading items.

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

14 years ago* cosmetic output changes
Julian Seward [Wed, 13 Oct 2010 14:04:25 +0000 (14:04 +0000)] 
* cosmetic output changes
* add an assertion that the core block lookup routine works sanely

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