]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agoDocument command-line switches new in version 3.7.0
Bart Van Assche [Thu, 13 Oct 2011 18:51:47 +0000 (18:51 +0000)] 
Document command-line switches new in version 3.7.0

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

13 years agoDocument command-line switches new in version 3.7.0
Bart Van Assche [Thu, 13 Oct 2011 18:50:15 +0000 (18:50 +0000)] 
Document command-line switches new in version 3.7.0

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

13 years agodrd, XML: add xsd schema description and a script to verify the DRD XML output agains...
Bart Van Assche [Thu, 13 Oct 2011 18:16:29 +0000 (18:16 +0000)] 
drd, XML: add xsd schema description and a script to verify the DRD XML output against the xsd

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

13 years agodrd, XML tracing: move newline generation into DRD_(trace_msg)() / change tracing...
Bart Van Assche [Thu, 13 Oct 2011 18:04:30 +0000 (18:04 +0000)] 
drd, XML tracing: move newline generation into DRD_(trace_msg)() / change tracing output format slightly.

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

13 years agodrd, XML: more XML output consistency improvements
Bart Van Assche [Thu, 13 Oct 2011 16:47:53 +0000 (16:47 +0000)] 
drd, XML: more XML output consistency improvements

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

13 years agodrd, XML: make the XML output a little easier to parse
Bart Van Assche [Thu, 13 Oct 2011 16:42:49 +0000 (16:42 +0000)] 
drd, XML: make the XML output a little easier to parse

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

13 years agoUpdate the list of fixed bugs.
Julian Seward [Thu, 13 Oct 2011 16:41:17 +0000 (16:41 +0000)] 
Update the list of fixed bugs.

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

13 years agodrd/tests/filter_stderr: Don't touch XML tags
Bart Van Assche [Thu, 13 Oct 2011 16:30:05 +0000 (16:30 +0000)] 
drd/tests/filter_stderr: Don't touch XML tags

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

13 years agoFix typo spotted by Philip Waroquiers.
Julian Seward [Thu, 13 Oct 2011 16:11:58 +0000 (16:11 +0000)] 
Fix typo spotted by Philip Waroquiers.

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

13 years agodrd, XML: Use proper XML syntax
Bart Van Assche [Thu, 13 Oct 2011 16:10:49 +0000 (16:10 +0000)] 
drd, XML: Use proper XML syntax

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

13 years agoRemove an obsolete regression test output file
Bart Van Assche [Wed, 12 Oct 2011 17:29:23 +0000 (17:29 +0000)] 
Remove an obsolete regression test output file

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

13 years agoSet svn:executable property
Bart Van Assche [Wed, 12 Oct 2011 06:01:39 +0000 (06:01 +0000)] 
Set svn:executable property

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

13 years agodrd: Enable XML output. See also #282949. To do: document the output format.
Bart Van Assche [Tue, 11 Oct 2011 19:08:39 +0000 (19:08 +0000)] 
drd: Enable XML output. See also #282949. To do: document the output format.

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

13 years agoEmit <state>RUNNING</state> earlier
Bart Van Assche [Tue, 11 Oct 2011 18:50:14 +0000 (18:50 +0000)] 
Emit <state>RUNNING</state> earlier

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

13 years agoAdd format specifier %ps: only escape XML-metacharacters for --xml=yes
Bart Van Assche [Tue, 11 Oct 2011 18:49:35 +0000 (18:49 +0000)] 
Add format specifier %ps: only escape XML-metacharacters for --xml=yes

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

13 years agoMake sure that exp-sgcheck/tests/stackerr passes on openSUSE 11.4 x86
Bart Van Assche [Tue, 11 Oct 2011 18:17:48 +0000 (18:17 +0000)] 
Make sure that exp-sgcheck/tests/stackerr passes on openSUSE 11.4 x86

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

