1019 Commits

Author SHA1 Message Date
Julian Seward
513611364e Update expected output, with a line number that's actually correct.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8746
2008-11-08 15:18:53 +00:00
Julian Seward
8f7ec4c30b 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
2008-11-08 15:17:50 +00:00
Julian Seward
fbf22fd8f3 Attempt to reduce output variance by ensuring mainSort() is never inlined.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8744
2008-11-08 15:15:06 +00:00
Julian Seward
e8eb2c86b4 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
2008-11-08 15:14:01 +00:00
Julian Seward
d1dc2a9f7d 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
2008-11-08 15:12:48 +00:00
Julian Seward
34fa5dc31b 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
2008-10-30 13:08:31 +00:00
Julian Seward
40399aab00 Fix longstanding bug in dual-arch support, which originated in
memcheck/tests/Makefile.am and was copied into drd/tests/Makefile.am.

When building regtests for a 32-bit only build on a 64-bit CPU, the
use of $(VG_ARCH) in these Makefiles is incorrect, because VG_ARCH
will be set to the 64-bit architecture, not the 32-bit architecture.

See comments on VG_ARCH_PRI and VG_ARCH_MAX in configure.in for more
details.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8623
2008-09-19 09:02:19 +00:00
Julian Seward
335992d8fc Merge all remaining changes from branches/PTRCHECK. These are some
relatively minor extensions to m_debuginfo, a major overhaul of
m_debuginfo/readdwarf3.c to get its space usage under control, and
changes throughout the system to enable heap-use profiling.

The majority of the merged changes were committed into
branches/PTRCHECK as the following revs: 8591 8595 8598 8599 8601 and
8161.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8621
2008-09-18 18:12:50 +00:00
Bart Van Assche
214f9a898a Disabled printing of file descriptor value in order to make the test results more reproducible.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8575
2008-09-07 16:55:15 +00:00
Bart Van Assche
1f63c5ebc4 Added regression test for Linux' capget system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8553
2008-08-27 17:41:06 +00:00
Julian Seward
bf836b421d Handle new IR ops Iop_RoundF64toF64_*.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8520
2008-08-08 08:38:23 +00:00
Bart Van Assche
d968df6a0a Compiles now with old versions of <sys/epoll.h> too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8474
2008-07-29 16:28:36 +00:00
Julian Seward
e448622e08 Add a followup comment to the changes in r8454, which made memcheck's
client realloc function use an always-move strategy.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8469
2008-07-29 09:44:52 +00:00
Julian Seward
ed20eaa97a Change memcheck's (client) realloc implementation so that it copies
and moves the block even when the new size is smaller or the same.
This increases the chance that it can detect buggy code which assumes
that realloc-smaller doesn't cause the block to move.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8454
2008-07-22 18:23:16 +00:00
Julian Seward
ba8c821703 Origin-tracking fix: make sure that we have a shadow-origin (B)
temporary defined for every (original) temp used in the block's IR
preamble, as is already done of the shadow-definedness (V)
temporaries.  Otherwise we can end up generating references to B
temporaries that have no assigned value, which causes the IR sanity
checker to complain.  Only observed (and even then rarely) on the
complex preambles sometimes used for TOC-afflicted platforms.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8450
2008-07-22 09:59:48 +00:00
Julian Seward
18e9141fb7 Fix a silly mistake resulting in a bunch of global variables being
defined in all the object files in Memcheck.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8445
2008-07-18 20:15:46 +00:00
Tom Hughes
1a4475c129 When the leak checker finds overlapping blocks report the details
before asserting.

Based on patch from John Reiser <jreiser@BitWagon.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8441
2008-07-18 08:48:04 +00:00
Tom Hughes
12e2e7fe24 When warning about permissions being changed on a large chunk of
memory report the actual addresses involved not just the size.

