Commit Graph

3786 Commits

Author SHA1 Message Date
Nicholas Nethercote
e02a407d1f Convert some native types to our types.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4899
2005-10-10 16:49:01 +00:00
Nicholas Nethercote
47996d3a09 Update cache simulator for 64 bit addresses. This probably won't have
caused many inaccuracies so far because it only matters if addresses
above the 4GB line are used.  Thanks to Josef W for the patch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4898
2005-10-10 16:18:09 +00:00
Nicholas Nethercote
407e892ade clarify self-hosting instructions
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4897
2005-10-10 11:43:14 +00:00
Nicholas Nethercote
24c69df731 Document self-hosting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4896
2005-10-10 11:36:55 +00:00
Nicholas Nethercote
e9bf729b0d update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4895
2005-10-08 18:01:54 +00:00
Julian Seward
4ba003ee3e ppc32-linux: reinstate sys_fsync, sys_sched_setscheduler
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4894
2005-10-07 23:06:13 +00:00
Julian Seward
5a97c3afc7 Make --log-socket= work on ppc32.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4893
2005-10-07 23:04:17 +00:00
Julian Seward
614c6418c4 ppc32-linux: handle sys_madvise.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4892
2005-10-07 19:12:18 +00:00
Julian Seward
5027b7a30e Enable sys_ftruncate64 on ppc32.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4891
2005-10-07 13:30:48 +00:00
Julian Seward
e0bc6c2951 ppc32 only: improve handling of CmpORD32S, so as to avoid false
positives from ppc code of the form "cmpi %reg,0 ; branch-if-negative
.." where the top bit of %reg is defined but not all of the other bits
are (common-ish enough to cause a considerable number of false
positives if not done right).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4890
2005-10-07 12:13:21 +00:00
Julian Seward
8559d79377 Disable ppc32 altivec pro tem (just temporarily).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4889
2005-10-07 12:11:12 +00:00
Julian Seward
1824baf714 Fix the handling of CmpORD32{S,U} which was completely bogus and
would have caused ppc32 to miss many uninitialised value errors.
(Change affects ppc32 only).

Also add reference to the Usenix paper.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4888
2005-10-07 11:08:55 +00:00
Julian Seward
d1c79a1830 Fix a memcheck anomaly observed by Nick: lazy propagation of
undefinedness was not being done properly for scalar shifts and that
could have led to undefined-value errors being falsely reported in the
obscure case where the shift amount was undefined but the end result
of the shift was unused.  This commit handles shifts more in
accordance with the maximally-lazy V-bit-testing scheme used by the
rest of memcheck.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4887
2005-10-07 09:49:53 +00:00
Nicholas Nethercote
2349f41c86 Add a comment about Memcheck not doing anything for mprotect.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4886
2005-10-07 04:48:37 +00:00
Nicholas Nethercote
081f618ed7 Fix expected output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4885
2005-10-07 02:53:51 +00:00
Nicholas Nethercote
6c502dc6b3 Clarify FAQ and Java and JITs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4884
2005-10-06 19:30:40 +00:00
Nicholas Nethercote
97e0595797 Added an FAQ about Java.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4883
2005-10-06 18:58:33 +00:00
Tom Hughes
193e4670fc When looking for a heap segment to extend look for the heap limit
address rather than the base address as the heap may have been split
into more than one segment by using mprotect on it...


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4882
2005-10-06 14:49:21 +00:00
Tom Hughes
ea78a16074 Document memalign fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4881
2005-10-06 12:06:03 +00:00
Tom Hughes
c0893e8f7d Stop memalign crashing if it fails to allocate the memory. Bug 112538.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4879
2005-10-06 12:04:26 +00:00
Tom Hughes
7f18f0910d The amd64 BOUND bug turned out to be bogus.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4878
2005-10-06 09:15:20 +00:00
Tom Hughes
3290f4ffc1 Document realloc fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4877
2005-10-06 09:07:14 +00:00
Tom Hughes
daf507dee2 Fix realloc wrappers to handle the out of memory case properly - if
the call to VG_(cli_malloc) returns NULL then don't try and copy the
data or register a new block and just leave the old block in place
instead, but still return NULL to the caller.

Fixes bug 109487 and it's duplicates.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4875
2005-10-06 09:00:17 +00:00
Nicholas Nethercote
85545d1a1c Changed some overflow-prone counters from UInt to ULong.
Changed some printf specifiers accordingly, plus some more that were
incorrect.