13 years agoRevert r12128 because it triggers an assertion failure on one of the nightly build...
Bart Van Assche [Tue, 11 Oct 2011 10:56:11 +0000 (10:56 +0000)] 
Revert r12128 because it triggers an assertion failure on one of the nightly build systems

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

13 years agoUpdate expected output - the ppc output changed due to r12038.
Bart Van Assche [Mon, 10 Oct 2011 06:10:11 +0000 (06:10 +0000)] 
Update expected output - the ppc output changed due to r12038.

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

13 years agoFirst round of changes to get make dist working again.
Florian Krohm [Sun, 9 Oct 2011 23:28:47 +0000 (23:28 +0000)] 
First round of changes to get make dist working again.

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

13 years agoThis patch by Philippe Waroquiers, philippe.waroquiers@skynet.be
Florian Krohm [Sun, 9 Oct 2011 19:58:19 +0000 (19:58 +0000)] 
This patch by Philippe Waroquiers, philippe.waroquiers@skynet.be
replaces r12124. His analysis of the testcase failure:

I think I understand what is happening: even if the ptrace invoker functionality
is not needed, the timeout to invoke might expire, which then leads
to a message produced by vgdb if ptrace is restricted by the kernel.

I think the best way to fix this is to add the option --max-invoke-ms=0 to vgdb.

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

13 years agonone/tests/shell: An attempt to compensate for variations in bash error messages
Bart Van Assche [Sun, 9 Oct 2011 08:48:22 +0000 (08:48 +0000)] 
none/tests/shell: An attempt to compensate for variations in bash error messages

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

13 years agomemcheck/tests/err_disable4: Increase thread stack size a little
Bart Van Assche [Sun, 9 Oct 2011 08:05:08 +0000 (08:05 +0000)] 
memcheck/tests/err_disable4: Increase thread stack size a little

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

13 years agoUpdate exp file. Back trace changed due to r12108.
Florian Krohm [Sat, 8 Oct 2011 15:58:26 +0000 (15:58 +0000)] 
Update exp file. Back trace changed due to r12108.

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

13 years agoOn systems where /proc/sys/kernel/yama/ptrace_scope exists we need to
Florian Krohm [Sat, 8 Oct 2011 15:27:36 +0000 (15:27 +0000)] 
On systems where /proc/sys/kernel/yama/ptrace_scope exists we need to
check its value to avoid testcase failure.

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

13 years agoFilter around some debuginfo problems with ld.so on SLES11
Florian Krohm [Sat, 8 Oct 2011 12:41:12 +0000 (12:41 +0000)] 
Filter around some debuginfo problems with ld.so on SLES11
Patch by Christian Borntraeger (borntraeger@de.ibm.com).

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

13 years agodrd: Use Vg_DebugMsg for debug messages
Bart Van Assche [Sat, 8 Oct 2011 08:56:27 +0000 (08:56 +0000)] 
drd: Use Vg_DebugMsg for debug messages

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

13 years agodrd: Convert a few VG_(message)() calls into VG_(maybe_record_error)() calls
Bart Van Assche [Sat, 8 Oct 2011 08:54:57 +0000 (08:54 +0000)] 
drd: Convert a few VG_(message)() calls into VG_(maybe_record_error)() calls

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

13 years agoDRD, refactoring: Introduce DRD_(trace_msg)()
Bart Van Assche [Sat, 8 Oct 2011 08:29:29 +0000 (08:29 +0000)] 
DRD, refactoring: Introduce DRD_(trace_msg)()

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

13 years agoAdd a new .stdout.exp file, for older glibcs that print negative nans
Julian Seward [Fri, 7 Oct 2011 12:45:49 +0000 (12:45 +0000)] 
Add a new .stdout.exp file, for older glibcs that print negative nans
without a minus sign.

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

13 years agoRemove two junk commas that got committed in r12117.
Julian Seward [Fri, 7 Oct 2011 12:41:48 +0000 (12:41 +0000)] 
Remove two junk commas that got committed in r12117.

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

