]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
15 years agoMade sure that the sigqueue regression test passes on 32-bit and on 64-bit systems.
Bart Van Assche [Fri, 30 Oct 2009 11:37:35 +0000 (11:37 +0000)] 
Made sure that the sigqueue regression test passes on 32-bit and on 64-bit systems.

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

15 years agoIf a signal arrives when a thread which has just finished executing a
Tom Hughes [Thu, 29 Oct 2009 14:03:02 +0000 (14:03 +0000)] 
If a signal arrives when a thread which has just finished executing a
system call is between the blksys_committed and blksys_finished markers
in the system call routine then the post handler for the system call
was failing to run.

This commit fixes that by ensuring that the syscall status is recovered
from the guest state before the post VG_(post_syscall) is called just
as VG_(client_syscall) would normally do when the assembly wrapper
returned. Without that VG_(post_syscall) will not do anything a it
will think the system call is still running.

Fixes #212267.

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

15 years agoAdd support for ELF indirect functions. These are symbols of
Tom Hughes [Thu, 29 Oct 2009 09:27:11 +0000 (09:27 +0000)] 
Add support for ELF indirect functions. These are symbols of
type STT_GNU_IFUNC which, instead of pointing directly at the
function, point at a routine which will return the address of
the real function. Redirection of indirect functions is handled
by valgrind as follows:

  - When a redirection specification matches an indirect
    function symbol an active redirection is added in the
    normal way, but with the isIFunc flag set.

  - When a call is made to an address which matches an
    active redirection with the isIFunc flag set the call
    is redirected, but not to the target address of the
    redirection - instead it is sent to a small wrapper
    routine that is preloaded into the client.

  - The wrapper routine calls the original client routine
    and collects the result, which it reports to valgrind
    using a client request, and then returns the result to
    the caller.

  - When valgrind gets the client request it looks up the
    active redirection for the indirect function and then
    adds a new active redirection which redirects from the
    address returned by the indirection function to the
    redirection target. This new redirection does not have
    the isIFunc flag set so behaves as a normal redirection.

In addition to the above we also add a few new redirections to
memcheck to capture internal calls made by glibc to things like
strlen, as these internal calls do not go through the indirect
function and instead go direct to the chosen implementation.

Based on a patch from Dodji Seketeli and comments from Jakub
Jelinek, this commit closes bug 206013.

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

15 years agoCompiles again -- added trailing comma's that were missing from r10907.
Bart Van Assche [Thu, 29 Oct 2009 09:01:39 +0000 (09:01 +0000)] 
Compiles again -- added trailing comma's that were missing from r10907.

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

15 years agoHandle some extra aio opcodes in io_submit and io_getevents.
Tom Hughes [Wed, 28 Oct 2009 16:03:29 +0000 (16:03 +0000)] 
Handle some extra aio opcodes in io_submit and io_getevents.
Based on patch from Gabor Gomas. Fixes #209807.

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

15 years agoFixed bug #212064.
Bart Van Assche [Wed, 28 Oct 2009 10:15:06 +0000 (10:15 +0000)] 
Fixed bug #212064.

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

15 years agoFixed expected output.
Bart Van Assche [Wed, 28 Oct 2009 10:13:20 +0000 (10:13 +0000)] 
Fixed expected output.

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

15 years agoAdded a comment that explains the purpose of the sigqueue.c test program.
Bart Van Assche [Wed, 28 Oct 2009 10:13:03 +0000 (10:13 +0000)] 
Added a comment that explains the purpose of the sigqueue.c test program.

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

15 years agoAdd support for preadv and pwritev. Fixes #212149.
Tom Hughes [Wed, 28 Oct 2009 10:04:11 +0000 (10:04 +0000)] 
Add support for preadv and pwritev. Fixes #212149.

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

15 years agoAdd support for some more Intel cache descriptors to stop Core i7 based
Tom Hughes [Wed, 28 Oct 2009 09:21:53 +0000 (09:21 +0000)] 
Add support for some more Intel cache descriptors to stop Core i7 based
systems moaning.

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

15 years agoWire up inotify_init1 on ppc32-linux.
Tom Hughes [Tue, 27 Oct 2009 21:42:46 +0000 (21:42 +0000)] 
Wire up inotify_init1 on ppc32-linux.

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

