Commit Graph

8696 Commits

Author SHA1 Message Date
Tom Hughes
ea5e1b6a5e Fix VKI_FIOQSIZE definition on ppc platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11973
2011-08-13 15:14:58 +00:00
Bart Van Assche
e952915190 vgdb: Unlink pipes and mapped file before (re)creating these.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11972
2011-08-13 12:27:11 +00:00
Bart Van Assche
5d9b197088 Update expected output
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11971
2011-08-13 05:57:51 +00:00
Bart Van Assche
06e01f311e memcheck/tests/sbfragment.c: Only use mallinfo() if available.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11970
2011-08-13 05:32:53 +00:00
Tom Hughes
3cd0b25e21 Add test for address size override prefixes for REP prefixed string
instructions on amd64. Fixes remaining issues from #211371.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11969
2011-08-12 15:43:31 +00:00
Bart Van Assche
e6b3e4178d drd/tests/pth_barrier: Reduce stack usage
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11968
2011-08-12 15:21:31 +00:00
Florian Krohm
5800c7271c Check return code of pthread_create and bail out if
the function failed. This helps on systems which don't
have lots of memory.
Suggested by Christian Borntraeger.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11967
2011-08-12 15:07:10 +00:00
Florian Krohm
6fb27ec780 Non-VEX changes to fix #275517.
Add testcase and announce fix in NEWS.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11966
2011-08-11 17:00:15 +00:00
Tom Hughes
e4d325a237 Make do_mremap only check new_addr for wraparound if MREMAP_FIXED was
fixed, as new_addr may be meaningless otherwise. Fix to #204484.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11965
2011-08-11 14:51:47 +00:00
Florian Krohm
74c0b9293d Due to a kernel bug the siginfo struct was not filled in correctly.
The si_code was incorrect not matching any of the VKI_ILL_....
cases checked in m_signals.c function default_action.
So let's have two expected output files for buggy kernels and otherwise.
Also, add op00 to the list of files to be ignored.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11964
2011-08-11 02:23:54 +00:00
Tom Hughes
4a7707d8be Add support for the FIOQSIZE ioctl. Fixes #270320.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11963
2011-08-10 14:25:06 +00:00
Tom Hughes
1085152628 Add tests for XCHG AX, reg16 on amd64. Fixes #252695.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11962
2011-08-10 12:58:23 +00:00
Tom Hughes
d2814b28ef Wire up pselect6 on ppc32 and ppc64. Fixes #278078.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11961
2011-08-10 12:39:37 +00:00
Tom Hughes
4c121370d4 Support the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl calls. Fixes #278349.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11960
2011-08-10 10:11:14 +00:00
Tom Hughes
8da32e7807 Make sure the post handler for mincore is called in amd64 and s390 as
it already was on other platforms. Fix to #279795.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11959
2011-08-10 09:57:27 +00:00
Florian Krohm
315d45ed80 Followup to VEX r2189 -- handling invalid opcode 00 specially.
Update golden log for testcase op_exception which no longer
complains about invalid opcode 00.
Add testcase op00.c


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11958
2011-08-08 23:47:23 +00:00
Nicholas Nethercote
178baefe16 I am an idiot: remove the beginnings of an experimental tool that I
accidentally committed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11957
2011-08-08 02:27:20 +00:00
Nicholas Nethercote
a71f5978fc Fix a Massif bug: when realloc'ing a block, any values in the part of the
block beyond the original request weren't copied.  They are now.  This is
important because a program could use malloc_usable_size to gain legitimate
access to those extra bytes.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11956
2011-08-08 01:58:50 +00:00
Florian Krohm
3d44abf339 Announce fix for #279062
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11955
2011-08-01 22:35:21 +00:00
Florian Krohm
c9c6767b83 Fix prerequisite for memcheck/tests/linux/timerfd-syscall.
The testcase was executed despite uname -r being 2.6.9-42.EL
Extend tests/os_test.c to take an optional 2nd argument
which is a minimum version number. Use os_test in the
prerequisite expression.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11954
2011-07-31 03:22:45 +00:00
Bart Van Assche
a99feb5763 Yet another thread test scheduler sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11953
2011-07-30 16:50:33 +00:00
Bart Van Assche
ffe10d3e48 Nightly build: Rename the attachment diffs into diffs.txt such that it can be viewed easily with an e-mail client.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11952
2011-07-30 11:26:57 +00:00
Bart Van Assche
93234dd711 drd: Make racing pthread_barrier_wait() calls trigger an error message instead
of an assertion failure. Also, make barrier tracing output more detailed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11951
2011-07-30 09:35:56 +00:00
Bart Van Assche
e8285a3968 drd/tests/pth_barrier_thr_cr: Suppress pthread_barrier_wait() race reports since these are triggered intentionally.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11950
2011-07-30 09:29:20 +00:00
Bart Van Assche
5a2a69e658 drd/tests/pth_barrier_thr_cr: Add more error checking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11949
2011-07-30 09:28:13 +00:00
Bart Van Assche
e82cc4cbe0 Avoid that compiling memcheck on 32-bit systems triggers a compiler warning
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11948
2011-07-29 14:24:07 +00:00
Bart Van Assche
ff483e0d84 drd/tests/tc21_pthonce: Eliminate output variation
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11947
2011-07-29 14:23:23 +00:00
Bart Van Assche
093e7cb73a Update Subversion ignore list
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11946
2011-07-29 12:40:46 +00:00
Bart Van Assche
ab40e94dad drd: Fix a race condition in the barrier implementation that could result in false positives.
What could occur before this fix is:
- The pthread_barrier() call in a first thread finishes.
- Another thread invokes pthread_join() on that thread, causing the information
  associated with that thread to be removed from the barrier object.