13 years agoAdd a new .stdout.exp file, for older glibcs that print negative nans
Julian Seward [Fri, 7 Oct 2011 12:20:46 +0000 (12:20 +0000)] 
Add a new .stdout.exp file, for older glibcs that print negative nans
without a minus sign.

Also, fix incorrect filename in Makefile.am committed in r12116.

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

13 years agoAdd a new .stdout.exp file, for older glibcs that print negative nans
Julian Seward [Fri, 7 Oct 2011 12:14:05 +0000 (12:14 +0000)] 
Add a new .stdout.exp file, for older glibcs that print negative nans
without a minus sign.

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

13 years agoAdd a new .stdout.exp file, for older glibcs that print negative nans
Julian Seward [Fri, 7 Oct 2011 12:10:27 +0000 (12:10 +0000)] 
Add a new .stdout.exp file, for older glibcs that print negative nans
without a minus sign.  (sigh)

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

13 years agoperf/tinycc.c: Avoid that clang warns about out-of-bounds accesses for
Bart Van Assche [Fri, 7 Oct 2011 09:49:44 +0000 (09:49 +0000)] 
perf/tinycc.c: Avoid that clang warns about out-of-bounds accesses for
array tab[] and also avoid that clang warns about the formatting flag 'L'.

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

13 years agomemcheck/tests/unit_libcbase.c: Convert from old-style gcc designated
Bart Van Assche [Fri, 7 Oct 2011 09:45:14 +0000 (09:45 +0000)] 
memcheck/tests/unit_libcbase.c: Convert from old-style gcc designated
initializers to C99-style designated initializers. According to the gcc manual,
the former syntax is obsolete since gcc 2.5
(see also http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Designated-Inits.html).

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

13 years agomemcheck/tests/err_disable4: Reduce memory footprint further.
Bart Van Assche [Fri, 7 Oct 2011 09:41:58 +0000 (09:41 +0000)] 
memcheck/tests/err_disable4: Reduce memory footprint further.

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

13 years agoinclude/vki/vki-linux.h: Remove __attribute_const__ definition since it
Bart Van Assche [Fri, 7 Oct 2011 09:41:14 +0000 (09:41 +0000)] 
include/vki/vki-linux.h: Remove __attribute_const__ definition since it
isn't used anywhere inside the Valgrind project.

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

13 years agoAvoid that using any of the VALGRIND_DISABLE_ERROR_REPORTING,
Bart Van Assche [Fri, 7 Oct 2011 09:39:56 +0000 (09:39 +0000)] 
Avoid that using any of the VALGRIND_DISABLE_ERROR_REPORTING,
VALGRIND_ENABLE_ERROR_REPORTING, VALGRIND_DO_ADDED_LEAK_CHECK,
VALGRIND_DO_CHANGED_LEAK_CHECK macros causes gcc 4.6 to print
a warning message about assigning a value to an unused variable.

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

13 years agoUpdate Subversion ignore list
Bart Van Assche [Thu, 6 Oct 2011 19:09:06 +0000 (19:09 +0000)] 
Update Subversion ignore list

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

13 years agoFormat functions: change format specifier %t into %pS. Remove the _no_f_c formatting...
Bart Van Assche [Thu, 6 Oct 2011 19:08:37 +0000 (19:08 +0000)] 
Format functions: change format specifier %t into %pS. Remove the _no_f_c formatting function variants.

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

13 years agohelgrind/tests/pth_barrier*: Update expected output after drd/tests/pth_barrier.c...
Bart Van Assche [Thu, 6 Oct 2011 06:39:02 +0000 (06:39 +0000)] 
helgrind/tests/pth_barrier*: Update expected output after drd/tests/pth_barrier.c changes

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

13 years agoDeclare _exit as "noreturn". This will avoid a GCC warning.
Florian Krohm [Wed, 5 Oct 2011 14:51:55 +0000 (14:51 +0000)] 
Declare _exit as "noreturn". This will avoid a GCC warning.

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

