Tom Hughes
60e14aa763
Use stat64 instead of stat when it is available. Fixes bug #134727 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6084
2006-09-29 08:12:08 +00:00
Julian Seward
1213e9bcf7
Merge (from 3_2_BRANCH) r6048 (SuSE 10.1 (ppc32) minor fixes)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6051
2006-09-11 20:33:55 +00:00
Julian Seward
b074dfb65f
When unmapping segments from below aspacem_minAddr, convert them back
...
into SkResvns, not SkFrees. Fixes #133694 . Thanks to Tom Hughes for
patch and test case.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6049
2006-09-11 19:49:35 +00:00
Julian Seward
0401e8938b
Slacken assertion slightly, and add comments. Fixes #133051
...
('cfsi->len > 0 && cfsi->len < 2000000' failed)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6040
2006-08-28 22:56:59 +00:00
Julian Seward
b96b49cbc8
Increase number of segnames available (Stu Robinson).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6030
2006-08-28 13:05:48 +00:00
Julian Seward
751284af95
SuSE 10.1 (ppc32/64) fixlet.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6010
2006-08-25 11:48:38 +00:00
Julian Seward
054de9b1f3
Extra paranoia that should really have been committed in r6003.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6004
2006-08-16 15:06:53 +00:00
Julian Seward
070042a4c5
When handling mremap, disallow an expanding in-place remap if it would
...
trash some other segment as a result of the expansion. This fixes
#129866 . I don't know if it is a good solution though. Causes
none/tests/mremap{,2} to fail now, although I think it is still OK.
mremap really is a semantic disaster area.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6003
2006-08-16 14:22:29 +00:00
Julian Seward
a794b9e781
When a segment becomes free, and it is above aspacem_maxAddr, mark it
...
as SkResvn rather than SkFree, since doing otherwise causes the area
above aspacem_maxAddr - which starts out as SkResvn - to be polluted
with SkFree bits. Fixes an assertion failure found by Alex Bennee
(users list, 9 Aug 06).
Also allow the preener to merge fixed-sized SkResvns so as to avoid
fragmentation that otherwise results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6001
2006-08-16 01:48:19 +00:00
Nicholas Nethercote
6b99e05d71
Don't print more lines of a stack-trace than were obtained. Thanks to Bart
...
Van Assche for spotting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5999
2006-08-13 04:48:25 +00:00
Julian Seward
ed31950b18
Enable syslog/sysinfo (Andy Doan). Fixes #130638 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5989
2006-07-24 10:14:37 +00:00
Julian Seward
6149c5ff30
More ppc32/64-linux syscall wrappers, from Jakub Jelinek. Fixes #129246 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5988
2006-07-24 10:06:09 +00:00
Julian Seward
ecca8a0ff9
Allow even more segments.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5986
2006-07-24 08:07:28 +00:00
Nicholas Nethercote
13dc1367af
Trivial implementation for malloc_trim, thanks to Eero Tamminen.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5983
2006-07-08 08:29:20 +00:00
Julian Seward
f9c5b0b2ee
match_script: redo somewhat dubious (although not obviously wrong)
...
logic.
load_script: fix bug causing incorrect identification of script arg in
the case where there is whitespace after the script name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5981
2006-07-05 22:54:49 +00:00
Tom Hughes
ab63c4397b
Use fstat64 to work out the size of a file if it is available as it
...
copes with a wider range of filesystems than the old fstat call.
Fixes bug #130020 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5979
2006-07-05 17:47:46 +00:00
Julian Seward
e8dd52219f
Make 'c'/'C' work again with --gen-suppressions=yes. I wonder how
...
long this has been broken.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5978
2006-06-25 12:18:20 +00:00
Tom Hughes
0e8a28708c
Fix boundary case when trying to use brk() to expand right up to the
...
limit of the brk segment.
Because VG_(brk_limit) is the first address beyond the end of the
memory available to the caller of brk() we need to allow it to grow
up to and including the address one page below the end of the space
valgrind has reserved.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5974
2006-06-21 08:01:14 +00:00
Tom Hughes
22881a5f04
Implement some more terminal ioctls. Fixes bug #124039 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5970
2006-06-07 18:35:34 +00:00
Tom Hughes
ab5dbd4755
Validate futex system call arguments more carefully. Fixes bug #117172 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5968
2006-06-07 17:47:51 +00:00
Tom Hughes
ebe5060d49
Fix display of buffer address in sendto system call arguments.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5967
2006-06-07 17:46:12 +00:00
Julian Seward
ad67fd79fe
Update copyright dates.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5954
2006-06-05 23:21:15 +00:00
Nicholas Nethercote
6cb48dfa4a
Clarify usage instructions for --trace-flags.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5950
2006-06-02 22:58:34 +00:00
Julian Seward
ea5746c1fd
Move into 2006.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5940
2006-05-27 03:22:47 +00:00
Julian Seward
163ce737c9
Replace the obviously-bogus piece of inline asm with a probably
...
equally bogus new version. In fact if I actually understood the
magical "earlyclobber" (&) asm constraint this would probably be
unnecessary, but I don't. Ah well.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5935
2006-05-26 11:31:15 +00:00
Tom Hughes
0f72faa691
Decode EOVERFLOW in VG_(strerror).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5926
2006-05-24 12:51:17 +00:00
Tom Hughes
eae7769bc6
Add a %s for the error string...
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5925
2006-05-24 10:00:53 +00:00
Julian Seward
9424d27ceb
Rewrite inline asm for ppc32/64-linux to make them gcc-4.1.0 proof.
...
Thanks to David Woodhouse for pointing me in the right direction.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5921
2006-05-22 13:04:42 +00:00
Tom Hughes
ea96388e51
When moving an address range add the new range before marking the old
...
one as free otherwise the filename referred to by the temporary copy
of the segment may be dropped from the segment name table when the old
range is freed even though the new range is going to use it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5920
2006-05-22 11:20:15 +00:00
Tom Hughes
593b49c32b
Validate the fnIdx for a file segment when doing a sanity check.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5919
2006-05-22 11:15:47 +00:00
Tom Hughes
268a79bdf0
Report the error number when a UME mmap fails.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5911
2006-05-21 13:41:17 +00:00
Julian Seward
3c371e5e7b
Back out r5595: the redirections deleted there are in fact used by
...
gcc 2.96 on R H 7.3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5908
2006-05-21 01:52:09 +00:00
Tom Hughes
297aa09b43
Implement the set_robust_list and get_robust_list system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5905
2006-05-17 14:24:12 +00:00
Tom Hughes
be6253f17c
Sync system call lists with 2.6.17-rc4 kernel source.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5904
2006-05-17 13:53:23 +00:00
Julian Seward
874d81903e
A new flag, --error-exitcode=, has been added, to allow changing the
...
exit code in runs where Valgrind reported errors. Fixes #121814 and
#126517 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5897
2006-05-12 23:50:15 +00:00
Julian Seward
0eb39e5af3
Increase number of unsuppressed errors shown before cutoff by a factor
...
of 100.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5895
2006-05-12 23:12:30 +00:00
Nicholas Nethercote
a50c624ded
Add a comment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5890
2006-05-09 18:46:01 +00:00
Tom Hughes
7ea1789a97
Ignore offset information in anonymous mmap calls. Fixes bug #126722 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5888
2006-05-09 09:06:56 +00:00
Tom Hughes
6076d2c38b
Don't check the fifth argument of mremap() unless MREMAP_FIXED is set
...
in the fourth argument. Fix to bug #123535 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5886
2006-05-08 11:58:06 +00:00
Tom Hughes
17b262ab87
Add support for CDROMREADRAW and fix CDROMREADTOCENTRY to mark the right
...
number of bytes as defined in the post handler. Fixes bug #126696 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5885
2006-05-08 11:37:04 +00:00
Tom Hughes
490abde206
Fix linkat, renameat and symlinkat wrappers to look at the arguments
...
correctly. Fixes bug #126938 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5884
2006-05-08 11:19:47 +00:00
Julian Seward
132d4d6fd4
Increase scheduling quantum to 100k basic blocks. Nowadays even
...
modest cpus can run 5-10M memcheck'd bbs per second and the previous
limit of 50k gives a 100Hz switch rate, which causes cache pollution
(a known performance problem) and other context-switch overheads.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5882
2006-05-07 14:37:03 +00:00
Julian Seward
6fc030b2be
Fix printing bug in PRE(sys_stat64).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5881
2006-05-04 16:43:34 +00:00
Julian Seward
5771e24833
Print a slightly more helpful error message if the log file creation fails.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5876
2006-05-03 13:52:17 +00:00
Tom Hughes
f5f7215ba4
Add .type and .size directives for VG_(run_innerloop) and
...
VG_(run_a_noredir_translation) on all platforms where they are
missing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5873
2006-05-01 09:28:39 +00:00
Josef Weidendorfer
835f28229d
Make VG_(run_innerloop) visible for outer Valgrinds
...
with self hosting. Without this, the symbol has
size 0 and type NOT, and is ignored by the symbol loader.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5872
2006-05-01 02:12:58 +00:00
Julian Seward
8ca05cc698
Get rid of VG_(x86_linux_REDIR_FOR__dl_sysinfo_int80) and do the x86-linux
...
stack unwind kludge another way. This is believed to fix #108258 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5868
2006-04-29 18:03:14 +00:00
Julian Seward
ed4db0bbc5
Fix completely bogus asm, which didn't work when compiled with gcc-4.1.0
...
since it trashed the regs that gcc assigned for %0 and %1 before reading
them. local_sys_write_stderr() for the 3 other targets suffer from the
same problem.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5865
2006-04-28 21:01:33 +00:00
Dirk Mueller
a0d79c6e9f
split the assert so that its more obvious which
...
part is failing
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5864
2006-04-27 11:05:13 +00:00
Julian Seward
e717ec89e9
Add support for sys_broc on amd64-linux when --kernel-variant=bproc.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5860
2006-04-20 14:38:50 +00:00