]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agoFix the system call wrapper for the clone system call (s390x).
Florian Krohm [Tue, 13 Sep 2011 14:57:35 +0000 (14:57 +0000)] 
Fix the system call wrapper for the clone system call (s390x).
Fixes #281883. Patch by Christian Borntraeger (borntraeger@de.ibm.com).

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

13 years agoAdd an .exp for s390x. Certain older kernels had a bug in providing
Florian Krohm [Mon, 12 Sep 2011 20:22:38 +0000 (20:22 +0000)] 
Add an .exp for s390x. Certain older kernels had a bug in providing
an invalid siginfo for SIGBUS. Hunted down and fixed by
Christian Borntraeger (borntraeger@de.ibm.com).

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

13 years agoThis testcase is sensitive to some sleep period. On slower
Florian Krohm [Sun, 11 Sep 2011 14:39:02 +0000 (14:39 +0000)] 
This testcase is sensitive to some sleep period. On slower
machines we need to sleep longer. See bugzilla #268623 comment #2.
So let's sleep 500ms instead of 100ms, get rid of the load
barrier and enable the testcase for s390x again.

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

13 years agoAdd more .exp files for s390 due to GCC's use of the MVC insn.
Florian Krohm [Sat, 10 Sep 2011 21:46:08 +0000 (21:46 +0000)] 
Add more .exp files for s390 due to GCC's use of the MVC insn.

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

13 years agoBack out r12026; instead add a new .exp file for s390x.
Florian Krohm [Sat, 10 Sep 2011 20:54:17 +0000 (20:54 +0000)] 
Back out r12026; instead add a new .exp file for s390x.

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

13 years agoAdd config files for z900 nightly build
Florian Krohm [Sat, 10 Sep 2011 18:59:10 +0000 (18:59 +0000)] 
Add config files for z900 nightly build

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

13 years agoSensitivity fix. On slow machines (s390x z900) need to sleep longer.
Florian Krohm [Sat, 10 Sep 2011 18:28:57 +0000 (18:28 +0000)] 
Sensitivity fix. On slow machines (s390x z900) need to sleep longer.

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

13 years agoFor s390x we also need to accept a reported size of 1.
Florian Krohm [Sat, 10 Sep 2011 17:56:21 +0000 (17:56 +0000)] 
For s390x we also need to accept a reported size of 1.
This is due to older versions of GCC who use the MVC insn for
assignments and that creates a sequence of 1-byte memory accesses.

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

13 years agoUpdate build instructions.
Julian Seward [Sat, 10 Sep 2011 11:28:51 +0000 (11:28 +0000)] 
Update build instructions.

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

13 years agoML_(read_elf_debug_info): debug printing of program header entries: print file
Julian Seward [Sat, 10 Sep 2011 11:21:59 +0000 (11:21 +0000)] 
ML_(read_elf_debug_info): debug printing of program header entries: print file
offsets consistently in base 10, not 16.

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

13 years agoML_(read_elf_debug_info): if we exit from this routine via the BAD
Julian Seward [Sat, 10 Sep 2011 11:20:26 +0000 (11:20 +0000)] 
ML_(read_elf_debug_info): if we exit from this routine via the BAD
macro, set di->soname back to NULL, so that if we later reenter with
the same 'di', we don't fall over the initial di->soname == NULL
assertion.

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

13 years agoAvoid excessive fragmentation in m_mallocfree by munmapping unused
Julian Seward [Sat, 10 Sep 2011 10:17:35 +0000 (10:17 +0000)] 
Avoid excessive fragmentation in m_mallocfree by munmapping unused
superblocks in some circumstances (second attempt).  Bug 250101
comment 15.  (Philippe Waroquiers, philippe.waroquiers@skynet.be).

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