15 years agoEnabled the rt_sigqueueinfo() system call for ppc64.
Bart Van Assche [Tue, 27 Oct 2009 14:55:49 +0000 (14:55 +0000)] 
Enabled the rt_sigqueueinfo() system call for ppc64.

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

15 years agoAdded a modified version of the rt_sigqueue test program provided by Konstantin Sereb...
Bart Van Assche [Tue, 27 Oct 2009 14:20:23 +0000 (14:20 +0000)] 
Added a modified version of the rt_sigqueue test program provided by Konstantin Serebryany.

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

15 years agoAdd support for the inotify_init1 system call, based on patches
Tom Hughes [Tue, 27 Oct 2009 14:17:27 +0000 (14:17 +0000)] 
Add support for the inotify_init1 system call, based on patches
from Dodji Seketeli and Jakub Jelinek. Fixes #202315.

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

15 years agoAdd epoll_ctl, epoll_pwait and epoll_wait to exp-ptrcheck. Fixes #207668.
Tom Hughes [Tue, 27 Oct 2009 09:31:39 +0000 (09:31 +0000)] 
Add epoll_ctl, epoll_pwait and epoll_wait to exp-ptrcheck. Fixes #207668.

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

15 years agoAdd support for the perf_counter_open system call. Fixes #211498.
Tom Hughes [Tue, 27 Oct 2009 09:19:26 +0000 (09:19 +0000)] 
Add support for the perf_counter_open system call. Fixes #211498.

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

15 years agoUpdate linux system calls lists to match 2.6.31.5 kernel.
Tom Hughes [Tue, 27 Oct 2009 09:01:43 +0000 (09:01 +0000)] 
Update linux system calls lists to match 2.6.31.5 kernel.

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

15 years agoRemoved the restriction that the size argument of drd_pre_mem_read_asciiz()
Bart Van Assche [Mon, 26 Oct 2009 16:14:04 +0000 (16:14 +0000)] 
Removed the restriction that the size argument of drd_pre_mem_read_asciiz()
should be less than 4096 bytes. This function is called a.o. for the path
argument of the open() system call. This path can be longer than 4096 bytes.
Should fix bug #211941.

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

15 years agoFixed an assertion failure triggered by running DRD with the command-line option...
Bart Van Assche [Tue, 20 Oct 2009 18:13:26 +0000 (18:13 +0000)] 
Fixed an assertion failure triggered by running DRD with the command-line option --trace-mutex=yes on a program using one of the ANNOTATE_HAPPENS_*() macros.

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

15 years agoAllow translations in client allocated shared memory. Fixes #210322.
Tom Hughes [Mon, 12 Oct 2009 13:53:12 +0000 (13:53 +0000)] 
Allow translations in client allocated shared memory. Fixes #210322.

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

15 years agoRenamed cellbuzz nightly build config files.
Bart Van Assche [Wed, 30 Sep 2009 13:27:58 +0000 (13:27 +0000)] 
Renamed cellbuzz nightly build config files.

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

15 years agoSwitched from SDK 3.0 to SDK 3.1.
Bart Van Assche [Wed, 30 Sep 2009 13:26:40 +0000 (13:26 +0000)] 
Switched from SDK 3.0 to SDK 3.1.

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

15 years agoUpdate ignores.
Robert Walsh [Sun, 20 Sep 2009 19:49:31 +0000 (19:49 +0000)] 
Update ignores.

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

15 years agoUpdate.
Julian Seward [Sun, 13 Sep 2009 22:50:39 +0000 (22:50 +0000)] 
Update.

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

15 years agoEnable sys_rmdir on ppc64-linux. Fixes #206903.
Julian Seward [Sun, 13 Sep 2009 13:37:16 +0000 (13:37 +0000)] 
Enable sys_rmdir on ppc64-linux.  Fixes #206903.

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

15 years agoUnmap the vdso as well as suppressing it by dropping the auxv
Tom Hughes [Mon, 7 Sep 2009 08:58:29 +0000 (08:58 +0000)] 
Unmap the vdso as well as suppressing it by dropping the auxv
entry as on some systems the vdso will be at a random address
and can conflict with things like wine that need to tightly
control where things are mapped.

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

