]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agodrd/tests/Makefile.am: update EXTRA_DIST
Bart Van Assche [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

13 years agoUpdate Subversion ignore list
Bart Van Assche [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

13 years agodrd --trace-addr: make tracing 64-bit values on a 32-bit platform work
Bart Van Assche [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

13 years agoDRD, --trace-addr: enable support for Ity_F32 and Ity_F64 / temporarily disable suppo...
Bart Van Assche [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

13 years agoDRD: Eliminate a temporary variable
Bart Van Assche [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

13 years agodrd/tests/annotate_trace_memory*: add 32-bit output variants
Bart Van Assche [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

13 years agodrd/tests/pth_cleanup_handler: increase timeout
Bart Van Assche [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

13 years agoDRD: rearrange the definition of u_widen_irop[][]
Bart Van Assche [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

13 years agoUpdate Subversion ignore list
Bart Van Assche [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

13 years agoDRD: make the tracing regression test more complete
Bart Van Assche [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

13 years agoDRD: Make the code for instrumenting store operations more robust
Bart Van Assche [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

13 years agodrd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual
Bart Van Assche [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

13 years agoDRD: make DRD_(stop_tracing_address_range)() work at an acceptable speed
Bart Van Assche [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

13 years agoDRD help text: remove a superfluous dot
Bart Van Assche [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

13 years agoRemove trailing whitespace
Bart Van Assche [Sun, 11 Dec 2011 20:34:03 +0000 (20:34 +0000)] 
Remove trailing whitespace

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12293

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

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12292

13 years agoDRD: Make --trace-addr work for atomic loads and stores. To do: update manual
Bart Van Assche [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

13 years agoDRD, --trace-addr: trace stored values too
Bart Van Assche [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

13 years agoUpdate Subversion ignore lists
Bart Van Assche [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

13 years agoDRD: Two non-functional changes: adjust source code indentation and fix
Bart Van Assche [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

13 years agofix 286270 VG_(env_remove_valgrind_env_stuff)
Philippe Waroquiers [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

13 years agoFollow-up for r12281: update regtest expected output
Bart Van Assche [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

13 years agoconfigure.in: Rename the shell variable ac_have_builtin_atomic into ac_have_builtin_a...
Bart Van Assche [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

13 years agoDRD: Add test program for std::thread.
Bart Van Assche [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

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

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12283

13 years agoAdd script to assist in updating the C++ demangler from GCC trunk.
Florian Krohm [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

13 years agoUpdate the C++ demangler by importing files from GCC trunk @ r181975.
Florian Krohm [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

13 years agoAdd command-line option --fair-sched=[no|yes|try]. Use --fair-sched=try
Bart Van Assche [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

13 years agoRemove emacs modeline and/or local variables from DRD source files
Bart Van Assche [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

13 years agoGive a better help message for gdbserver when VALGRIND_LIB
Philippe Waroquiers [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

13 years agoTweaks for the benefit of the webpage.
Florian Krohm [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

13 years agoYesterday I changed dist.authors.html and dist.news.html in r442
Florian Krohm [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

13 years agoGet rid of Roland McGrath et al.
Florian Krohm [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

13 years agoconfigure: Fix compiler version check. Closes #286384.
Bart Van Assche [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

13 years agoarm-linux: fix signal returning so that if SA_RESTORER is not
Julian Seward [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

13 years agoThe sparse wa maintains the nr of elements in use at level 0.
Philippe Waroquiers [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

13 years agoClarify where to set TMPDIR to have working FIFOs.
Philippe Waroquiers [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

13 years agoNew section for 3.7.1.
Florian Krohm [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

13 years agoCallgrind: use jmpkind from VEX for side exits.
Josef Weidendorfer [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

13 years agocallgrind: remove command file polling
Josef Weidendorfer [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

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

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12267

13 years agoMerge latest changes to this file from 3_7_BRANCH.
Julian Seward [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

13 years agoRHEL 4 build fix
Bart Van Assche [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

13 years agoRemove TEST_TOOLS and TEXT_EXP_TOOLS as they are no longer needed.
Florian Krohm [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

13 years agoFix prerequisite to also require linux. So testcases get skipped
Florian Krohm [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

13 years agoWhen doing instrumentation, pay attention to the Ist.IMark.delta
Julian Seward [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

13 years agoUpdate platform_test. Add s390x-linux. Remove AIX.
Florian Krohm [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

13 years agoAlso display information about the assembler (binutils).
Florian Krohm [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

13 years agoUse normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty
Julian Seward [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

13 years agoRemove unneeded prerequisites in testcases.
Florian Krohm [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

13 years agoInclude insn_pclmulqdq.def in tarball.
Florian Krohm [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

13 years agoFix the configure test for ssse3 support. GCC needs -msse or it
Florian Krohm [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

13 years agoUpdated ignored file lists.
Florian Krohm [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

13 years agoUse snprintf() instead of sprintf()
Bart Van Assche [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

13 years agoHandle longer un-sized symbols on arm-linux-android.
Julian Seward [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

13 years agoDon't get the date of the build from the mail header. It is
Florian Krohm [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

13 years agoRewrite test to not use function clock_gettime. The purpose
Florian Krohm [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

13 years agoSome small doc updating for 3.7.0.
Julian Seward [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

13 years agoFix missing m4 quoting that autoconf-2.68 warns about.
Julian Seward [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

13 years agoGet rid of over-cautious check to make BEAM happy
Josef Weidendorfer [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

13 years agoUpdate list of ignored files.
Florian Krohm [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

13 years agoGive function copy_input_until_stop the noinline atribute.
Florian Krohm [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

13 years agoSome fixes for Android:
Julian Seward [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

13 years agoDisable the GDB server-by-default for the time being on Android, since
Julian Seward [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

13 years agoFix an out-of-bounds array access found by IBM's BEAM checker.
Florian Krohm [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

13 years agoAdd script to summarize the outcome of nightly builds.
Florian Krohm [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

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

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12230

13 years agoUpdate.
Julian Seward [Tue, 25 Oct 2011 09:05:53 +0000 (09:05 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12227

13 years agoFix #284384 (clang 3.1 -Wunused-value warnings in valgrind.h,
Julian Seward [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

13 years agoUpdate.
Julian Seward [Mon, 24 Oct 2011 08:54:56 +0000 (08:54 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12225

13 years agoDon't break fcntl locks when program does mmap. #280965.
Julian Seward [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

13 years agogdbsrv: factorize gdb version handling, fix doc and typos
Julian Seward [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

13 years agoChange the behaviour of VALGRIND_CHECK_MEM_IS_DEFINED slightly, so
Julian Seward [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

13 years agoAdd more missing files for the tarball.
Florian Krohm [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

13 years agoRemove the Qt4 regression tests because these are too hard to maintain
Bart Van Assche [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

13 years agoRemove pth_specific.c which is unused.
Florian Krohm [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

13 years agoAdd some more missing files to the tarball.
Florian Krohm [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

13 years agoInclude README_DEVELOPERS for the GDB server in the tarball.
Florian Krohm [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

13 years agohelgrind/tests/tc08_hbl2: Avoid busy-waiting
Bart Van Assche [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

13 years agohelgrind/tests/cond_timedwait_invalid: Update expected output because of r12213
Bart Van Assche [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

13 years agoCheck Makefile.am consistency before running regression tests. Closes #283813.
Bart Van Assche [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

13 years agohelgrind/tests/cond_timedwait_invalid: Port to Darwin 10.8
Bart Van Assche [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

13 years agoUpdate for 3.7.0. (What did I forget?)
Julian Seward [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

13 years agoMore update for 3.7.0 (duh.)
Julian Seward [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

13 years agoUpdate for 3.7.0.
Julian Seward [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

13 years agoUpdate the list of fixed bugs and format properly.
Julian Seward [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

13 years agoUpdate expected outputs following update of copyright dates.
Julian Seward [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

13 years agoGet a bunch more copyright dates in the right format, 20xx-2011,
Julian Seward [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

13 years agoUpdate all copyright dates, from 20xy-2010 to 20xy-2011.
Julian Seward [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

13 years agoUpdate, so as to be able to handle the 200x vs 201x change.
Julian Seward [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

13 years agoMake vgdb.c work on Android, so that the GDB server as a whole
Julian Seward [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

13 years agoAddition of v.info scheduler monitor command
Julian Seward [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

13 years agoImprovements in freelist handling for Memcheck. See #250065.
Julian Seward [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

13 years agoAllow garbage collection of the LAOG data structure(s). This avoids
Julian Seward [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

13 years agoAdd a custom filter for the drd/tests/annotate_barrier_xml regression test
Bart Van Assche [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

13 years agoMake VALGRIND_DO_CLIENT_REQUEST more user friendly by wrapping
Florian Krohm [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

13 years agoRevert r12195 because it triggers suspicious error messages on systems where
Bart Van Assche [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

13 years agoRemove the ppc-cross directory because the scripts in it are not fully functional
Bart Van Assche [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

13 years agoUpdate Subversion ignore list
Bart Van Assche [Sat, 22 Oct 2011 10:40:21 +0000 (10:40 +0000)] 
Update Subversion ignore list

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12196

13 years agoautogen.sh: Use autoreconf as recommended in the autoconf manual
Bart Van Assche [Sat, 22 Oct 2011 10:39:43 +0000 (10:39 +0000)] 
autogen.sh: Use autoreconf as recommended in the autoconf manual

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12195