13 years agoFix GCC warnings about incompatible pointer assignments.
Florian Krohm [Wed, 5 Oct 2011 14:49:12 +0000 (14:49 +0000)] 
Fix GCC warnings about incompatible pointer assignments.

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

13 years agoDeclare _exit as "noreturn". This will avoid a GCC warning.
Florian Krohm [Wed, 5 Oct 2011 14:36:00 +0000 (14:36 +0000)] 
Declare _exit as "noreturn". This will avoid a GCC warning.

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

13 years agodrd, s390: Make the annotate_ignore_* and the pth_barrier* tests produce
Bart Van Assche [Wed, 5 Oct 2011 13:10:30 +0000 (13:10 +0000)] 
drd, s390: Make the annotate_ignore_* and the pth_barrier* tests produce
the same output on s390 as on other systems (not tested yet).

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

13 years agoMore fixes for unaligned accesses in the debuginfo code. BZ#282527.
Tom Hughes [Wed, 5 Oct 2011 08:48:07 +0000 (08:48 +0000)] 
More fixes for unaligned accesses in the debuginfo code. BZ#282527.

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

13 years agoppc64-linux only: fix incorrect line number reports in client requests
Julian Seward [Wed, 5 Oct 2011 07:39:07 +0000 (07:39 +0000)] 
ppc64-linux only: fix incorrect line number reports in client requests
that create stack traces.  Fixes #283243.

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

13 years agoAttempt to unbreak this testcase on systems with GCC 4.5.1 and newer.
Florian Krohm [Wed, 5 Oct 2011 03:29:57 +0000 (03:29 +0000)] 
Attempt to unbreak this testcase on systems with GCC 4.5.1 and newer.
I suspect the breakage is related to GCC's debug info.
Replace initialization with explicit assignment statement.

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

13 years agoChange the filter order. Filename base backtrace filtering
Florian Krohm [Wed, 5 Oct 2011 03:09:01 +0000 (03:09 +0000)] 
Change the filter order. Filename base backtrace filtering
must come first before the filename gets changed to bogus.S
This should unbreak the failure on x86_64. But I can't test it.
We shall see.

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

13 years agoUpdate exp files for memcheck's supp_unknown testcase.
Florian Krohm [Wed, 5 Oct 2011 02:34:33 +0000 (02:34 +0000)] 
Update exp files for memcheck's supp_unknown testcase.
Promote the s390x exp file to be the golden one because it has the
correct result. Add an exp-kfail file for those platforms where the testcase
fails (x86).

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

13 years agoRewrite badjump and badjump2 such that the error occurs now on the
Florian Krohm [Tue, 4 Oct 2011 20:14:59 +0000 (20:14 +0000)] 
Rewrite badjump and badjump2 such that the error occurs now on the
same line for all architectures.
Promote the s390x exp file to be the golden one because it has the
correct result. Add exp-kfail files for those platforms where the testcases
fail (x86).

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

13 years agoChange the nightly script to gather information about the run
Florian Krohm [Tue, 4 Oct 2011 16:53:34 +0000 (16:53 +0000)] 
Change the nightly script to gather information about the run
and its environment.
Simplify z900.sendmail accordingly.

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

13 years agoHelgrind and exp-sgcheck, XML error reporting: move the code printing <kind>...<...
Bart Van Assche [Tue, 4 Oct 2011 16:28:42 +0000 (16:28 +0000)] 
Helgrind and exp-sgcheck, XML error reporting: move the code printing <kind>...</kind> out of a switch statement.

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

13 years agoFix execve2 testcase.
Florian Krohm [Tue, 4 Oct 2011 03:55:04 +0000 (03:55 +0000)] 
Fix execve2 testcase.
First, due to a typo in Makefile.am it was compiled with the wrong flags.
Secondly, the testcase gives an incorrect backtrace on x86 (missing the
line where the error occurs). Updated the generic exp to contain the
correct result and added exp-kfail for platforms where this test fails.

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