15 years agoSupport AT_EXECFN in the ELF auxv, filling it in with the path of
Tom Hughes [Fri, 4 Sep 2009 13:03:41 +0000 (13:03 +0000)] 
Support AT_EXECFN in the ELF auxv, filling it in with the path of
the client executable valgrind is starting.

Based on a patch from John Reiser.

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

15 years agoAdd support for AT_BASE_PLATFORM in the ELF auxv.
Tom Hughes [Fri, 4 Sep 2009 12:52:16 +0000 (12:52 +0000)] 
Add support for AT_BASE_PLATFORM in the ELF auxv.
Based on patch from John Reiser.

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

15 years agoAdd a file to keep track of stuff that we currently can't/don't in
Julian Seward [Thu, 3 Sep 2009 10:45:03 +0000 (10:45 +0000)] 
Add a file to keep track of stuff that we currently can't/don't in
bugzilla.

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

15 years agoRemove ampersand from tool description string so as not to screw up
Julian Seward [Thu, 3 Sep 2009 10:41:44 +0000 (10:41 +0000)] 
Remove ampersand from tool description string so as not to screw up
XML output.  (Ashley Pittman).

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

15 years agoFix inconsistent closing of an <hthreadid> tag (Ashley Pittman).
Julian Seward [Thu, 3 Sep 2009 10:29:57 +0000 (10:29 +0000)] 
Fix inconsistent closing of an <hthreadid> tag (Ashley Pittman).

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

15 years agoFix another enum type error spotted by gcc-4.5.
Julian Seward [Mon, 31 Aug 2009 08:48:23 +0000 (08:48 +0000)] 
Fix another enum type error spotted by gcc-4.5.

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

15 years agoAdded a script to the repository for generating a PowerPC cross compiler.
Bart Van Assche [Sat, 29 Aug 2009 11:59:27 +0000 (11:59 +0000)] 
Added a script to the repository for generating a PowerPC cross compiler.

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

15 years agoAdd support for the L2 cache on Intel T4200.
Julian Seward [Fri, 28 Aug 2009 22:34:09 +0000 (22:34 +0000)] 
Add support for the L2 cache on Intel T4200.

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

15 years agoFix a couple of nits picked up by gcc-4.5, which is more warningful than 4.4.
Julian Seward [Thu, 27 Aug 2009 23:22:39 +0000 (23:22 +0000)] 
Fix a couple of nits picked up by gcc-4.5, which is more warningful than 4.4.

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

15 years agoUpdated expected output after r10874.
Bart Van Assche [Thu, 27 Aug 2009 18:09:16 +0000 (18:09 +0000)] 
Updated expected output after r10874.

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

15 years agoFixed a typo.
Bart Van Assche [Thu, 27 Aug 2009 06:16:24 +0000 (06:16 +0000)] 
Fixed a typo.

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

15 years agoRemove a trailing whitespace.
Robert Walsh [Thu, 27 Aug 2009 05:15:53 +0000 (05:15 +0000)] 
Remove a trailing whitespace.

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

15 years agoAdded output variant for Linux systems without readlinkat().
Bart Van Assche [Wed, 26 Aug 2009 18:45:46 +0000 (18:45 +0000)] 
Added output variant for Linux systems without readlinkat().

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

15 years agoAdded regression tests that verify the following behavior:
Bart Van Assche [Wed, 26 Aug 2009 18:11:18 +0000 (18:11 +0000)] 
Added regression tests that verify the following behavior:
- On Linux, whether Valgrind properly intercepts the system calls that access
  /proc/self/cmdline, /proc/<pid>/cmdline, /proc/self/exe and /proc/<pid>/exe.
- On Darwin, whether Valgrind does not modify the behavior of the system calls
  that access the aforementioned files.

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

15 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 26 Aug 2009 17:27:10 +0000 (17:27 +0000)] 
Updated Subversion ignore list.

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

15 years agoUpdated Subversion ignore lists.
Bart Van Assche [Wed, 26 Aug 2009 12:16:45 +0000 (12:16 +0000)] 
Updated Subversion ignore lists.

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