13 years agoProperly preserve FP registers (and, more generally, the entire guest
Julian Seward [Sat, 10 Sep 2011 09:10:03 +0000 (09:10 +0000)] 
Properly preserve FP registers (and, more generally, the entire guest
state) across signal deliveries.  Fixes #281488.

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

13 years agoAdditional .exp file for s390x.
Florian Krohm [Sat, 10 Sep 2011 03:28:11 +0000 (03:28 +0000)] 
Additional .exp file for s390x.

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

13 years agoDisable testcase on s390x. Still hangs occasionally.
Florian Krohm [Fri, 9 Sep 2011 20:58:13 +0000 (20:58 +0000)] 
Disable testcase on s390x. Still hangs occasionally.

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

13 years agoFix testcase for s390x. Provide implementation of XCHG_M_R.
Florian Krohm [Fri, 9 Sep 2011 18:37:55 +0000 (18:37 +0000)] 
Fix testcase for s390x. Provide implementation of XCHG_M_R.

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

13 years agoAdd a prerequisite because drd/tests/annotate_smart_pointer is not always
Florian Krohm [Fri, 9 Sep 2011 15:50:45 +0000 (15:50 +0000)] 
Add a prerequisite because drd/tests/annotate_smart_pointer is not always
built.

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

13 years agoAdd config files for nightly s390 builds.
Florian Krohm [Fri, 9 Sep 2011 02:56:00 +0000 (02:56 +0000)] 
Add config files for nightly s390 builds.

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

13 years agoSupport CLCL and MVCL instructions. This is the non-VEX part.
Florian Krohm [Thu, 8 Sep 2011 15:39:10 +0000 (15:39 +0000)] 
Support CLCL and MVCL instructions. This is the non-VEX part.
Fixes #279027.  See VEX r2200.

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

13 years agoMake some vgdb interface to callgrind_control internal
Josef Weidendorfer [Tue, 6 Sep 2011 19:08:35 +0000 (19:08 +0000)] 
Make some vgdb interface to callgrind_control internal

The vgdb "status" monitor command is still available, but
used for pretty printing of status information now (acutally,
just some place holder for real information up to now: just
number of running threads). The internal interface used by
callgrind_control to provide stack traces and event counts
is using "status internal", and is not documented, as the
format is not for human consumption.

This also adds some documentation.

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

13 years agoAllow overriding not-supported auto-detected cache configs
Josef Weidendorfer [Tue, 6 Sep 2011 19:08:31 +0000 (19:08 +0000)] 
Allow overriding not-supported auto-detected cache configs

Patch by Philippe Waroquiers, slightly changed.

This actually was a regression from 3.6.1, but the patch
also improves on printed messages, and refactors common
code between cachegrind and callgrind.

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

13 years agoChange get_svn_revision to also work with older subversion releases
Florian Krohm [Tue, 6 Sep 2011 17:17:41 +0000 (17:17 +0000)] 
Change get_svn_revision to also work with older subversion releases
that do not allow specifying a revision with svn info.

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

13 years agoPrint the (pseudo-)soname when doing debug printing for Mach-O
Julian Seward [Tue, 6 Sep 2011 11:26:31 +0000 (11:26 +0000)] 
Print the (pseudo-)soname when doing debug printing for Mach-O
debuginfo reading.

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

13 years ago* whitespace changes
Julian Seward [Mon, 5 Sep 2011 22:18:13 +0000 (22:18 +0000)] 
* whitespace changes

* move MEMCPY(NONE, ZuintelZufastZumemcpy) to the correct ifdef;
  it got put in the wrong place by r12009 a couple of hours ago.

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

13 years agoFor intercepts in libc and the dynamic linker (ld.so or dyld), split
Julian Seward [Mon, 5 Sep 2011 20:39:57 +0000 (20:39 +0000)] 
For intercepts in libc and the dynamic linker (ld.so or dyld), split
the Linux and Darwin definitions so they are in completely separate
ifdefs -- iow, remove any definitions that are common to both.  This
gives some duplication, but the upside is that it is now possible to
edit the Darwin intercepts without fear of breaking the Linux ones.
This will be important when it comes to supporting OSX 10.7.

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

13 years agoAvoid hanging on older s390x systems.
Florian Krohm [Mon, 5 Sep 2011 15:32:39 +0000 (15:32 +0000)] 
Avoid hanging on older s390x systems.
See also bugzilla #268623 comment 3.

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

13 years agoAdd support for IBM Power ISA 2.06 -- stage 3 -- Test cases.
Julian Seward [Mon, 5 Sep 2011 12:15:16 +0000 (12:15 +0000)] 
Add support for IBM Power ISA 2.06 -- stage 3 -- Test cases.
Bug 279994 comment 2).
(Maynard Johnson, maynardj@us.ibm.com)

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