13 years agoTurns out there is at least one version of glibc tat contains
Florian Krohm [Tue, 4 Oct 2011 03:33:59 +0000 (03:33 +0000)] 
Turns out there is at least one version of glibc tat contains
a file name writev.c. This screws our filename based backtrace
filtering. Rename writev to writev1 to avoid that problem.

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

13 years agoThe testcases execve1 and fwrite actually fail on x86 in the sense that
Florian Krohm [Tue, 4 Oct 2011 03:15:38 +0000 (03:15 +0000)] 
The testcases execve1 and fwrite actually fail on x86 in the sense that
they produce an incomplete backtrace. Added exp-kfail files to capture the
results with the incomplete backtraces. Updated the generic exp files.

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

13 years agoImprove filtering of backtrace noise in the memcheck bucket
Florian Krohm [Mon, 3 Oct 2011 23:39:54 +0000 (23:39 +0000)] 
Improve filtering of backtrace noise in the memcheck bucket
and update exp files accordingly. This works well for x86
and all testcases pass on my machine.
New file filter_memcheck to do the work.
There is a bit of a ripple here as filter_memcheck requires
command line arguments to be passed in. So all users of
filter_memcheck (direct or indirect) were updated as well.
filter_stderr was simplified as was filter_libc.

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

13 years agoRename testcase from execve to execve1.
Florian Krohm [Mon, 3 Oct 2011 23:05:56 +0000 (23:05 +0000)] 
Rename testcase from execve to execve1.
The reason is that the point of failure is in glibc
in a file named execve.c  The backtrace filtering
(which is filename based) cannot distinguish the
two execve.c file names. Renaming the testcsae does the
trick.

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

13 years agoFix another read_UInt that should be read_Addr.
Tom Hughes [Mon, 3 Oct 2011 17:01:57 +0000 (17:01 +0000)] 
Fix another read_UInt that should be read_Addr.

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

13 years agoUpdate names of vgdb pipes in documentation. Followup to r12071.
Florian Krohm [Mon, 3 Oct 2011 16:55:26 +0000 (16:55 +0000)] 
Update names of vgdb pipes in documentation. Followup to r12071.

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

13 years agoLimit number of backtrace frames to 3 so as to avoid junk frames.
Julian Seward [Mon, 3 Oct 2011 16:15:16 +0000 (16:15 +0000)] 
Limit number of backtrace frames to 3 so as to avoid junk frames.

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

13 years agoFix multiple problems with this test:
Julian Seward [Mon, 3 Oct 2011 16:10:45 +0000 (16:10 +0000)] 
Fix multiple problems with this test:

* when creating threads, just ask for a 256k stack size, since creating
  498 threads each with the default 8M stack size fails on 32 bit machines.

* limit number of callers to 3 so as to remove junk frames that cause
  different output on 32 vs 64 bit targets.

* add a proper self-check at the end, to verify the number of detected errors
  is as expected

* update output accordingly

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

13 years agoAlso parse stdoutB_filter_args and stderrB_filter_args.
Florian Krohm [Mon, 3 Oct 2011 00:19:05 +0000 (00:19 +0000)] 
Also parse stdoutB_filter_args and stderrB_filter_args.
Forgot to do that in r12045.

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

13 years agoAdd read_Addr and use it so that we work on systems where an address
Tom Hughes [Sun, 2 Oct 2011 12:12:38 +0000 (12:12 +0000)] 
Add read_Addr and use it so that we work on systems where an address
is bigger that an int.

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

13 years agoAvoid using direct access to read multi-byte values from DWARF files
Tom Hughes [Sun, 2 Oct 2011 10:49:35 +0000 (10:49 +0000)] 
Avoid using direct access to read multi-byte values from DWARF files
and use read_Type routines instead as they work rather better on strict
aligned (or semi-strict a la ARM) machines. Fixes #282527.

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