15 years agoSwitched back from dynamic detection of whether the proc filesystem
Bart Van Assche [Tue, 25 Aug 2009 20:15:41 +0000 (20:15 +0000)] 
Switched back from dynamic detection of whether the proc filesystem
is mounted to compile-time logic in order to minimize the differences
in behavior with Valgrind version 3.5.0.

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

15 years agoRenamed the function VG_(have_proc_filesystem)() into
Bart Van Assche [Tue, 25 Aug 2009 17:34:58 +0000 (17:34 +0000)] 
Renamed the function VG_(have_proc_filesystem)() into
VG_(is_procfs_mounted)(). The old name was derived from the name
of the preprocessor macro HAVE_PROC while the new name is a more
accurate description of what this function does.

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

15 years agoCompiles again on Darwin.
Bart Van Assche [Sun, 23 Aug 2009 11:17:25 +0000 (11:17 +0000)] 
Compiles again on Darwin.

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

15 years agoThe format attribute may be repeated in the function definition but does not have to.
Bart Van Assche [Sun, 23 Aug 2009 11:14:12 +0000 (11:14 +0000)] 
The format attribute may be repeated in the function definition but does not have to.

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

15 years agoFixed a declaration: function attributes must be inserted after the return type inste...
Bart Van Assche [Sun, 23 Aug 2009 11:11:36 +0000 (11:11 +0000)] 
Fixed a declaration: function attributes must be inserted after the return type instead of before, otherwise gcc 4.4 ignores the attribute declaration.

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