13 years agoAdd support for new primops added in vex r2199.
Julian Seward [Mon, 5 Sep 2011 12:12:34 +0000 (12:12 +0000)] 
Add support for new primops added in vex r2199.
See Bug 279994 comment 1.
(Maynard Johnson, maynardj@us.ibm.com)

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

13 years agoAdd support for s390x model z114. See also VEX r2198
Florian Krohm [Fri, 2 Sep 2011 22:20:41 +0000 (22:20 +0000)] 
Add support for s390x model z114. See also VEX r2198

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

13 years agodrd: Yet another regression test reliability improvement.
Bart Van Assche [Tue, 30 Aug 2011 15:09:37 +0000 (15:09 +0000)] 
drd: Yet another regression test reliability improvement.

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

13 years agodrd: Avoid reporting false positive race reports inside pthread_join().
Bart Van Assche [Wed, 24 Aug 2011 15:02:21 +0000 (15:02 +0000)] 
drd: Avoid reporting false positive race reports inside pthread_join().

Note: I haven't analyzed yet since which commit these false positives
started to appear but it's most likely a commit applied after the 3.6
release.

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

13 years agofix the suppressions to also match libc-2.XX.y.so
Dirk Mueller [Tue, 23 Aug 2011 20:29:10 +0000 (20:29 +0000)] 
fix the suppressions to also match libc-2.XX.y.so

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

13 years agoMake a copy of any environment string we are going to modify when
Tom Hughes [Tue, 23 Aug 2011 10:11:02 +0000 (10:11 +0000)] 
Make a copy of any environment string we are going to modify when
we are cleaning up the environment before an exec, otherwise we
will seg fault if the string is read only. Fixes #270326.

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

13 years agoFix link error for 32-bit build on OSX 10.7 (Lion). This is the
Julian Seward [Tue, 23 Aug 2011 07:35:42 +0000 (07:35 +0000)] 
Fix link error for 32-bit build on OSX 10.7 (Lion).  This is the
failure referred to in #275168 comment 0.

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

13 years agoRemove the svn:executable property from a source file
Bart Van Assche [Mon, 22 Aug 2011 14:35:04 +0000 (14:35 +0000)] 
Remove the svn:executable property from a source file

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

13 years agoMake sure this gets built with -fomit-frame-pointer, even on x86-linux,
Julian Seward [Sat, 20 Aug 2011 15:55:07 +0000 (15:55 +0000)] 
Make sure this gets built with -fomit-frame-pointer, even on x86-linux,
where it otherwise wouldn be.  On x86-linux running Memcheck, gives a
6% instruction count reduction and a 10% reduction in memory traffic.
(Duh!)

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

13 years agomemcheck/tests/linux/timerfd-syscall: Avoid failure on heavily loaded systems
Bart Van Assche [Sat, 20 Aug 2011 11:08:48 +0000 (11:08 +0000)] 
memcheck/tests/linux/timerfd-syscall: Avoid failure on heavily loaded systems

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

13 years agoAdd more info about cache sizes.
Florian Krohm [Fri, 19 Aug 2011 19:41:57 +0000 (19:41 +0000)] 
Add more info about cache sizes.

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

13 years agoMake callgrind report the detected cache configuration as well.
Tom Hughes [Fri, 19 Aug 2011 09:05:13 +0000 (09:05 +0000)] 
Make callgrind report the detected cache configuration as well.

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