13 years agoUse read_UInt to get the CRC as it may not be aligned. Fixes #283154.
Tom Hughes [Sun, 2 Oct 2011 10:22:08 +0000 (10:22 +0000)] 
Use read_UInt to get the CRC as it may not be aligned. Fixes #283154.

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

13 years agoMove read_<type> routines from readdwarf.c to be module level
Tom Hughes [Sun, 2 Oct 2011 10:20:12 +0000 (10:20 +0000)] 
Move read_<type> routines from readdwarf.c to be module level
routines in misc.c so that other parts of the debuginfo module
can access them.

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

13 years agoUpdate for x86.
Florian Krohm [Sun, 2 Oct 2011 03:06:39 +0000 (03:06 +0000)] 
Update for x86.
r8744 gave mainSort the "noinline" attribute, thereby changing
the backtrace. Nox fixed.

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

13 years agoAdd exp file for x86. This test is known to fail on that platform
Florian Krohm [Sun, 2 Oct 2011 00:38:22 +0000 (00:38 +0000)] 
Add exp file for x86. This test is known to fail on that platform
by omitting a frame in the backtrace. Hence, the "kfail" in the
file name.

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

13 years agoUpdate for x86. This should have happened in r11741 which
Florian Krohm [Sun, 2 Oct 2011 00:18:29 +0000 (00:18 +0000)] 
Update for x86. This should have happened in r11741 which
changed the message format.

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

13 years agoChange the filtering of helgrind's XML output.
Florian Krohm [Sat, 1 Oct 2011 21:07:32 +0000 (21:07 +0000)] 
Change the filtering of helgrind's XML output.
New file helgrind/tests/filter_xml.
Update expected result for tc06_two_races_xml.

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

13 years agoUpdate re OSX 10.7.
Julian Seward [Fri, 30 Sep 2011 17:55:13 +0000 (17:55 +0000)] 
Update re OSX 10.7.

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

13 years ago* (marginally) fix debug printing for new 10.7 syscalls
Julian Seward [Fri, 30 Sep 2011 17:51:21 +0000 (17:51 +0000)] 
* (marginally) fix debug printing for new 10.7 syscalls
* also, remove SfMayBlock annotations for those that obviously won't

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

13 years agoFix a couple of buffer overruns. n-i-bz.
Julian Seward [Fri, 30 Sep 2011 07:11:13 +0000 (07:11 +0000)] 
Fix a couple of buffer overruns.  n-i-bz.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

13 years agoMake wqthread_hijack not assert on x86-darwin. Same hack as
Julian Seward [Fri, 30 Sep 2011 07:05:17 +0000 (07:05 +0000)] 
Make wqthread_hijack not assert on x86-darwin.  Same hack as
for the 64-bit case.

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

13 years agoUse <sys/mman.h> instead of <linux/mman.h> to fix a compile problem
Florian Krohm [Fri, 30 Sep 2011 01:27:26 +0000 (01:27 +0000)] 
Use <sys/mman.h> instead of <linux/mman.h> to fix a compile problem
on SLES 10.  Patch by Rich Coe (rcoe@wi.rr.com). Fixes bugzilla #282238.

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

13 years agoChange the name of the pipes for vgdb by adding username and hostname.
Florian Krohm [Thu, 29 Sep 2011 21:20:49 +0000 (21:20 +0000)] 
Change the name of the pipes for vgdb by adding username and hostname.
Those are obtained by looking at some commonly defined environment
variables.
That should help with problems where /tmp is shared or process IDs get
recycled. We had some intermittent nightly build issues because of that.
Partial fix for bugzilla #280757.

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

13 years agoMake {amd64,x86}-darwin use the direct implementations of
Julian Seward [Thu, 29 Sep 2011 18:29:41 +0000 (18:29 +0000)] 
Make {amd64,x86}-darwin use the direct implementations of
VG_MINIMAL_SETJMP and VG_MINIMAL_LONGJMP introduced in r12067.