15 years agoThe configure-time test whether the proc filesystem is mounted (introduced
Bart Van Assche [Sun, 23 Aug 2009 09:53:27 +0000 (09:53 +0000)] 
The configure-time test whether the proc filesystem is mounted (introduced
in r10156) broke cross-compilation. This patch converts the configure-time
test into a runtime test. Should fix bug #204843.

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

15 years agoFixed a compiler warning.
Bart Van Assche [Sun, 23 Aug 2009 09:48:56 +0000 (09:48 +0000)] 
Fixed a compiler warning.

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

15 years agoBump version number on trunk.
Julian Seward [Thu, 20 Aug 2009 20:20:05 +0000 (20:20 +0000)] 
Bump version number on trunk.
(is that the correct convention, "3.6.0.SVN" ?)

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

15 years agoFixed bug #204317: regression tests none/tests/cmdline[12] fail if
Bart Van Assche [Thu, 20 Aug 2009 18:38:59 +0000 (18:38 +0000)] 
Fixed bug #204317: regression tests none/tests/cmdline[12] fail if
the gdb path detected by configure differs from /usr/bin/gdb.

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

15 years agoAdd some extra debugging to the launcher.
Tom Hughes [Thu, 20 Aug 2009 07:56:45 +0000 (07:56 +0000)] 
Add some extra debugging to the launcher.

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

15 years agoRemoved the most recently added DRD suppression pattern (was added
Bart Van Assche [Thu, 20 Aug 2009 06:07:10 +0000 (06:07 +0000)] 
Removed the most recently added DRD suppression pattern (was added
to make drd/tests/qt4_mutex pass on Fedora 11 x86_64). Further
analysis has shown that this is an issue in libQtCore that should be
fixed instead of suppressed. Will file a bug report in the Fedora
bugzilla instead.

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

15 years agoAdd an entry for the missing 2.4.1.
Nicholas Nethercote [Thu, 20 Aug 2009 00:22:10 +0000 (00:22 +0000)] 
Add an entry for the missing 2.4.1.

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

15 years agoBe consistent about the 3.5.0 release date.
Julian Seward [Wed, 19 Aug 2009 22:40:53 +0000 (22:40 +0000)] 
Be consistent about the 3.5.0 release date.

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

15 years agoFix a couple of buglets in the 3.5.0 release info.
Julian Seward [Wed, 19 Aug 2009 22:18:35 +0000 (22:18 +0000)] 
Fix a couple of buglets in the 3.5.0 release info.

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

15 years agoFinalise 3.5.0.
Julian Seward [Wed, 19 Aug 2009 11:38:54 +0000 (11:38 +0000)] 
Finalise 3.5.0.

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

15 years agoFix whitespace-skipping loop. (Konstantin Serebryany) (see #204377)
Julian Seward [Wed, 19 Aug 2009 10:32:49 +0000 (10:32 +0000)] 
Fix whitespace-skipping loop.  (Konstantin Serebryany)  (see #204377)

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

15 years agoGeneralized the most recently added suppression pattern.
Bart Van Assche [Tue, 18 Aug 2009 20:35:17 +0000 (20:35 +0000)] 
Generalized the most recently added suppression pattern.

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

15 years agoAdded explicit constructor and destructor to class IncThread.
Bart Van Assche [Tue, 18 Aug 2009 20:29:26 +0000 (20:29 +0000)] 
Added explicit constructor and destructor to class IncThread.

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

15 years agoAdded a suppression pattern for libQtCore.
Bart Van Assche [Tue, 18 Aug 2009 20:18:41 +0000 (20:18 +0000)] 
Added a suppression pattern for libQtCore.

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

15 years agoThe linker in Fedora Rawhide seems to be using ELFOSABI_LINUX as
Tom Hughes [Tue, 18 Aug 2009 14:12:48 +0000 (14:12 +0000)] 
The linker in Fedora Rawhide seems to be using ELFOSABI_LINUX as
the ABI in the ELF files it generates instead of ELFOSABI_SYSV as
has been used to date.

This was causing us to use the 64 bit backend to run 32 bit
programs as the launcher failed to identify them as 32 bit.

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

15 years agoAdd a list of fixed bugs for 3.5.0.
Julian Seward [Tue, 18 Aug 2009 13:47:31 +0000 (13:47 +0000)] 
Add a list of fixed bugs for 3.5.0.

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

15 years agoMake the ll test case use hex values for char constants instead
Vince Weaver [Tue, 18 Aug 2009 01:56:11 +0000 (01:56 +0000)] 
Make the ll test case use hex values for char constants instead
of ' delineated constants, due to gnu as bug 6878.  This caused
warnings on Fedora 10.

This addresses bug 203937.

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

15 years agoWork around a binutils limitation on SuSE 9.1
Vince Weaver [Tue, 18 Aug 2009 00:21:51 +0000 (00:21 +0000)] 
Work around a binutils limitation on SuSE 9.1
by hand-coding the 32-bit fldcw instructions,
as the assembler gives an error when
trying to assemble them.  The generated binary
is identical to one generated on a system
with working binutils.

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

15 years agoBack out r10385 (Change demangler to not use excessive space from
Julian Seward [Mon, 17 Aug 2009 16:36:11 +0000 (16:36 +0000)] 
Back out r10385 (Change demangler to not use excessive space from
stack) pending further investigations, as per discussion at
http://bugs.kde.org/show_bug.cgi?id=197988.

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

15 years agoInclude missing file, else tarball build breaks on Darwin.
Julian Seward [Mon, 17 Aug 2009 16:02:16 +0000 (16:02 +0000)] 
Include missing file, else tarball build breaks on Darwin.

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

15 years agoRemove an empty <itemizedlist> which was causing the PDF doc build to fail.
Julian Seward [Mon, 17 Aug 2009 11:27:45 +0000 (11:27 +0000)] 
Remove an empty <itemizedlist> which was causing the PDF doc build to fail.

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

15 years agoFirst tarball-test point for 3.5.0.
Julian Seward [Sun, 16 Aug 2009 23:22:51 +0000 (23:22 +0000)] 
First tarball-test point for 3.5.0.

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

15 years agoBump version.
Julian Seward [Sun, 16 Aug 2009 23:01:41 +0000 (23:01 +0000)] 
Bump version.

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

15 years agoComment that we never actually expect to see the string ]]> in a
Julian Seward [Sun, 16 Aug 2009 22:56:53 +0000 (22:56 +0000)] 
Comment that we never actually expect to see the string ]]> in a
generated suppression, and hence the problem of having to split it
into multiple CDATA blocks is moot.

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

15 years agoIncrease the maximum size of the conflict cache even more, to 30
Julian Seward [Sun, 16 Aug 2009 22:52:29 +0000 (22:52 +0000)] 
Increase the maximum size of the conflict cache even more, to 30
million.

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

15 years agoMinor changes w.r.t. --read-var-info=, threading support, and
Julian Seward [Sun, 16 Aug 2009 22:49:53 +0000 (22:49 +0000)] 
Minor changes w.r.t. --read-var-info=, threading support, and
supported glibc versions.

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

15 years agoUpdate the Helgrind manual for 3.5.0.
Julian Seward [Sun, 16 Aug 2009 22:47:02 +0000 (22:47 +0000)] 
Update the Helgrind manual for 3.5.0.

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

15 years agoppc32-linux: di_notify_mmap: accept data sections mapped rwx as well as ones
Julian Seward [Sun, 16 Aug 2009 01:48:35 +0000 (01:48 +0000)] 
ppc32-linux: di_notify_mmap: accept data sections mapped rwx as well as ones
mapped rw-.  Fixes #190820.  Really, this logic is still pretty ropey; we
could do a lot better here.

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

15 years agotweak 32/64-bit darwin stuff
Nicholas Nethercote [Sun, 16 Aug 2009 00:20:58 +0000 (00:20 +0000)] 
tweak 32/64-bit darwin stuff

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

15 years agoFix the access_extended wrapper, which was rather broken. That's what I get
Nicholas Nethercote [Sun, 16 Aug 2009 00:00:17 +0000 (00:00 +0000)] 
Fix the access_extended wrapper, which was rather broken.  That's what I get
for not testing properly.  Added a regtest for it too.  Fixes bug 200760
(again, properly this time).

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

15 years agoFollowup to r10822: send the CDATA text to the XML channel, not the
Julian Seward [Sat, 15 Aug 2009 23:33:04 +0000 (23:33 +0000)] 
Followup to r10822: send the CDATA text to the XML channel, not the
text one.  Duh.

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

15 years agoFix "make check" on Darwin.
Nicholas Nethercote [Sat, 15 Aug 2009 23:26:12 +0000 (23:26 +0000)] 
Fix "make check" on Darwin.

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

15 years agoFix a couple of errors in the revised XML generation that were
Julian Seward [Sat, 15 Aug 2009 23:05:34 +0000 (23:05 +0000)] 
Fix a couple of errors in the revised XML generation that were
spotted by Ashley Pittman:

* If I specify --xml-file=<file> but not --xml=yes I get partial
  output in the xml file.

* Using log file qualifiers with XML results in the xml for the
  qualifier being put to stdout.

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

15 years agoWhen generating XML output for suppressions, print the suppression
Julian Seward [Sat, 15 Aug 2009 22:41:51 +0000 (22:41 +0000)] 
When generating XML output for suppressions, print the suppression
both wrapped up in XML tags (as before) but also in plain text in a
sequence of CDATA blocks.  Normally only one, but in the worst case
the raw data will have ]]> in it, in which case it needs to be split
across two CDATA blocks.