Also put commas in various output numbers, eg. the leak check stats.  
This makes them much easier to read when they get big.  One
exception is in XML number-only fields such as <leakedbytes>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4874
2005-10-06 03:32:42 +00:00
Julian Seward
287d92271f The m_syswrap subsystem is Valgrind's model of how the kernel behaves
with respect to syscalls.  It is detailed and comprehensive but does
not offer a way to deal with minor deviations in behaviour from the
vanilla kernel sources, either due to running a hacked kernel or
running a vanilla kernel with a custom kernel module loaded.

This commit adds a flexible way to handle such cases without polluting
the vanilla handler syswrap-*.c files or their supporting vki_*.h
header files.  For each OS, a syswrap-OS-variants.c file is added,
containing wrappers for variants of OS.  A new command line flag
--kernel-variants= carries a comma separated list of variant names
that apply to the current run.  There are no other changes.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4873
2005-10-06 03:19:49 +00:00
Julian Seward
47130dd9f9 Adjustments to the sync-checker:
* show the filename, if any, when printing out disagreeing mappings

* if the kernel offers us a mapping to a file with the name 
  "/dev/zero (deleted)", don't do a /dev/ino comparison.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4872
2005-10-06 03:04:22 +00:00
Julian Seward
8a0d5a0b46 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4871
2005-10-06 02:31:49 +00:00
Julian Seward
1cbbde41ae Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4870
2005-10-05 18:05:01 +00:00
Julian Seward
05c7773957 Test for jrcxz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4869
2005-10-05 17:12:23 +00:00
Julian Seward
baceec15d9 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4868
2005-10-05 11:03:19 +00:00
Julian Seward
a2ed402a26 Even more regtests
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4867
2005-10-05 11:02:00 +00:00
Tom Hughes
7593ed5f2e Fix for 112031 is actually in two parts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4866
2005-10-05 08:28:59 +00:00
Tom Hughes
6cdbf0b2f4 Update README_MISSING_SYSCALL_OR_IOCTL to reflect reality - patch
from Reimar Döffinger via bug 112031.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4864
2005-10-05 08:27:08 +00:00
Tom Hughes
b807fac324 Document fix for 112031.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4863
2005-10-05 08:24:20 +00:00
Julian Seward
4ce62c9445 If the launcher can't figure out what it's own name is, don't bail
out.  Instead, print a warning message, continue, and cause any
attempt to trace into a child process to fail with ECHILD.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4861
2005-10-04 23:07:33 +00:00
Julian Seward
4a47f441f2 Rewrite ML_(fd_allowed):
* include explaination from Tom
* make logic easier to follow, and add comments
* remove veto on the -d file descriptor (detailed comments in code)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4860
2005-10-04 22:27:22 +00:00
Julian Seward
a817329967 Add regtests for SSE2 pmaddwd.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4859
2005-10-04 20:00:20 +00:00
Julian Seward
77663f8a84 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4858
2005-10-04 19:33:44 +00:00
Tom Hughes
4bfd9edeba Document fix for 113642.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4857
2005-10-04 16:55:22 +00:00
Tom Hughes
1b42aba084 Make sure we have all the DWARF2 sections before trying to decode
any DWARF2 debug information. All make sure we don't fall over if
the .debug_info is less than four bytes long. Fixed bug 113642.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4856
2005-10-04 16:54:54 +00:00
Tom Hughes
7b1575bb77 Document bug 113796.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4855
2005-10-04 16:45:28 +00:00
Tom Hughes
65bd3eb367 Create a new SkShmC segment type for shared memory segments so that we
can ensure they are never merged with adjacent segments. This makes
sure that we can find the right piece of memory to release when the
shmdt system call occurs.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4854
2005-10-04 15:59:54 +00:00
Tom Hughes
a31e921b7e Check permissions when sanity checking the segment list against
the kernel's memory map.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4853
2005-10-04 13:02:31 +00:00
Tom Hughes
760dbdc42a Get the SHM_RDONLY test the right way round. Fixes bug #113796.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4852
2005-10-04 12:04:06 +00:00
Julian Seward
742e6107a1 Reenable SSE2 psadbw test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4851
2005-10-04 11:44:11 +00:00
Julian Seward
3c01a734d6 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4850
2005-10-03 11:40:44 +00:00
Tom Hughes
2b5092f64c Allow scripts less that a page in length to be executed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4849
2005-10-03 09:06:36 +00:00
Julian Seward
80e0b1c3a5 Test misc sbb/adc insns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4848
2005-10-03 02:23:17 +00:00
Julian Seward
0d69e98e8a Test simulation of x86 'fxtract'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4847
2005-10-03 01:22:29 +00:00
Nicholas Nethercote
72dd8496df compile fix for an Ubuntu box I just tried
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4846
2005-10-02 17:50:31 +00:00