With this commit, it should be possible to build a working 64 bit
Valgrind using the default gcc as supplied with Xcode 4.1 on OSX 10.7.

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

13 years agoUn-break the compiler version check on Darwin (introduced by r12066)
Julian Seward [Thu, 29 Sep 2011 18:18:37 +0000 (18:18 +0000)] 
Un-break the compiler version check on Darwin (introduced by r12066)
without (hopefully) breaking it on any other platform.

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

13 years agoBe a bit more careful about the return type for VG_MINIMAL_SETJMP,
Julian Seward [Thu, 29 Sep 2011 17:34:17 +0000 (17:34 +0000)] 
Be a bit more careful about the return type for VG_MINIMAL_SETJMP,
both the home-grown versions and the versions that feed through to
__builtin_setjmp.

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

13 years agox86-linux, amd64-linux: Implement VG_MINIMAL_SETJMP and
Julian Seward [Thu, 29 Sep 2011 17:33:58 +0000 (17:33 +0000)] 
x86-linux, amd64-linux: Implement VG_MINIMAL_SETJMP and
VG_MINIMAL_LONGJMP directly, rather than using __builtin_setjmp
and __builtin_longjmp, since clang-2.9 miscompiles the latter
(by completely ignoring it.)

Also, add comment about the return type for VG_MINIMAL_SETJMP.

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

13 years agoAccept clang-2.9 as an allowable compiler.
Julian Seward [Thu, 29 Sep 2011 17:30:13 +0000 (17:30 +0000)] 
Accept clang-2.9 as an allowable compiler.

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

13 years agoCompile everything with -fno-builtin, so as to disable LLVM's
Julian Seward [Thu, 29 Sep 2011 17:29:53 +0000 (17:29 +0000)] 
Compile everything with -fno-builtin, so as to disable LLVM's
idiom-recognition optimisation.  This identifies memset-style
loops and turns them into calls to memset, which in this case
leads to infinite recursion because it does this transformations
in VG_(memset), which is called from memset(), which we also define.

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

13 years agoFix a regression (none/tests/cmdline[12]) which was introduced
Florian Krohm [Thu, 29 Sep 2011 14:26:38 +0000 (14:26 +0000)] 
Fix a regression (none/tests/cmdline[12]) which was introduced
by r12063.
VG_(clo_vgdb_prefix) was used before it was initialized.

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

13 years agoRemove hardwired /tmp directory in vgdb. Honour VG_TMPDIR
Florian Krohm [Thu, 29 Sep 2011 03:03:45 +0000 (03:03 +0000)] 
Remove hardwired /tmp directory in vgdb. Honour VG_TMPDIR
and TMPDIR which was introduced when fixing bugzilla #267020.
Factor out VG_(tmpdir). New function VG_(vgdb_path_prefix).
Partially fixes bugzilla #280757.

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

13 years agoFix a NULL pointer dereference issue spotted by IBM's BEAM checker.
Florian Krohm [Wed, 28 Sep 2011 17:43:44 +0000 (17:43 +0000)] 
Fix a NULL pointer dereference issue spotted by IBM's BEAM checker.

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

13 years agoUpdate how-to-build documentation.
Julian Seward [Tue, 27 Sep 2011 11:54:01 +0000 (11:54 +0000)] 
Update how-to-build documentation.

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

13 years agoAdd support for hardware-specific ioctl wrappers on Android,
Julian Seward [Tue, 27 Sep 2011 11:40:24 +0000 (11:40 +0000)] 
Add support for hardware-specific ioctl wrappers on Android,
starting with those required for the graphics hardware on
Nexus S.

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

13 years agoAndroid: add wrappers for ashmem and binder ioctls. From the AOSP
Julian Seward [Tue, 27 Sep 2011 10:26:52 +0000 (10:26 +0000)] 
Android: add wrappers for ashmem and binder ioctls.  From the AOSP
port of Valgrind.

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