This apparently simple change involved a lot of refactoring of the
suppression printing machinery:

* in the core-tool iface, change "print_extra_suppression_info" (which
  prints any auxiliary info) to "get_extra_suppression_info", which
  parks the text in a caller-supplied buffer.  Adjust tools to match.

* VG_(apply_StackTrace): accept a void* argument, which is passed to
  each invokation of the functional parameter (a poor man's closure
  implementation).

* move PRINTF_CHECK into put_tool_basics.h, where it should have been
  all along

* move private printf-into-an-XArray-of-character functions from
  m_debuginfo into m_xarray, and make them public

* gen_suppression itself: use all the above changes.  Basically we
  always generate the plaintext version into an XArray.  In text mode
  that's just printed.  In XML mode, we print the XMLery as before,
  but the plaintext version is dumped into a CDATA block too.

* update the Protocol 4 specification to match all this.

This still isn't 100% right in the sense that the CDATA block data
needs to be split across multiple blocks if it should ever contain the
CDATA end mark "]]>".  The Protocol 4 spec has this right even though
the implementation currently doesn't.

Fixes #191189.

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

15 years agoMinor update.
Nicholas Nethercote [Sat, 15 Aug 2009 21:50:44 +0000 (21:50 +0000)] 
Minor update.

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

15 years agoMinor manual update.
Bart Van Assche [Sat, 15 Aug 2009 13:31:41 +0000 (13:31 +0000)] 
Minor manual update.

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

