3887 Commits

Author SHA1 Message Date
Tom Hughes
1ba3ab4f25 Add missing tag.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5000
2005-11-04 14:25:09 +00:00
Tom Hughes
8c0b48e4b9 Make the tool writing documentation align a bit more closely
with reality.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4999
2005-11-04 14:11:05 +00:00
Tom Hughes
4b7fc0d416 Remove remaining references to the old tool.h header.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4998
2005-11-04 12:27:58 +00:00
Tom Hughes
d827bf0409 Tool writing documentation updates from Yao Qi <qiyaoltc@cn.ibm.com>.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4997
2005-11-04 12:17:20 +00:00
Tom Hughes
64a4375b1b When unwinding the stack on x86/amd64 subtract one from the value of
ip before starting a new pass of the loop.

The reason for this is that (except for the first pass of the loop) the
value of ip is actually a return address, which is therefore after the
instruction that was executing at the time. This means that if there is
a boundary in the CFI information at that point we can wind up using the
wrong CFI data to do the next unwind if we do it based on the return
address.

This most commonly happens with a tail call where we wind up using the
data for the next function to do the unwind and getting hopelessly lost.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4996
2005-11-04 11:31:33 +00:00
Nicholas Nethercote
b9f2bd1a13 Record a useful nugget from Julian.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4995
2005-11-03 16:24:53 +00:00
Julian Seward
e00aa31d85 Track API change in vex r1429.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4994
2005-11-03 13:46:30 +00:00
Julian Seward
5896f0622c Don't try to honour the ELF interpreter's load address if it is zero.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4993
2005-11-02 19:41:21 +00:00
Tom Hughes
3d2decfed8 Split faultstatus into the platform independent tests and those
which are x86 specific. The first three x86 specific ones should
work on amd64 as well so I have added those as amd64 tests.

Note that the x86/amd64 tests will still fail as VEX doesn't
always trigger the right sort of signal for faulting instructions
at the moment.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4992
2005-11-02 16:15:55 +00:00
Tom Hughes
adc09ca528 Remove the as_mmap and as_shm tests which don't make much sense since
the address space manager was rewritten.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4991
2005-11-02 15:47:43 +00:00
Tom Hughes
2467698569 The memcheck/tests/sigprocmask test is designed to test that we handle
the old style sigprocmask system call correctly without corrupting
memory when we copy out the new (larger) signal mask into the user
provided old (smaller) signal mask.

It therefore makes no sense to run it on amd64 or any other platform
which only has the newer rt_sigprocmask system call, and indeed it
wasn't working because we weren't passing the extra argument which
that call expects.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4990
2005-11-02 15:46:07 +00:00
Tom Hughes
2e5014cb8b Fix format string in signal mask printing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4989
2005-11-02 15:32:19 +00:00
Tom Hughes
b9915194c8 Display signal masks correctly when --trace-signals=yes is used
on 64 bit platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4988
2005-11-02 15:31:21 +00:00
Tom Hughes
68124232d8 Update EXTRA_DIST to include new results files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4987
2005-11-02 15:17:43 +00:00
Tom Hughes
81be19bfd7 Add alternate results for memcheck/tests/strchr on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4986
2005-11-02 15:03:12 +00:00
Tom Hughes
1a3f2889c8 The sloppyRXcheck logic in the sync checker was not correct - it was
simply treating R and X as equivalent but the real problem is that 
mappings can appear to have X permission entirely indepenent of anything
else with recent x86 kernels.

If a mapping is inside the (deliberately constrained) code segment then
it will appear to have X permission regardless of whether R or X was asked
for when it was mapped, so what we really need to do is allow the kernel
to add X to any mapping but not to take it away if we were expecting it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4985
2005-11-02 14:42:39 +00:00
Tom Hughes
7cd9d86d6e Removed memcheck/tests/weirdioctl as it is badly broken and seems
to serve no useful purpose.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4984
2005-11-02 13:58:39 +00:00
Tom Hughes
dbfe36c3c3 Don't give the heap execute permission - the linux kernel doesn't
normally give execute permission to memory allocated from the heap
with sbrk.