13 years agoUn-break debuginfo image finding on non-Android Linuxes following
Julian Seward [Tue, 27 Sep 2011 10:24:52 +0000 (10:24 +0000)] 
Un-break debuginfo image finding on non-Android Linuxes following
r12057, duh.

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

13 years agoAdd a facility for ad-hoc location of debuginfo files on Android.
Julian Seward [Tue, 27 Sep 2011 09:26:39 +0000 (09:26 +0000)] 
Add a facility for ad-hoc location of debuginfo files on Android.
All other platforms are unaffected.

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

13 years agoML_(read_elf_debug_info): (no functional change, I hope): fix up
Julian Seward [Tue, 27 Sep 2011 08:57:41 +0000 (08:57 +0000)] 
ML_(read_elf_debug_info): (no functional change, I hope): fix up
confusing control flow, by separating the logic for "is there a
debuginfo file to be found?" from that of "if a debuginfo file was
found, let's record certain facts (section offsets etc) about it."

This makes it possible to add arbitrary other schemes for finding
debuginfo files without further complicating the existing control flow.

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

13 years agoAndroid only: don't ignore zero-sized symbols, since some of them
Julian Seward [Tue, 27 Sep 2011 08:06:14 +0000 (08:06 +0000)] 
Android only: don't ignore zero-sized symbols, since some of them
are ones that m_redir really needs to see.

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

13 years agoarm_linux_android: intercept __dl_strcmp and __dl_strlen in
Julian Seward [Mon, 26 Sep 2011 20:20:19 +0000 (20:20 +0000)] 
arm_linux_android: intercept __dl_strcmp and __dl_strlen in
/system/bin/linker, for the usual reason.

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

13 years agoInitial suppressions from Android 2.3.5 (on ARM).
Julian Seward [Mon, 26 Sep 2011 20:18:29 +0000 (20:18 +0000)] 
Initial suppressions from Android 2.3.5 (on ARM).

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

13 years agoHeap profiler: reduce threshold at which a new profile is shown for
Julian Seward [Mon, 26 Sep 2011 20:17:41 +0000 (20:17 +0000)] 
Heap profiler: reduce threshold at which a new profile is shown for
an arena from 10% to 5%.

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

13 years agoPretty up the debugging hack that allows printing of stack traces
Julian Seward [Mon, 26 Sep 2011 20:16:15 +0000 (20:16 +0000)] 
Pretty up the debugging hack that allows printing of stack traces
for selected syscalls.

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

13 years agoRe-enable the use of loctab (line number table) trimming, for a 5% to
Julian Seward [Mon, 26 Sep 2011 20:15:07 +0000 (20:15 +0000)] 
Re-enable the use of loctab (line number table) trimming, for a 5% to
10% reduction in debuginfo storage requirements for large applications
on 32 bit platforms.  This code had been present since the MacOSX port
was merged but had been disabled.  Remove equivalent code for
shrinking the symbol tables since they are much (4 x) smaller than the
line number tables, trimming them is hardly worth the effort.

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

13 years agorun_a_thread_NORETURN: add trashed-register annotations for the magic
Julian Seward [Mon, 26 Sep 2011 17:50:46 +0000 (17:50 +0000)] 
run_a_thread_NORETURN: add trashed-register annotations for the magic
bits of assembly which finally cause the thread to exit.  How this
ever worked before, on any platform, beats me.  The lack was causing
some Android builds to segfault at thread exit.  Only the s390 version
was correct.

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

13 years agoPrint a slightly less useless failure message if VG_(mkstemp) fails to
Julian Seward [Mon, 26 Sep 2011 16:46:04 +0000 (16:46 +0000)] 
Print a slightly less useless failure message if VG_(mkstemp) fails to
create a temp file, as often happens on Android.

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