13 years agoReport the detected cache configuration with "-v -v" before we
Tom Hughes [Fri, 19 Aug 2011 09:01:22 +0000 (09:01 +0000)] 
Report the detected cache configuration with "-v -v" before we
validate it to make validation failures easier to diagnose.

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

13 years agoAdd a new simulation hint, --sim-hints=fuse-compatible, which causes
Julian Seward [Thu, 18 Aug 2011 15:08:20 +0000 (15:08 +0000)] 
Add a new simulation hint, --sim-hints=fuse-compatible, which causes
a bunch of file-related syscalls to be handled on the might-block
syscall path rather than the fast syscall path.  This fixes deadlocks
when running some FUSE-specific filesystem codes.  Fixes #278057.
(Mike Shal, marfey@gmail.com)

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

13 years agox86-linux: don't add redirections for strchr/index in ld.so since they
Julian Seward [Thu, 18 Aug 2011 13:49:48 +0000 (13:49 +0000)] 
x86-linux: don't add redirections for strchr/index in ld.so since they
are already hardwiredly-redirected at startup, and so these are
redundant.

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

13 years agoExtend the behavioural-equivalence-class mechanism for redirection
Julian Seward [Thu, 18 Aug 2011 13:09:55 +0000 (13:09 +0000)] 
Extend the behavioural-equivalence-class mechanism for redirection
functions to include the ability to give a priority to each function,
as well as a tag indicating its behavioural class.  Add logic in
m_redir.c to resolve conflicting redirections with the same eclass but
different priorities by preferring the redirection with the higher
priority.  Use all of the above in mc_replace_strmem.c, to cause a
conflict between redirections for "memcpy" and "memcpy@GLIBC_2.2.5" to
be resolved in favour of the latter (the non-overlap-checking
version).

This is all related to the massive swamp that is #275284.

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

13 years agoDon't compare src and dst to work out which direction to iterate
Tom Hughes [Thu, 18 Aug 2011 08:10:20 +0000 (08:10 +0000)] 
Don't compare src and dst to work out which direction to iterate
in for a memcpy/memmove if the length is zero. Fixes #268563.

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

