ambi/valgrind.git
12 years agoAdd a configure test for detecting whether gcc supports atomic operations on
bart [Sat, 17 Dec 2011 12:53:23 +0000 (12:53 +0000)]
Add a configure test for detecting whether gcc supports atomic operations on
64-bit integers on 32-bit platforms. Apparently newer gcc versions support
this but older versions not. Thanks to Philippe Waroquiers for reporting this.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12309 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: Suppress uninteresting races triggered by the dynamic loader
bart [Wed, 14 Dec 2011 20:05:51 +0000 (20:05 +0000)]
DRD: Suppress uninteresting races triggered by the dynamic loader

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12308 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agodrd/tests/Makefile.am: update EXTRA_DIST
bart [Wed, 14 Dec 2011 07:30:05 +0000 (07:30 +0000)]
drd/tests/Makefile.am: update EXTRA_DIST

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12307 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate Subversion ignore list
bart [Wed, 14 Dec 2011 07:13:06 +0000 (07:13 +0000)]
Update Subversion ignore list

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12306 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agodrd --trace-addr: make tracing 64-bit values on a 32-bit platform work
bart [Tue, 13 Dec 2011 11:12:05 +0000 (11:12 +0000)]
drd --trace-addr: make tracing 64-bit values on a 32-bit platform work

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12305 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD, --trace-addr: enable support for Ity_F32 and Ity_F64 / temporarily disable suppo...
bart [Tue, 13 Dec 2011 08:53:23 +0000 (08:53 +0000)]
DRD, --trace-addr: enable support for Ity_F32 and Ity_F64 / temporarily disable support for 64-bit CAS on 32-bit platforms

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12304 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: Eliminate a temporary variable
bart [Tue, 13 Dec 2011 08:05:07 +0000 (08:05 +0000)]
DRD: Eliminate a temporary variable

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12303 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agodrd/tests/annotate_trace_memory*: add 32-bit output variants
bart [Tue, 13 Dec 2011 07:52:09 +0000 (07:52 +0000)]
drd/tests/annotate_trace_memory*: add 32-bit output variants

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12302 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agodrd/tests/pth_cleanup_handler: increase timeout
bart [Tue, 13 Dec 2011 07:49:30 +0000 (07:49 +0000)]
drd/tests/pth_cleanup_handler: increase timeout

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12301 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: rearrange the definition of u_widen_irop[][]
bart [Mon, 12 Dec 2011 19:54:32 +0000 (19:54 +0000)]
DRD: rearrange the definition of u_widen_irop[][]

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12300 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate Subversion ignore list
bart [Mon, 12 Dec 2011 19:37:48 +0000 (19:37 +0000)]
Update Subversion ignore list

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12299 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: make the tracing regression test more complete
bart [Mon, 12 Dec 2011 19:37:10 +0000 (19:37 +0000)]
DRD: make the tracing regression test more complete

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12298 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: Make the code for instrumenting store operations more robust
bart [Mon, 12 Dec 2011 19:18:26 +0000 (19:18 +0000)]
DRD: Make the code for instrumenting store operations more robust

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12297 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agodrd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual
bart [Mon, 12 Dec 2011 19:04:28 +0000 (19:04 +0000)]
drd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12296 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: make DRD_(stop_tracing_address_range)() work at an acceptable speed
bart [Mon, 12 Dec 2011 19:02:34 +0000 (19:02 +0000)]
DRD: make DRD_(stop_tracing_address_range)() work at an acceptable speed

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12295 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD help text: remove a superfluous dot
bart [Mon, 12 Dec 2011 15:49:00 +0000 (15:49 +0000)]
DRD help text: remove a superfluous dot

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12294 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove trailing whitespace
bart [Sun, 11 Dec 2011 20:34:03 +0000 (20:34 +0000)]
Remove trailing whitespace

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12293 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDisable drd/tests/std_thread until libstdc++ gets fixed (see also http://gcc.gnu...
bart [Sun, 11 Dec 2011 20:30:46 +0000 (20:30 +0000)]
Disable drd/tests/std_thread until libstdc++ gets fixed (see also gcc.gnu.org/bugzilla/show_bug.cgi?id=51504).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12292 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: Make --trace-addr work for atomic loads and stores. To do: update manual
bart [Sun, 11 Dec 2011 20:17:57 +0000 (20:17 +0000)]
DRD: Make --trace-addr work for atomic loads and stores. To do: update manual

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12291 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD, --trace-addr: trace stored values too
bart [Sun, 11 Dec 2011 18:49:39 +0000 (18:49 +0000)]
DRD, --trace-addr: trace stored values too

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12290 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate Subversion ignore lists
bart [Sun, 11 Dec 2011 18:40:13 +0000 (18:40 +0000)]
Update Subversion ignore lists

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12289 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: Two non-functional changes: adjust source code indentation and fix
bart [Sun, 11 Dec 2011 17:54:17 +0000 (17:54 +0000)]
DRD: Two non-functional changes: adjust source code indentation and fix
second argument of unsafeIRDirty_0_N() in the memory access tracing code.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12288 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agofix 286270 VG_(env_remove_valgrind_env_stuff)
philippe [Sun, 11 Dec 2011 16:29:43 +0000 (16:29 +0000)]
fix 286270 VG_(env_remove_valgrind_env_stuff)

rev 12001 has introduced a regression in VG_(env_remove_valgrind_env_stuff):
to avoid modifying a possibly read-only env string, the string is duplicated,
and the copy is modified. However, mash_env_column modifies the string
"in-place". The modified string was not put back in the env (and could not,
because the src string is only partially copied).

This means that the valgrind preload strings were not cleaned up and
when a 32 bit executable execs a 64 bits (or vice versa: 64 bit execs 32 bits),
LD_PRELOAD contains both the 32 bits and 64 bits versions of Valgrind
vgpreload.... => ld.so then gives an error msg, as it can't preload either
the 32 or the 64 bits version.

The patch fixes this by duplicating the whole env string, and passing
to mash_colon_env a pointer to the correct offset in the whole env string.
The duplicated string is replacing the original entry in envp.

This patch adds two regression tests : none/tests/allexec32 and
none/tests/allexec64. On a bi-arch valgrind, these will be 32bits and 64 bits
executables, exec-ing each other. On a single arch, one will be a symlink
to the other (to avoid different .exp files, and still test exec).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12287 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFollow-up for r12281: update regtest expected output
bart [Sun, 11 Dec 2011 10:18:27 +0000 (10:18 +0000)]
Follow-up for r12281: update regtest expected output

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12286 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoconfigure.in: Rename the shell variable ac_have_builtin_atomic into ac_have_builtin_a...
bart [Sat, 10 Dec 2011 19:48:04 +0000 (19:48 +0000)]
configure.in: Rename the shell variable ac_have_builtin_atomic into ac_have_builtin_atomic_primary

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12285 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDRD: Add test program for std::thread.
bart [Sat, 10 Dec 2011 19:42:05 +0000 (19:42 +0000)]
DRD: Add test program for std::thread.

To do: document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE/AFTER in the DRD manual.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12284 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFix a typo.
florian [Sat, 10 Dec 2011 16:06:57 +0000 (16:06 +0000)]
Fix a typo.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12283 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAdd script to assist in updating the C++ demangler from GCC trunk.
florian [Sat, 10 Dec 2011 16:03:57 +0000 (16:03 +0000)]
Add script to assist in updating the C++ demangler from GCC trunk.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12282 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate the C++ demangler by importing files from GCC trunk @ r181975.
florian [Sat, 10 Dec 2011 16:00:25 +0000 (16:00 +0000)]
Update the C++ demangler by importing files from GCC trunk @ r181975.
Also fixes #283413

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12281 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAdd command-line option --fair-sched=[no|yes|try]. Use --fair-sched=try
bart [Thu, 8 Dec 2011 16:14:59 +0000 (16:14 +0000)]
Add command-line option --fair-sched=[no|yes|try]. Use --fair-sched=try
when running the annotate_hbefore regression test. Closes #270006.

To do: update manual.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12280 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove emacs modeline and/or local variables from DRD source files
bart [Sun, 4 Dec 2011 15:54:19 +0000 (15:54 +0000)]
Remove emacs modeline and/or local variables from DRD source files

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12279 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoGive a better help message for gdbserver when VALGRIND_LIB
philippe [Thu, 1 Dec 2011 19:44:34 +0000 (19:44 +0000)]
Give a better help message for gdbserver when VALGRIND_LIB
is set. This ensures a correct help msg is given when
the valgrind installation is moved, and VALGRIND_LIB is
then set to the new valgrind lib location.
Note it does not improve the help msg when valgrind
is run "in place" (e.g. when using vg-in-place).
(Patch from Paul Pluzhnikov).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12278 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoTweaks for the benefit of the webpage.
florian [Sat, 26 Nov 2011 04:12:01 +0000 (04:12 +0000)]
Tweaks for the benefit of the webpage.
- mention s390x/linux in README
- formatting tweak in README.s390 so things don't look ugly in html
- add README.s390 and README.android to distribution documents

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12277 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoYesterday I changed dist.authors.html and dist.news.html in r442
florian [Sat, 26 Nov 2011 04:05:47 +0000 (04:05 +0000)]
Yesterday I changed dist.authors.html and dist.news.html in r442
in the valgrind-www repository. These files are actually generated
from AUTHORS and NEWS, respectively.
Therefore, change AUTHORS and NEWS to reflect yesterday's change.
Things are now in synch again.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12276 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoGet rid of Roland McGrath et al.
florian [Thu, 24 Nov 2011 16:07:41 +0000 (16:07 +0000)]
Get rid of Roland McGrath et al.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12275 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoconfigure: Fix compiler version check. Closes #286384.
bart [Tue, 22 Nov 2011 14:41:31 +0000 (14:41 +0000)]
configure: Fix compiler version check. Closes #286384.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12274 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoarm-linux: fix signal returning so that if SA_RESTORER is not
sewardj [Sun, 20 Nov 2011 09:35:51 +0000 (09:35 +0000)]
arm-linux: fix signal returning so that if SA_RESTORER is not
specified, the handler returns to the previous context rather than to
whatever value happens to be parked in the link register (duh).
Previous behaviour made complete nonsense of signal returning on
Android.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12273 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoThe sparse wa maintains the nr of elements in use at level 0.
philippe [Thu, 17 Nov 2011 21:57:21 +0000 (21:57 +0000)]
The sparse wa maintains the nr of elements in use at level 0.
So, replace the code which counts the nr of bits in the level0
bitmap by just returning the nr of elements in use.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12272 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoClarify where to set TMPDIR to have working FIFOs.
philippe [Wed, 16 Nov 2011 20:43:39 +0000 (20:43 +0000)]
Clarify where to set TMPDIR to have working FIFOs.
+ mention --vgdb-prefix clo as an alternative.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12271 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoNew section for 3.7.1.
florian [Wed, 16 Nov 2011 03:59:49 +0000 (03:59 +0000)]
New section for 3.7.1.
Announce fix for #286374.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12270 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoCallgrind: use jmpkind from VEX for side exits.
weidendo [Mon, 14 Nov 2011 21:16:25 +0000 (21:16 +0000)]
Callgrind: use jmpkind from VEX for side exits.

To detect calls and returns, Callgrind's heuristic
starts with using the jumpkind got from VEX for
a control flow change instruction. However, for
side exits, it always assumed a (conditional) jump,
which holds true for x86, but e.g. not for ARM.

This fixes Callgrind to use the jumpkind found
by VEX for all exits, which should help making
Callgrind work for ARM. It also moves the check
whether a boring jump is actually a fall-through
to instrumentation time. This changes (fixes) the
result for indirect jumps to the next instruction,
which should not be classified as fall-through
(anyway, this case is probably very rare).

This patch introduces an own enum for jump kinds
in Callgrind. This is less confusing than misusing
the VEX jump kind type, as Callgrinds wants
to distinguish BB fall-throughs from real jumps
(which both are Ijk_Boring in VEX).
Also, setup_bbcc now stores separately whether the
jump kind is conditional or not.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12269 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agocallgrind: remove command file polling
weidendo [Mon, 14 Nov 2011 19:01:21 +0000 (19:01 +0000)]
callgrind: remove command file polling

This is the last part of moving from command file polling
to the vgdb ptrace method for interactive control of Callgrind.
VG 3.7.x ported callgrind_control to vgdb (in r11867), but
still did command file polling to support existing KCachegrind
releases. KCachegrind from upcoming KDE SC 4.8 will use
callgrind_control instead of manually writing command files.

The main benefit from this is, apart from getting rid of
continous file polling activity in Callgrind, that blocked
processes can now respond to callgrind_control.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12268 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDocument test results.
florian [Fri, 11 Nov 2011 04:04:12 +0000 (04:04 +0000)]
Document test results.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12267 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoMerge latest changes to this file from 3_7_BRANCH.
sewardj [Wed, 9 Nov 2011 23:42:41 +0000 (23:42 +0000)]
Merge latest changes to this file from 3_7_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12266 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRHEL 4 build fix
bart [Wed, 9 Nov 2011 17:31:54 +0000 (17:31 +0000)]
RHEL 4 build fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12263 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove TEST_TOOLS and TEXT_EXP_TOOLS as they are no longer needed.
florian [Tue, 8 Nov 2011 20:16:09 +0000 (20:16 +0000)]
Remove TEST_TOOLS and TEXT_EXP_TOOLS as they are no longer needed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12262 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFix prerequisite to also require linux. So testcases get skipped
florian [Tue, 8 Nov 2011 20:14:35 +0000 (20:14 +0000)]
Fix prerequisite to also require linux. So testcases get skipped
and do not fail on Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12261 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoWhen doing instrumentation, pay attention to the Ist.IMark.delta
sewardj [Tue, 8 Nov 2011 19:32:57 +0000 (19:32 +0000)]
When doing instrumentation, pay attention to the Ist.IMark.delta
fields.  This makes the --ct-verbose=1 output make a lot more sense
for Thumb code.  Should have no effect on any other platform.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12260 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate platform_test. Add s390x-linux. Remove AIX.
florian [Sun, 6 Nov 2011 22:43:33 +0000 (22:43 +0000)]
Update platform_test.  Add s390x-linux. Remove AIX.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12259 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAlso display information about the assembler (binutils).
florian [Thu, 3 Nov 2011 02:10:02 +0000 (02:10 +0000)]
Also display information about the assembler (binutils).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12257 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUse normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty
sewardj [Mon, 31 Oct 2011 10:59:31 +0000 (10:59 +0000)]
Use normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty
much treats the latter kind as no-ops.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12254 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove unneeded prerequisites in testcases.
florian [Sat, 29 Oct 2011 04:02:34 +0000 (04:02 +0000)]
Remove unneeded prerequisites in testcases.
Followup to r11693.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12253 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoInclude insn_pclmulqdq.def in tarball.
florian [Sat, 29 Oct 2011 03:39:56 +0000 (03:39 +0000)]
Include insn_pclmulqdq.def in tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12252 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFix the configure test for ssse3 support. GCC needs -msse or it
florian [Fri, 28 Oct 2011 21:37:19 +0000 (21:37 +0000)]
Fix the configure test for ssse3 support. GCC needs -msse or it
will reject the xmm7 clobber in the code snippet.
Fix the prereqs for the ssse3 tests. It is possible that hardware
supports ssse3 but the tool chain does not. So we need to have the
testcase executable as a prerequisite.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12251 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdated ignored file lists.
florian [Fri, 28 Oct 2011 19:57:52 +0000 (19:57 +0000)]
Updated ignored file lists.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12250 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUse snprintf() instead of sprintf()
bart [Fri, 28 Oct 2011 15:05:50 +0000 (15:05 +0000)]
Use snprintf() instead of sprintf()

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12249 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoHandle longer un-sized symbols on arm-linux-android.
sewardj [Fri, 28 Oct 2011 02:53:49 +0000 (02:53 +0000)]
Handle longer un-sized symbols on arm-linux-android.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12248 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDon't get the date of the build from the mail header. It is
florian [Fri, 28 Oct 2011 02:45:15 +0000 (02:45 +0000)]
Don't get the date of the build from the mail header. It is
often off-by one. Instead extract it from the message body,
namely, when the build was kicked off.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12247 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRewrite test to not use function clock_gettime. The purpose
florian [Fri, 28 Oct 2011 00:11:44 +0000 (00:11 +0000)]
Rewrite test to not use function clock_gettime. The purpose
of this is to not have to link against -lrt because that causes
a different back-trace on certain x86 and s390x environments.
See the thread with subject
"helgrind/tests/cond_timedwait_invalid failing on x86"
on valgrind-developers for more details.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12246 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoSome small doc updating for 3.7.0.
sewardj [Thu, 27 Oct 2011 10:01:17 +0000 (10:01 +0000)]
Some small doc updating for 3.7.0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12239 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFix missing m4 quoting that autoconf-2.68 warns about.
sewardj [Thu, 27 Oct 2011 06:22:23 +0000 (06:22 +0000)]
Fix missing m4 quoting that autoconf-2.68 warns about.
(Dave Goodell, goodell@mcs.anl.gov)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12238 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoGet rid of over-cautious check to make BEAM happy
weidendo [Wed, 26 Oct 2011 17:44:43 +0000 (17:44 +0000)]
Get rid of over-cautious check to make BEAM happy

To play save, make an assertion out of it.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12237 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate list of ignored files.
florian [Wed, 26 Oct 2011 15:29:52 +0000 (15:29 +0000)]
Update list of ignored files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12236 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoGive function copy_input_until_stop the noinline atribute.
florian [Wed, 26 Oct 2011 15:27:41 +0000 (15:27 +0000)]
Give function copy_input_until_stop the noinline atribute.
At least one of the compilers for s390x nightly builds was inlining it.
Update exp files accoordingly. This should fix any residual back-trace
noise for this testcase.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12235 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoSome fixes for Android:
sewardj [Wed, 26 Oct 2011 15:10:49 +0000 (15:10 +0000)]
Some fixes for Android:

* initial support for Pandaboard/Linaro
* on Android/ARM, ask for non-executable stacks in the executables
* disable Memcheck's strcasestr intercept; its use of tolower()
  causes the dynamic linker to fail.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12234 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDisable the GDB server-by-default for the time being on Android, since
sewardj [Wed, 26 Oct 2011 15:07:56 +0000 (15:07 +0000)]
Disable the GDB server-by-default for the time being on Android, since
the mknod operations fail.  It can still be used if you can get past
that point, but you need an explicit --vgdb=yes for the time being.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12233 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFix an out-of-bounds array access found by IBM's BEAM checker.
florian [Tue, 25 Oct 2011 21:37:15 +0000 (21:37 +0000)]
Fix an out-of-bounds array access found by IBM's BEAM checker.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12232 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAdd script to summarize the outcome of nightly builds.
florian [Tue, 25 Oct 2011 20:01:41 +0000 (20:01 +0000)]
Add script to summarize the outcome of nightly builds.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12231 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoBump the version.
sewardj [Tue, 25 Oct 2011 09:20:05 +0000 (09:20 +0000)]
Bump the version.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12230 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate.
sewardj [Tue, 25 Oct 2011 09:05:53 +0000 (09:05 +0000)]
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12227 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoFix #284384 (clang 3.1 -Wunused-value warnings in valgrind.h,
sewardj [Mon, 24 Oct 2011 13:21:57 +0000 (13:21 +0000)]
Fix #284384 (clang 3.1 -Wunused-value warnings in valgrind.h,
memcheck.h) by changing a bunch of VALGRIND_DO_CLIENT_REQUEST_EXPR
into VALGRIND_DO_CLIENT_REQUEST_STMT for cases where the return value
of the former would be unused.  (Bart Van Assche, bart.vanassche@gmail.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12226 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate.
sewardj [Mon, 24 Oct 2011 08:54:56 +0000 (08:54 +0000)]
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12225 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoDon't break fcntl locks when program does mmap. #280965.
sewardj [Mon, 24 Oct 2011 08:53:03 +0000 (08:53 +0000)]
Don't break fcntl locks when program does mmap.  #280965.
(Rusty Russell, rusty@rustcorp.com.au)

tdb uses fcntl locks and mmap, and some of the tests fail under valgrind.
strace showed valgrind opening the tdb file, reading 1024 bytes, then closing
it.  This is not allowed: POSIX says if you open and close a file, all fcntl
locks on it are dropped (insane, yes).

Finally got around to hacking the source to track this down: di_notify_mmap is
doing the damage.  The simplest fix was to hand in an optional fd for it to
use, then have it do pread.

I had to fix your pread; surely this should seek back even if the platform
doesn't have pread support?

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12224 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agogdbsrv: factorize gdb version handling, fix doc and typos
sewardj [Mon, 24 Oct 2011 07:36:57 +0000 (07:36 +0000)]
gdbsrv: factorize gdb version handling, fix doc and typos

* fix various typos in doc
* following commit in gdb
   http://sourceware.org/ml/gdb-patches/2011-07/msg00742.html
  means unlimited length for valgrind watchpoints is understood by the
  (future) gdb 7.4 => doc updated
* factorize  gdb version detection and reporting in
  gdbserver_tests/make_local_links
* replace zignal by signal in a string used in umsg.
* updated gdbserver_tests/README_DEVELOPPERS (ref to --port vgdb option)

No functional change, tested on f12/x86, debian5/amd64, s390/RHEL4

Fixes #278892.  (Philippe Waroquiers, philippe.waroquiers@skynet.be)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12223 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoChange the behaviour of VALGRIND_CHECK_MEM_IS_DEFINED slightly, so
sewardj [Mon, 24 Oct 2011 05:59:54 +0000 (05:59 +0000)]
Change the behaviour of VALGRIND_CHECK_MEM_IS_DEFINED slightly, so
that if the range is partially non-addressable and it contains
undefined data, both errors are reported.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12222 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAdd more missing files for the tarball.
florian [Mon, 24 Oct 2011 00:03:52 +0000 (00:03 +0000)]
Add more missing files for the tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12221 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove the Qt4 regression tests because these are too hard to maintain
bart [Sun, 23 Oct 2011 15:21:48 +0000 (15:21 +0000)]
Remove the Qt4 regression tests because these are too hard to maintain

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12220 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove pth_specific.c which is unused.
florian [Sun, 23 Oct 2011 14:34:52 +0000 (14:34 +0000)]
Remove pth_specific.c which is unused.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12219 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAdd some more missing files to the tarball.
florian [Sun, 23 Oct 2011 14:30:08 +0000 (14:30 +0000)]
Add some more missing files to the tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12218 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoInclude README_DEVELOPERS for the GDB server in the tarball.
florian [Sun, 23 Oct 2011 13:51:34 +0000 (13:51 +0000)]
Include README_DEVELOPERS for the GDB server in the tarball.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12217 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agohelgrind/tests/tc08_hbl2: Avoid busy-waiting
bart [Sun, 23 Oct 2011 13:28:20 +0000 (13:28 +0000)]
helgrind/tests/tc08_hbl2: Avoid busy-waiting

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12216 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agohelgrind/tests/cond_timedwait_invalid: Update expected output because of r12213
bart [Sun, 23 Oct 2011 12:34:07 +0000 (12:34 +0000)]
helgrind/tests/cond_timedwait_invalid: Update expected output because of r12213

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12215 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoCheck Makefile.am consistency before running regression tests. Closes #283813.
bart [Sun, 23 Oct 2011 12:14:51 +0000 (12:14 +0000)]
Check Makefile.am consistency before running regression tests. Closes #283813.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12214 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agohelgrind/tests/cond_timedwait_invalid: Port to Darwin 10.8
bart [Sun, 23 Oct 2011 12:11:15 +0000 (12:11 +0000)]
helgrind/tests/cond_timedwait_invalid: Port to Darwin 10.8

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12213 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate for 3.7.0. (What did I forget?)
sewardj [Sun, 23 Oct 2011 10:05:47 +0000 (10:05 +0000)]
Update for 3.7.0.  (What did I forget?)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12212 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoMore update for 3.7.0 (duh.)
sewardj [Sun, 23 Oct 2011 09:57:26 +0000 (09:57 +0000)]
More update for 3.7.0 (duh.)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12211 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate for 3.7.0.
sewardj [Sun, 23 Oct 2011 09:55:34 +0000 (09:55 +0000)]
Update for 3.7.0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12210 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate the list of fixed bugs and format properly.
sewardj [Sun, 23 Oct 2011 09:09:54 +0000 (09:09 +0000)]
Update the list of fixed bugs and format properly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12209 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate expected outputs following update of copyright dates.
sewardj [Sun, 23 Oct 2011 08:24:43 +0000 (08:24 +0000)]
Update expected outputs following update of copyright dates.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12208 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoGet a bunch more copyright dates in the right format, 20xx-2011,
sewardj [Sun, 23 Oct 2011 07:49:30 +0000 (07:49 +0000)]
Get a bunch more copyright dates in the right format, 20xx-2011,
so the auto-update script will handle them correctly in future.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12207 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate all copyright dates, from 20xy-2010 to 20xy-2011.
sewardj [Sun, 23 Oct 2011 07:32:08 +0000 (07:32 +0000)]
Update all copyright dates, from 20xy-2010 to 20xy-2011.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoUpdate, so as to be able to handle the 200x vs 201x change.
sewardj [Sun, 23 Oct 2011 07:31:08 +0000 (07:31 +0000)]
Update, so as to be able to handle the 200x vs 201x change.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12205 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoMake vgdb.c work on Android, so that the GDB server as a whole
sewardj [Sat, 22 Oct 2011 20:38:08 +0000 (20:38 +0000)]
Make vgdb.c work on Android, so that the GDB server as a whole
will work on Android.  Fixes #283600.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12204 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAddition of v.info scheduler monitor command
sewardj [Sat, 22 Oct 2011 20:23:30 +0000 (20:23 +0000)]
Addition of v.info scheduler monitor command

Monitor command useful for debugging/investigation of Valgrind unwinder and/or
gdbserver/gdb stack trace.

The Valgrind unwinder has some limitations compared to the GDB unwinder.
(see e.g. 278972).

With this monitor command, it is easy to see if the Valgrind unwinder
produces something different than the GDB unwinder.

Fixes #279212.  (Philippe Waroquiers, philippe.waroquiers@skynet.be)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12203 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoImprovements in freelist handling for Memcheck. See #250065.
sewardj [Sat, 22 Oct 2011 19:48:57 +0000 (19:48 +0000)]
Improvements in freelist handling for Memcheck.  See #250065.

(Philippe Waroquiers, philippe.waroquiers@skynet.be)

This patch provides three improvements in the way the free list is
handled in memcheck.

First improvement: a new command line option --freelist-big-blocks
(default 1000000) specifies the size of "free list big blocks".
Such big blocks will be put on the free list, but will be re-cycled first
(i.e. in preference to block having a smaller size).
This fixes the bug https://bugs.kde.org/show_bug.cgi?id=250065.
Technically, the freed list is divided in two lists : small
and big blocks. Blocks are first released from the big block list.

Second improvement: the blocks of the freed list are re-cycled before
a new block is malloc-ed, not after a block is freed.
This gives better error messages for dangling pointer errors
when doing many frees without doing malloc between the frees.
(this does not uses more memory).

Third improvement: a block bigger than the free list volume will be
put in the free list (till a malloc is done, so as the needed memory
is not bigger than before) but will be put at the beginning of the
free list, rather than at the end. So, allocating then freeing such a
block does not cause any blocks in the free list to be released.

Results of the improvements above, with the new regression test
memcheck/test/big_blocks_freed_list: with the patch, 7 errors
are detected, 6 are giving the (correct) allocation stack.
Without the patch, only 6 errors are detected, 5 errors without
allocation stack, 1 with a (wrong) allocation stack.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12202 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAllow garbage collection of the LAOG data structure(s). This avoids
sewardj [Sat, 22 Oct 2011 19:29:51 +0000 (19:29 +0000)]
Allow garbage collection of the LAOG data structure(s).  This avoids
quadratic growth on some apparently simple test cases.  Fixes #267925.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12201 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoAdd a custom filter for the drd/tests/annotate_barrier_xml regression test
bart [Sat, 22 Oct 2011 16:29:11 +0000 (16:29 +0000)]
Add a custom filter for the drd/tests/annotate_barrier_xml regression test

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12200 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoMake VALGRIND_DO_CLIENT_REQUEST more user friendly by wrapping
florian [Sat, 22 Oct 2011 15:04:05 +0000 (15:04 +0000)]
Make VALGRIND_DO_CLIENT_REQUEST more user friendly by wrapping
its replacement in do .. while (0).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12199 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRevert r12195 because it triggers suspicious error messages on systems where
bart [Sat, 22 Oct 2011 14:38:47 +0000 (14:38 +0000)]
Revert r12195 because it triggers suspicious error messages on systems where
libtool has not been installed:

Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12198 a5019735-40e9-0310-863c-91ae7b9d1cf9

12 years agoRemove the ppc-cross directory because the scripts in it are not fully functional
bart [Sat, 22 Oct 2011 13:45:49 +0000 (13:45 +0000)]
Remove the ppc-cross directory because the scripts in it are not fully functional

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12197 a5019735-40e9-0310-863c-91ae7b9d1cf9