Based on patch from John Reiser <jreiser@BitWagon.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8440
2008-07-18 08:38:44 +00:00
Bart Van Assche
8e96150945 Merged FORMATCHECK branch (r8368) to trunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8369
2008-07-07 06:49:24 +00:00
Bart Van Assche
57e17d3ef7 Fixed filter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8286
2008-06-27 07:50:11 +00:00
Bart Van Assche
9c5e7c6670 Added extra filtering for the stderr output of malloc_free_fill such that the output of this test becomes independent of the Linux distribution the test is run on. Should fix #162819.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8285
2008-06-27 07:33:18 +00:00
Bart Van Assche
b3013e9de9 Reworked test such that file locking is now triggered from two different processes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8277
2008-06-24 09:54:05 +00:00
Bart Van Assche
f15fefe571 Added missing mode_t argument to open() system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8274
2008-06-23 18:57:48 +00:00
Bart Van Assche
bad4b265c9 Result of timerfd() syscall is no longer printed to stdout, which should make this regression test more reproducible.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8271
2008-06-23 12:25:12 +00:00
Bart Van Assche
857eaf6fdb Added regression test for POSIX advisory locking (fcntl(..., F_SETFL, ...)).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8269
2008-06-23 11:43:28 +00:00
Julian Seward
3620497773 get_otrack_shadow_offset_wrk: don't assert when handling 32 bit
accesses to the x87 registers.  Fixes #163794.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8228
2008-06-13 07:44:02 +00:00
Nicholas Nethercote
7a741317fa Try to make this test more consistent across different machines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8182
2008-06-04 09:41:53 +00:00
Nicholas Nethercote
ed38943118 Try to make these tests more reliable for different machines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8171
2008-06-01 22:49:25 +00:00
Julian Seward
6dbfe6814f In the leak checker, don't assert when there are multiple identical
blocks in the lc_shadows array.  Such a situation could arise from
incorrect use of VALGRIND_MALLOCLIKE_BLOCK, and has been observed to
cause assertion failures for some runs of Wine on Valgrind.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8144
2008-05-29 12:23:24 +00:00
Julian Seward
2953684804 Add a missing case and remove the bogus associated comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8135
2008-05-27 16:08:24 +00:00
Julian Seward
4acf0bdea5 Make return types for some of the requests 64-bit clean. (following bug
report/investigation by Bernard Solomon).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8048
2008-05-12 15:25:04 +00:00
Julian Seward
4a6be60077 Oops. Don't die on {x86,amd64}-linux when doing --track-origins=yes
and --smc-check=all.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8021
2008-05-09 23:26:19 +00:00
Julian Seward
e33553414e Add a regression test for fxsave.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8019
2008-05-09 21:38:12 +00:00
Julian Seward
cf46146797 Add a test case for #157748.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8018
2008-05-09 19:46:55 +00:00
Julian Seward
1cfc256f1d Add missing words to comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8015
2008-05-07 00:23:28 +00:00
Julian Seward
15dfc7886d Build fixes for AIX5.3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8013
2008-05-06 23:01:05 +00:00
Julian Seward
111294590f Add an expected output for ppc64-linux; probably required due to dodgyness in
line number info, either in writing on gcc's part or reading on Valgrind's part.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8010
2008-05-06 16:54:53 +00:00
Julian Seward
f1aae08c46 Why doesn't this sodding language have a half-decent type system?
This took me all day to track down.  Gimme Haskell any day.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8009
2008-05-06 15:40:32 +00:00
Julian Seward
b012d72856 Add a test for origin tracking through large floating point arrays.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8008
2008-05-06 08:14:57 +00:00
Julian Seward
79c14a0983 Add comments giving an overview of the origin tracking implementation.
Also, rename "ocache" to "ocacheL1" to be more consistent with the
comments and the rest of the otag cache code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8007
2008-05-05 09:48:56 +00:00
Julian Seward
edb789f73a Add documentation on the new --track-origins=no|yes [no] flag.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8006
2008-05-04 23:06:28 +00:00
Bart Van Assche
6e2e200228 Fixed compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8004
2008-05-04 08:10:24 +00:00
Bart Van Assche
57478205c9 Disable gcc warnings about shadowed variables when compiling varinfo2.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8003
2008-05-04 08:09:44 +00:00
Julian Seward
39371c85a5 Remove a bit of unused code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7995
2008-05-03 05:24:57 +00:00
Julian Seward
32a83b165a Dynamically allocate the origin tracking cache as needed (only for
runs with --track-origins=yes), rather than having it statically
allocated.  This is important because the cache is large (100MB) and
soaking up 100MB of address space for a non-tracking run is not good.
Unfortunately this slows down the origin tracker by 1 to 2 %.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7989
2008-05-02 13:35:29 +00:00
Julian Seward
8c61ca1c09 Re-check complex and fragile bit-twiddling pertaining to indexing into
the primary map on 64-bit systems.  Add extensive comments and
startup-time assertions.

As a result of this, fix two off-by-one errors in
MC_(helperc_MAKE_STACK_UNINIT) (unlikely to be of much significance,
but still ..).  No other errors were found.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7988
2008-05-02 12:35:48 +00:00
Julian Seward
0d5557aee9 Minor cleanups:
* remove 'extern' in all the headers, as that is irrelevant and wastes
  horizontal space

* fix some 64-bit uncleanness in client(-defined) block handling

* remove unneeded #includes



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7987
2008-05-02 11:25:17 +00:00
Julian Seward
4d1716321e Move the error management code for Memcheck into a new file,
mc_errors.c, as it is relatively self contained.  This reduces the
size of mc_main.c by about 1350 lines.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7986
2008-05-02 10:33:15 +00:00
Julian Seward
f35eb37648 Update expected outputs following merge of branches/OTRACK_BY_INSTRUMENTATION.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7985
2008-05-01 22:34:16 +00:00
Julian Seward
4cae5c3ed5 Merge branches/OTRACK_BY_INSTRUMENTATION into the trunk. This adds
support to Memcheck for tracking the origin of uninitialised values,
if you use the --track-origins=yes flag.

This currently causes some Memcheck regression tests to fail, because
they now print an extra line of advisory text in their output.  This
will be fixed.

The core-tool interface is slightly changed.  The version number for
the interface needs to be incremented.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7982
2008-05-01 20:24:26 +00:00