13 years agoTemporary partial backout of r11911 (fix for #250101) pending
Julian Seward [Wed, 17 Aug 2011 22:13:14 +0000 (22:13 +0000)] 
Temporary partial backout of r11911 (fix for #250101) pending
investigation of assertion failures listed at #250101 comment 12.

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

13 years agoRedirect memcpy@@GLIBC_2.14 differently from memcpy@GLIBC_2.2.5, so as
Julian Seward [Wed, 17 Aug 2011 21:25:50 +0000 (21:25 +0000)] 
Redirect memcpy@@GLIBC_2.14 differently from memcpy@GLIBC_2.2.5, so as
to retain overlap checks for the former whilst skipping them for the
latter.  Pertains to #275284.  (Tom Hughes, tom@compton.nu)

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

13 years agoImprovements to debug printing with -v -v. (Tom Hughes, tom@compton.nu)
Julian Seward [Wed, 17 Aug 2011 21:23:21 +0000 (21:23 +0000)] 
Improvements to debug printing with -v -v.  (Tom Hughes, tom@compton.nu)

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

13 years agoUn-break the build on OSX following r11985.
Julian Seward [Tue, 16 Aug 2011 22:31:45 +0000 (22:31 +0000)] 
Un-break the build on OSX following r11985.

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

13 years agoFix for #275284 (initial fix, at least). Will break OSX; fix
Julian Seward [Tue, 16 Aug 2011 21:45:28 +0000 (21:45 +0000)] 
Fix for #275284 (initial fix, at least).  Will break OSX; fix
to follow.

* add behavioural eclass tags for most functions in
  mc_replace_strmem.c and vg_replace_malloc.c.

* add a wrapper for strspn()  (see bug 270925)

* coregrind/m_redir.c: add logic to use eclass tags for
  resolving conflicting redirections.  Improve debug
  printing in that situation.

* mc_replace_strmem.c: add a wrapper for "__GI___strcasecmp_l".
  Gark.  Is this correct?  Does __GI___strcasecmp_l behave the
  same as __GI_strcasecmp_l and strcasecmp_l ?

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

13 years agoAdd more infrastructure to be used for fixing #275284 (Valgrind
Julian Seward [Tue, 16 Aug 2011 09:54:00 +0000 (09:54 +0000)] 
Add more infrastructure to be used for fixing #275284 (Valgrind
memcpy/memmove redirection stopped working in glibc 2.14/x86_64), but
don't fix the problem yet.  Should be no end-user visible change.

* in m_redir.c, when processing redirection specifications, consider
  all the names associated with an address, not just the primary name.

* add plumbing to support the notion of "behavioural equivalence class
  tags" of redirect/wrap functions.  These can be used by m_redir to
  resolve some situations in which the available set of redirect
  specifications causes some address to get redirected to two
  different functions.  (Framework is in place, but such resolution is
  not implemented yet.)

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

13 years agoAdd missing break statements to example code. Fix to #264644.
Tom Hughes [Mon, 15 Aug 2011 11:11:41 +0000 (11:11 +0000)] 
Add missing break statements to example code. Fix to #264644.

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

13 years agoUn-break the build on OSX following r11981 (Remove the assumption, in
Julian Seward [Mon, 15 Aug 2011 10:07:56 +0000 (10:07 +0000)] 
Un-break the build on OSX following r11981 (Remove the assumption, in
m_debuginfo, that each address is associated with only one symbol.)

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

13 years agoRemove the assumption, in m_debuginfo, that each address is associated
Julian Seward [Mon, 15 Aug 2011 09:42:34 +0000 (09:42 +0000)] 
Remove the assumption, in m_debuginfo, that each address is associated
with only one symbol.  Instead, allow an address to have arbitrarily
many names.  This reflects reality better, particularly for systemy
libraries such as glibc and ld.so, and is background work needed for
fixing #275284.  This is not in itself a fix for #275284.  A followup
commit to un-break compilation on OSX will follow shortly.

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

13 years agoAdd support for FBIOPUT_VSCREENINFO and FBIOPAN_DISPLAY ioctls.
Tom Hughes [Mon, 15 Aug 2011 08:47:29 +0000 (08:47 +0000)] 
Add support for FBIOPUT_VSCREENINFO and FBIOPAN_DISPLAY ioctls.

Patch from Pauli Nieminen <ext-pauli.nieminen@nokia.com> on #263648.

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

13 years agoMention the --tool option in the manual page. Fixes #249970.
Tom Hughes [Mon, 15 Aug 2011 08:20:53 +0000 (08:20 +0000)] 
Mention the --tool option in the manual page. Fixes #249970.

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

13 years agoInclude the standard Fedora location in the list of places where
Tom Hughes [Mon, 15 Aug 2011 08:20:23 +0000 (08:20 +0000)] 
Include the standard Fedora location in the list of places where
we look for the docbook stylesheet for manual pages.

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

13 years agoCorrect the calculation of the size of the node mask given to
Tom Hughes [Mon, 15 Aug 2011 07:52:26 +0000 (07:52 +0000)] 
Correct the calculation of the size of the node mask given to
the mbind, set_mempolicy and get_mempolicy system calls.

Patch from Brice Goglin <brice.goglin@ens-lyon.org> on #280083.

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

13 years agomemcheck/tests/sbfragment: Make this test pass on Darwin
Bart Van Assche [Sun, 14 Aug 2011 06:41:15 +0000 (06:41 +0000)] 
memcheck/tests/sbfragment: Make this test pass on Darwin

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

13 years agoFollow-up for r11971
Bart Van Assche [Sun, 14 Aug 2011 06:16:17 +0000 (06:16 +0000)] 
Follow-up for r11971

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

13 years agoComplain if invoked from the wrong directory or if mandatory
Florian Krohm [Sat, 13 Aug 2011 15:35:21 +0000 (15:35 +0000)] 
Complain if invoked from the wrong directory or if mandatory
argument is missing.

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

13 years agoFix VKI_FIOQSIZE definition on ppc platforms.
Tom Hughes [Sat, 13 Aug 2011 15:14:58 +0000 (15:14 +0000)] 
Fix VKI_FIOQSIZE definition on ppc platforms.

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

13 years agovgdb: Unlink pipes and mapped file before (re)creating these.
Bart Van Assche [Sat, 13 Aug 2011 12:27:11 +0000 (12:27 +0000)] 
vgdb: Unlink pipes and mapped file before (re)creating these.

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

13 years agoUpdate expected output
Bart Van Assche [Sat, 13 Aug 2011 05:57:51 +0000 (05:57 +0000)] 
Update expected output

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

13 years agomemcheck/tests/sbfragment.c: Only use mallinfo() if available.
Bart Van Assche [Sat, 13 Aug 2011 05:32:53 +0000 (05:32 +0000)] 
memcheck/tests/sbfragment.c: Only use mallinfo() if available.

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

13 years agoAdd test for address size override prefixes for REP prefixed string
Tom Hughes [Fri, 12 Aug 2011 15:43:31 +0000 (15:43 +0000)] 
Add test for address size override prefixes for REP prefixed string
instructions on amd64. Fixes remaining issues from #211371.

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

13 years agodrd/tests/pth_barrier: Reduce stack usage
Bart Van Assche [Fri, 12 Aug 2011 15:21:31 +0000 (15:21 +0000)] 
drd/tests/pth_barrier: Reduce stack usage

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

13 years agoCheck return code of pthread_create and bail out if
Florian Krohm [Fri, 12 Aug 2011 15:07:10 +0000 (15:07 +0000)] 
Check return code of pthread_create and bail out if
the function failed. This helps on systems which don't
have lots of memory.
Suggested by Christian Borntraeger.

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

14 years agoNon-VEX changes to fix #275517.
Florian Krohm [Thu, 11 Aug 2011 17:00:15 +0000 (17:00 +0000)] 
Non-VEX changes to fix #275517.
Add testcase and announce fix in NEWS.

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

14 years agoMake do_mremap only check new_addr for wraparound if MREMAP_FIXED was
Tom Hughes [Thu, 11 Aug 2011 14:51:47 +0000 (14:51 +0000)] 
Make do_mremap only check new_addr for wraparound if MREMAP_FIXED was
fixed, as new_addr may be meaningless otherwise. Fix to #204484.

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

14 years agoDue to a kernel bug the siginfo struct was not filled in correctly.
Florian Krohm [Thu, 11 Aug 2011 02:23:54 +0000 (02:23 +0000)] 
Due to a kernel bug the siginfo struct was not filled in correctly.
The si_code was incorrect not matching any of the VKI_ILL_....
cases checked in m_signals.c function default_action.
So let's have two expected output files for buggy kernels and otherwise.
Also, add op00 to the list of files to be ignored.

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

14 years agoAdd support for the FIOQSIZE ioctl. Fixes #270320.
Tom Hughes [Wed, 10 Aug 2011 14:25:06 +0000 (14:25 +0000)] 
Add support for the FIOQSIZE ioctl. Fixes #270320.

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

14 years agoAdd tests for XCHG AX, reg16 on amd64. Fixes #252695.
Tom Hughes [Wed, 10 Aug 2011 12:58:23 +0000 (12:58 +0000)] 
Add tests for XCHG AX, reg16 on amd64. Fixes #252695.

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

14 years agoWire up pselect6 on ppc32 and ppc64. Fixes #278078.
Tom Hughes [Wed, 10 Aug 2011 12:39:37 +0000 (12:39 +0000)] 
Wire up pselect6 on ppc32 and ppc64. Fixes #278078.

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

14 years agoSupport the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl calls. Fixes #278349.
Tom Hughes [Wed, 10 Aug 2011 10:11:14 +0000 (10:11 +0000)] 
Support the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl calls. Fixes #278349.

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

14 years agoMake sure the post handler for mincore is called in amd64 and s390 as
Tom Hughes [Wed, 10 Aug 2011 09:57:27 +0000 (09:57 +0000)] 
Make sure the post handler for mincore is called in amd64 and s390 as
it already was on other platforms. Fix to #279795.

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

14 years agoFollowup to VEX r2189 -- handling invalid opcode 00 specially.
Florian Krohm [Mon, 8 Aug 2011 23:47:23 +0000 (23:47 +0000)] 
Followup to VEX r2189 -- handling invalid opcode 00 specially.
Update golden log for testcase op_exception which no longer
complains about invalid opcode 00.
Add testcase op00.c

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

14 years agoI am an idiot: remove the beginnings of an experimental tool that I
Nicholas Nethercote [Mon, 8 Aug 2011 02:27:20 +0000 (02:27 +0000)] 
I am an idiot: remove the beginnings of an experimental tool that I
accidentally committed.

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

14 years agoFix a Massif bug: when realloc'ing a block, any values in the part of the
Nicholas Nethercote [Mon, 8 Aug 2011 01:58:50 +0000 (01:58 +0000)] 
Fix a Massif bug:  when realloc'ing a block, any values in the part of the
block beyond the original request weren't copied.  They are now.  This is
important because a program could use malloc_usable_size to gain legitimate
access to those extra bytes.

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

14 years agoAnnounce fix for #279062
Florian Krohm [Mon, 1 Aug 2011 22:35:21 +0000 (22:35 +0000)] 
Announce fix for #279062

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

14 years agoFix prerequisite for memcheck/tests/linux/timerfd-syscall.
Florian Krohm [Sun, 31 Jul 2011 03:22:45 +0000 (03:22 +0000)] 
Fix prerequisite for memcheck/tests/linux/timerfd-syscall.
The testcase was executed despite uname -r being 2.6.9-42.EL
Extend tests/os_test.c to take an optional 2nd argument
which is a minimum version number. Use os_test in the
prerequisite expression.

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

14 years agoYet another thread test scheduler sensitivity fix
Bart Van Assche [Sat, 30 Jul 2011 16:50:33 +0000 (16:50 +0000)] 
Yet another thread test scheduler sensitivity fix

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

14 years agoNightly build: Rename the attachment diffs into diffs.txt such that it can be viewed...
Bart Van Assche [Sat, 30 Jul 2011 11:26:57 +0000 (11:26 +0000)] 
Nightly build: Rename the attachment diffs into diffs.txt such that it can be viewed easily with an e-mail client.

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

14 years agodrd: Make racing pthread_barrier_wait() calls trigger an error message instead
Bart Van Assche [Sat, 30 Jul 2011 09:35:56 +0000 (09:35 +0000)] 
drd: Make racing pthread_barrier_wait() calls trigger an error message instead
of an assertion failure. Also, make barrier tracing output more detailed.

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

14 years agodrd/tests/pth_barrier_thr_cr: Suppress pthread_barrier_wait() race reports since...
Bart Van Assche [Sat, 30 Jul 2011 09:29:20 +0000 (09:29 +0000)] 
drd/tests/pth_barrier_thr_cr: Suppress pthread_barrier_wait() race reports since these are triggered intentionally.

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

14 years agodrd/tests/pth_barrier_thr_cr: Add more error checking.
Bart Van Assche [Sat, 30 Jul 2011 09:28:13 +0000 (09:28 +0000)] 
drd/tests/pth_barrier_thr_cr: Add more error checking.

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

14 years agoAvoid that compiling memcheck on 32-bit systems triggers a compiler warning
Bart Van Assche [Fri, 29 Jul 2011 14:24:07 +0000 (14:24 +0000)] 
Avoid that compiling memcheck on 32-bit systems triggers a compiler warning

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

14 years agodrd/tests/tc21_pthonce: Eliminate output variation
Bart Van Assche [Fri, 29 Jul 2011 14:23:23 +0000 (14:23 +0000)] 
drd/tests/tc21_pthonce: Eliminate output variation

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

14 years agoUpdate Subversion ignore list
Bart Van Assche [Fri, 29 Jul 2011 12:40:46 +0000 (12:40 +0000)] 
Update Subversion ignore list

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

14 years agodrd: Fix a race condition in the barrier implementation that could result in false...
Bart Van Assche [Fri, 29 Jul 2011 12:39:44 +0000 (12:39 +0000)] 
drd: Fix a race condition in the barrier implementation that could result in false positives.

What could occur before this fix is:
- The pthread_barrier() call in a first thread finishes.
- Another thread invokes pthread_join() on that thread, causing the information
  associated with that thread to be removed from the barrier object.
- The pthread_barrier() call in another thread finishes. Because some
  thread information has already been removed from the barrier object, the
  per-thread vector clock "last" won't be computed correctly by
  DRD_(barrier_post_wait)().
- Because of the above false positives could be reported.

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

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

14 years agodrd: Add a stress test for the barrier implementation
Bart Van Assche [Fri, 29 Jul 2011 12:32:53 +0000 (12:32 +0000)] 
drd: Add a stress test for the barrier implementation

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

14 years agodrd: Remove an unused member variable from the barrier implementation
Bart Van Assche [Fri, 29 Jul 2011 12:31:33 +0000 (12:31 +0000)] 
drd: Remove an unused member variable from the barrier implementation

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

14 years agodrd: drd_thread.c source code cleanup
Bart Van Assche [Fri, 29 Jul 2011 12:30:43 +0000 (12:30 +0000)] 
drd: drd_thread.c source code cleanup

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

14 years agodrd, bitmap node allocator: recognize root node size properly
Bart Van Assche [Fri, 29 Jul 2011 07:26:01 +0000 (07:26 +0000)] 
drd, bitmap node allocator: recognize root node size properly

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

14 years agodrd/tests/pth_barrier[23]: Filter output such that only the error count is kept
Bart Van Assche [Fri, 29 Jul 2011 07:22:29 +0000 (07:22 +0000)] 
drd/tests/pth_barrier[23]: Filter output such that only the error count is kept

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

14 years agoYet another thread test scheduler sensitivity fix
Bart Van Assche [Fri, 29 Jul 2011 06:58:16 +0000 (06:58 +0000)] 
Yet another thread test scheduler sensitivity fix

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

14 years agodrd/tests/pth_once: Restrict the number of callers to three.
Bart Van Assche [Fri, 29 Jul 2011 06:54:22 +0000 (06:54 +0000)] 
drd/tests/pth_once: Restrict the number of callers to three.

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

14 years agodrd: Remove a too strict assert() statement
Bart Van Assche [Fri, 29 Jul 2011 06:30:23 +0000 (06:30 +0000)] 
drd: Remove a too strict assert() statement

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

14 years agoYet another thread test scheduler sensitivity fix
Bart Van Assche [Fri, 29 Jul 2011 06:12:51 +0000 (06:12 +0000)] 
Yet another thread test scheduler sensitivity fix

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

14 years agodrd/tests/pth_detached_sem: Send regression test output to stderr instead of stdout
Bart Van Assche [Fri, 29 Jul 2011 05:44:38 +0000 (05:44 +0000)] 
drd/tests/pth_detached_sem: Send regression test output to stderr instead of stdout

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

14 years agoYet another threading tool regression test scheduler sensitivity fix
Bart Van Assche [Thu, 28 Jul 2011 18:46:38 +0000 (18:46 +0000)] 
Yet another threading tool regression test scheduler sensitivity fix

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