- The pthread_barrier() call in another thread finishes. Because some
  thread information has already been removed from the barrier object, the
  per-thread vector clock "last" won't be computed correctly by
  DRD_(barrier_post_wait)().
- Because of the above false positives could be reported.

This resulted in sporadic failure of the drd/tests/matinv regression test, and
should now be fixed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11945
2011-07-29 12:39:44 +00:00
Bart Van Assche
5c64e2ce11 drd: Add a stress test for the barrier implementation
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11944
2011-07-29 12:32:53 +00:00
Bart Van Assche
26c2208f48 drd: Remove an unused member variable from the barrier implementation
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11943
2011-07-29 12:31:33 +00:00
Bart Van Assche
0230aa2ac2 drd: drd_thread.c source code cleanup
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11942
2011-07-29 12:30:43 +00:00
Bart Van Assche
d9e5622baf drd, bitmap node allocator: recognize root node size properly
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11941
2011-07-29 07:26:01 +00:00
Bart Van Assche
174c18de1d drd/tests/pth_barrier[23]: Filter output such that only the error count is kept
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11940
2011-07-29 07:22:29 +00:00
Bart Van Assche
ea04ec55b6 Yet another thread test scheduler sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11939
2011-07-29 06:58:16 +00:00
Bart Van Assche
d290f025a1 drd/tests/pth_once: Restrict the number of callers to three.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11938
2011-07-29 06:54:22 +00:00
Bart Van Assche
85a61a6c6f drd: Remove a too strict assert() statement
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11937
2011-07-29 06:30:23 +00:00
Bart Van Assche
fe979eb8e9 Yet another thread test scheduler sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11936
2011-07-29 06:12:51 +00:00
Bart Van Assche
01e205cfc3 drd/tests/pth_detached_sem: Send regression test output to stderr instead of stdout
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11935
2011-07-29 05:44:38 +00:00
Bart Van Assche
72138486c8 Yet another threading tool regression test scheduler sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11934
2011-07-28 18:46:38 +00:00
Bart Van Assche
259006daec Verify drd/tests/pth_detached stderr output instead of the stdout output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11933
2011-07-28 18:06:44 +00:00
Bart Van Assche
d0318b86e1 Yet another regression test scheduling sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11932
2011-07-28 17:48:48 +00:00
Bart Van Assche
19cbbaf2ae Two more scheduler sensitivity fixes for thread tool regression tests
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11931
2011-07-28 17:41:49 +00:00
Bart Van Assche
f396bddd5c Micro-optimize the matinv regression test
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11930
2011-07-28 17:40:49 +00:00
Bart Van Assche
08eecbf85d drd: Make drd_pthread_intercepts.c compile again on systems where
FUTEX_PRIVATE_FLAG has not been defined in <linux/futex.h>, e.g. older System z
systems.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11929
2011-07-28 15:04:08 +00:00
Bart Van Assche
bce3207562 Make test 1 output independent of scheduler variations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11928
2011-07-28 15:01:01 +00:00
Bart Van Assche
5dfad53389 Revert r11916, r11917, r11918 and r11923.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11927
2011-07-28 10:00:38 +00:00
Bart Van Assche
6cf2bc2c34 drd: Delay deletion of memory access information of joined threads in order not
to miss any races caused by these threads.

To do: refine handling of pthread_once() again.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11926
2011-07-28 09:54:37 +00:00
Bart Van Assche
ecad167c91 More thread test scheduler sensitivity fixes
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11925
2011-07-28 09:33:55 +00:00
Bart Van Assche
abb6befa6d Eliminate a superfluous sleep() call and check the pthread_cond_wait() return value
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11924
2011-07-27 08:49:47 +00:00