15 years ago- Made the ANNOTATE_RWLOCK_*() macros binary compatible with Helgrind.
Bart Van Assche [Sat, 15 Aug 2009 10:50:35 +0000 (10:50 +0000)] 
- Made the ANNOTATE_RWLOCK_*() macros binary compatible with Helgrind.
- Added two additional regression tests.

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

15 years agoCapitalise and punctuate some points.
Nicholas Nethercote [Fri, 14 Aug 2009 22:34:30 +0000 (22:34 +0000)] 
Capitalise and punctuate some points.

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

15 years agoDouble the maximum size of the conflict cache.
Julian Seward [Fri, 14 Aug 2009 21:33:34 +0000 (21:33 +0000)] 
Double the maximum size of the conflict cache.

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

16 years agoUpdate. Sheesh -- did we really change that much stuff in just seven
Julian Seward [Fri, 14 Aug 2009 13:42:41 +0000 (13:42 +0000)] 
Update.  Sheesh -- did we really change that much stuff in just seven
months?

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

16 years agoMade Valgrind compile again on 32-bit systems.
Bart Van Assche [Fri, 14 Aug 2009 13:40:47 +0000 (13:40 +0000)] 
Made Valgrind compile again on 32-bit systems.

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

16 years agoMade ANNOTATE_HAPPENS_BEFORE()/_AFTER() binary compatible with Helgrind.
Bart Van Assche [Fri, 14 Aug 2009 13:25:38 +0000 (13:25 +0000)] 
Made ANNOTATE_HAPPENS_BEFORE()/_AFTER() binary compatible with Helgrind.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Fri, 14 Aug 2009 13:23:00 +0000 (13:23 +0000)] 
Updated Subversion ignore list.

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

16 years agoAdded suppression pattern for nanosleep().
Bart Van Assche [Fri, 14 Aug 2009 13:22:48 +0000 (13:22 +0000)] 
Added suppression pattern for nanosleep().

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

16 years agoInitial tests for "Skeletal support for TSan-compatible annotations"
Julian Seward [Fri, 14 Aug 2009 11:11:12 +0000 (11:11 +0000)] 
Initial tests for "Skeletal support for TSan-compatible annotations"
(r10810).  The rwlock test is kludged and needs de-kludging.

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

16 years agoSkeletal support for TSan-compatible annotations.
Julian Seward [Fri, 14 Aug 2009 11:08:24 +0000 (11:08 +0000)] 
Skeletal support for TSan-compatible annotations.

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

16 years agoShould compile again on Darwin.
Bart Van Assche [Fri, 14 Aug 2009 10:19:26 +0000 (10:19 +0000)] 
Should compile again on Darwin.

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

16 years agoRemoved the tc20_verifywrap and tc20_verifywrap2 regression tests because their behav...
Bart Van Assche [Fri, 14 Aug 2009 06:53:06 +0000 (06:53 +0000)] 
Removed the tc20_verifywrap and tc20_verifywrap2 regression tests because their behavior depends too much on implementation details of libc.

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

16 years agoReverted r10802.
Bart Van Assche [Fri, 14 Aug 2009 06:45:16 +0000 (06:45 +0000)] 
Reverted r10802.

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

16 years agoAdded a note about the fact that --read-var-info=yes increases memory
Bart Van Assche [Fri, 14 Aug 2009 06:32:20 +0000 (06:32 +0000)] 
Added a note about the fact that --read-var-info=yes increases memory
consumption of Valgrind tools.

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

16 years agoComplete more of the NEWS. Remaining XXX marks are to be filled in by
Nicholas Nethercote [Fri, 14 Aug 2009 02:41:37 +0000 (02:41 +0000)] 
Complete more of the NEWS.  Remaining XXX marks are to be filled in by
Julian.

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

16 years agoEnable Helgrind tests on Darwin -- only 4 of them fail on my machine.
Nicholas Nethercote [Fri, 14 Aug 2009 02:12:54 +0000 (02:12 +0000)] 
Enable Helgrind tests on Darwin -- only 4 of them fail on my machine.

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

16 years agoMore expected output updates because of r10783.
Bart Van Assche [Thu, 13 Aug 2009 18:08:08 +0000 (18:08 +0000)] 
More expected output updates because of r10783.

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