This also required fixing the smc1 test for amd64 to use mmap to
allocate memory so that it can have execute permission.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4983
2005-11-02 13:02:40 +00:00
Tom Hughes
781e5e7fa4 Update memcheck/tests/xml1 results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4982
2005-11-02 13:00:41 +00:00
Tom Hughes
a1b2de6e74 Update memcheck/tests/xml1 results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4981
2005-11-02 13:00:03 +00:00
Tom Hughes
24e2757ce7 Make the request for space for the interpreter into a hint so that we
can still proceed if the preferred load address is not available.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4980
2005-11-01 19:46:07 +00:00
Julian Seward
f9bf5c5a5f Reinstate and extend lackey's functionality (a major overhaul), from
Jeroen N. Witmond.  Thanks for that.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4979
2005-11-01 17:52:34 +00:00
Tom Hughes
030b1aac10 Fixed test to not assume that malloc(10) will return 10 nul bytes!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4978
2005-11-01 17:21:03 +00:00
Nicholas Nethercote
00774ab311 update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4977
2005-11-01 17:15:50 +00:00
Julian Seward
ed5c2ad6ed Whitespace only change (test commit to see if auto-mail-on-commit is
still working).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4976
2005-11-01 12:32:24 +00:00
Julian Seward
dd977b0ffa If pdfxmltex bombs, as it so often does, at least cause the build to
come to a halt rather than just hanging.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4975
2005-11-01 03:08:41 +00:00
Julian Seward
4db841d9a8 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4974
2005-11-01 03:07:38 +00:00
Julian Seward
d5afec1f4b Make ULong_width(0) return 1 instead of 1431655765. This stops
cachegrind segfaulting if it can't open its output file.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4973
2005-11-01 02:20:19 +00:00
Julian Seward
5b51eeb7ae Build fixes following recent coredump hackery.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4972
2005-11-01 00:42:07 +00:00
Julian Seward
609c8167f9 Fix a couple of gcc warnings following recent coredumping changes
(r4970).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4971
2005-11-01 00:03:40 +00:00
Tom Hughes
48f8c22e44 Get core dumping working again - the architecture specific code that
was in the sigframe module has been moved into the coredump module 
where it belongs and things fixed up to compiler again.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4970
2005-10-31 17:05:21 +00:00
Nicholas Nethercote
084757de44 The version string from --version was being printed to stderr. This
commit fixes it to print to stdout.  I added a regression test for this.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4969
2005-10-26 16:17:46 +00:00
Julian Seward
a2e6bbe191 Trawl through bugzilla/users-list and add various bugs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4968
2005-10-26 12:21:16 +00:00
Julian Seward
ebb032b983 Don't assume the first statement is an IRMark, since it could instead
be part of a self-check.  Instead, copy verbatim any IR preamble
preceding the first IMark.  This stops cachegrind asserting on
self-checking translations.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4967
2005-10-23 12:06:55 +00:00
Tom Hughes
6b0cbda5c1 Update bug status information.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4966
2005-10-23 09:30:35 +00:00
Julian Seward
77cdfa6f75 Enable Altivec by default if it is available.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4965
2005-10-22 12:52:25 +00:00
Julian Seward
cfb4061f69 Handle a few more primops result from running Altivec code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4964
2005-10-22 12:50:43 +00:00
Julian Seward
36152f964e Pass args to match format string.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4963
2005-10-21 12:05:05 +00:00
Julian Seward
b7beeca0be Handle SHT_NOBITS sections when checking for section overruns. This
fixes a problem where debug info was sometimes not being read on
ppc32.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4962
2005-10-21 02:37:40 +00:00
Tom Hughes
f8e7c73406 Document bug #114757.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4961
2005-10-20 18:42:26 +00:00
Tom Hughes
626b0fbdc3 Don't assert if the DWARF line info reader is given so little data that
it can't even read the length of the block - just report an error as we
do if there isn't enough data for the rest of the block. Fix bug #114757.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4960
2005-10-20 18:38:08 +00:00
Tom Hughes
6f28a1fdf5 Document bug #114756.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4959
2005-10-20 17:03:53 +00:00
Tom Hughes
2b553e2835 Add support for the mbind system call on x86 and amd64. Fixes bug #114756.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4958
2005-10-20 17:00:23 +00:00
Julian Seward
7ee131a3e3 Increase the threshold above which new errors are not shown from 300
unique / 30000 total to 1000 unique / 100000 total.  Programs are
generally bigger now than 3 years ago.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4957
2005-10-20 01:57:29 +00:00
Julian Seward
2aa34e2afe Remove all remaining references to pointercheck. It's sad to see it
go, but realistically we can't implement it portably, at least without
considerable performance overhead and some additional complexity.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4956
2005-10-20 01:37:15 +00:00
Julian Seward
4e2059f06a The Spin-Doctor arrives in Valgrind-Land: rename --weird-hacks= to
--simulation-hints=.  Bwaha.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4955
2005-10-20 01:09:57 +00:00
Julian Seward
5be669c562 In the spirit of other changes over the past month aimed at supporting
monster-sized programs better, increase the default freelist volume
from 1M to 5M.  Maybe even that is too small.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4954
2005-10-20 00:31:31 +00:00
Julian Seward
1a90cce793 Oops, un-break cachegrind regtesting following r4951.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4953
2005-10-20 00:30:30 +00:00
Julian Seward
9432f46e02 rm the skiplist module, as it has been superseded by the AVL-tree
based m_oset module.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4952
2005-10-20 00:09:11 +00:00
Julian Seward
9f24dcde2a Clarify the P4 warning message a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4951
2005-10-19 23:49:45 +00:00