]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
10 years agoFix Bug #344314 callgrind_annotate ... commands containing newlines
Josef Weidendorfer [Wed, 18 Feb 2015 16:28:58 +0000 (16:28 +0000)] 
Fix Bug #344314  callgrind_annotate ... commands containing newlines

Escape newlines in command arguments for "cmd:" header field in dumps
We could do unescaping in callgrind_annotate, but a escaped command
even seems better there.

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

10 years agoCorrectly handle prctl(VKI_PR_SET_PTRACER, ..) so as to avoid false
Julian Seward [Wed, 18 Feb 2015 15:46:19 +0000 (15:46 +0000)] 
Correctly handle prctl(VKI_PR_SET_PTRACER, ..) so as to avoid false
positives (eg when running Wine).

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

10 years agoMessaging cleanup for the PDB reader. No functional change.
Julian Seward [Wed, 18 Feb 2015 15:38:25 +0000 (15:38 +0000)] 
Messaging cleanup for the PDB reader.  No functional change.

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

10 years agoBug #344307 2 unhandled syscalls on aarch64/arm64: umount2(39), mount (40)
Mark Wielaard [Wed, 18 Feb 2015 14:23:17 +0000 (14:23 +0000)] 
Bug #344307 2 unhandled syscalls on aarch64/arm64: umount2(39), mount (40)

Reporter: Branislav Blaskovic, bblaskov@redhat.com
Patch: Robin Hack, rhack@redhat.com
Test: Miloš Prchlík, mprchlik@redhat.com

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

10 years agoFor PDB stats printing, don't print the number of inl-info records,
Julian Seward [Wed, 18 Feb 2015 12:58:56 +0000 (12:58 +0000)] 
For PDB stats printing, don't print the number of inl-info records,
since it's always zero.

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

10 years agoImprove string table reading for MSVC2010 compiled code. Also seems
Julian Seward [Wed, 18 Feb 2015 12:57:06 +0000 (12:57 +0000)] 
Improve string table reading for MSVC2010 compiled code.  Also seems
to help with MSVC2013 compiled code.  Variant of a patch from
Mark Browning (mabrowningrr@gmail.com).  Fixes #211529.

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

10 years agoUpdate a comment.
Florian Krohm [Tue, 17 Feb 2015 21:51:53 +0000 (21:51 +0000)] 
Update a comment.

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

10 years agoBug #344295 syscall recvmmsg on arm64 (243) and ppc32/64 (343) unhandled
Mark Wielaard [Tue, 17 Feb 2015 19:50:45 +0000 (19:50 +0000)] 
Bug #344295 syscall recvmmsg on arm64 (243) and ppc32/64 (343) unhandled

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

10 years agoBug #344279 syscall sendmmsg on arm64 (269) and ppc32/64 (349) unhandled.
Mark Wielaard [Tue, 17 Feb 2015 16:04:09 +0000 (16:04 +0000)] 
Bug #344279 syscall sendmmsg on arm64 (269) and ppc32/64 (349) unhandled.

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

10 years agoML_(find_name_of_pdb_file): bit a bit more careful when grepping the
Julian Seward [Tue, 17 Feb 2015 13:46:26 +0000 (13:46 +0000)] 
ML_(find_name_of_pdb_file): bit a bit more careful when grepping the
output from /usr/bin/strings, so as to not get confused by substrings
".pdb" and ".PDB" when they don't appear at the end of a line.

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

10 years agoUpdate comment for VG_(am_find_nsegment) to match the code.
Florian Krohm [Mon, 16 Feb 2015 23:04:53 +0000 (23:04 +0000)] 
Update comment for VG_(am_find_nsegment) to match the code.
Likewise for VG_(am_next_nsegment). Also make the code similar to
VG_(am_find_nsegment) for easier comprehension.

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

10 years agoTranslations are allowed from all client segments. Update comments
Florian Krohm [Mon, 16 Feb 2015 22:58:30 +0000 (22:58 +0000)] 
Translations are allowed from all client segments. Update comments
and rename VG_(am_set_segment_hasT_if_SkFileC_or_SkAnonC) to
VG_(am_set_segment_hasT_if_client_segment). Change it so it handles
all client segments.

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

10 years agoUpdate a few comments.
Florian Krohm [Mon, 16 Feb 2015 22:29:03 +0000 (22:29 +0000)] 
Update a few comments.

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

10 years agoDocument the --max-threads command line option.
Florian Krohm [Mon, 16 Feb 2015 21:55:52 +0000 (21:55 +0000)] 
Document the --max-threads command line option.

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

10 years agoMisc tweaks in segAddr_to_index:
Florian Krohm [Sat, 14 Feb 2015 21:17:46 +0000 (21:17 +0000)] 
Misc tweaks in segAddr_to_index:
(1) It is always invalid for the incoming segment pointer to be
    out of range. Assert that.
(2) Let the compiler do the address arithmetic. They're good at that
    and therefore:
(3) No asserts needed to check the result.

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

10 years agoAdd command line flag --max-threads=<integer> to increase the number of
Florian Krohm [Fri, 13 Feb 2015 19:08:26 +0000 (19:08 +0000)] 
Add command line flag --max-threads=<integer> to increase the number of
threads that valgrind can handle. No recompile is needed.
Part of fixing BZ #337869.

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

10 years agoMore use of LibVEX_GUEST_STATE_ALIGN.
Florian Krohm [Fri, 13 Feb 2015 17:05:57 +0000 (17:05 +0000)] 
More use of LibVEX_GUEST_STATE_ALIGN.

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

10 years agoUse LibVEX_GUEST_STATE_ALIGN introduced in VEX r3091.
Florian Krohm [Fri, 13 Feb 2015 16:26:44 +0000 (16:26 +0000)] 
Use LibVEX_GUEST_STATE_ALIGN introduced in VEX r3091.

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

10 years agoarm32-linux: for the magic-call CALL_FN_* macros, add r12 to the asm
Julian Seward [Wed, 11 Feb 2015 19:46:27 +0000 (19:46 +0000)] 
arm32-linux: for the magic-call CALL_FN_* macros, add r12 to the asm
trash list.  Not doing so was causing r12 to get corrupted by the
called function, which lead to some very strange failures in Helgrind
on arm32.  Fixes #344033.

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

10 years agoarm32-linux: GET_STARTREGS has always been wrong on this target,
Julian Seward [Wed, 11 Feb 2015 00:49:45 +0000 (00:49 +0000)] 
arm32-linux: GET_STARTREGS has always been wrong on this target,
confusing SP and LR and resulting in no backtraces during internal
assertion failures etc on this platform.  Fixes #343219.  Noticed by
dimitry@google.com.

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

10 years agoarm32: local_sys_write_stderr and local_sys_getpid: don't trash r7
Julian Seward [Wed, 11 Feb 2015 00:41:48 +0000 (00:41 +0000)] 
arm32: local_sys_write_stderr and local_sys_getpid: don't trash r7
in the inline assembly, because gcc doesn't like that when compiling
for Thumb.  And this file is compiled for Thumb during "make check".

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

10 years agoBug #344007 accept4 syscall unhandled on arm64 (242) and ppc64 (344)
Mark Wielaard [Tue, 10 Feb 2015 13:39:04 +0000 (13:39 +0000)] 
Bug #344007 accept4 syscall unhandled on arm64 (242) and ppc64 (344)

ppc64 might fall back to socketcall in some cases, but arm64 always uses
accept4 syscall directly. Some (confusing) background on when/how glibc
(wrongly) decides to use a direct accept4 or the socketcall system call:
https://sourceware.org/ml/libc-alpha/2013-12/msg00014.html

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

10 years agoFix a bug introduced in r14913.
Florian Krohm [Mon, 9 Feb 2015 21:59:00 +0000 (21:59 +0000)] 
Fix a bug introduced in r14913.

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

10 years agoEnsure vgdb gets the nr of threads from Valgrind via shared memory,
Philippe Waroquiers [Mon, 9 Feb 2015 21:30:58 +0000 (21:30 +0000)] 
Ensure vgdb gets the nr of threads from Valgrind via shared memory,
rather than using a compile time constant.
This is in preparation for a future change by Florian, to have
the max nr of threads specifiable at startup via a clo

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

10 years agoBug #343978 Recognize DWARF5/GCC5 DW_LANG_Fortran 2003 and 2008 constants.
Mark Wielaard [Mon, 9 Feb 2015 20:41:48 +0000 (20:41 +0000)] 
Bug #343978 Recognize DWARF5/GCC5 DW_LANG_Fortran 2003 and 2008 constants.

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

10 years agoBug #343967 Don't warn about setuid/setgid/setcap exec for dirs.
Mark Wielaard [Mon, 9 Feb 2015 13:27:07 +0000 (13:27 +0000)] 
Bug #343967 Don't warn about setuid/setgid/setcap exec for dirs.

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

10 years agoUpdate.
Julian Seward [Mon, 9 Feb 2015 09:15:00 +0000 (09:15 +0000)] 
Update.

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

10 years agoEnable test cases for
Julian Seward [Mon, 9 Feb 2015 09:10:27 +0000 (09:10 +0000)] 
Enable test cases for
  FMOV (vector, immediate, single precision)
  {FRINTN,FRINTM,FRINTP,FRINTZ,FRINTA,FRINTX,FRINTI} 2d_2d, 4s_4s, 2s_2s
  {FRINTN,FRINTM,FRINTP,FRINTZ,FRINTA,FRINTX,FRINTI} d_d, s_s

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

10 years agoEnable test cases for all remaining FP multiply instructions:
Julian Seward [Sun, 8 Feb 2015 18:26:05 +0000 (18:26 +0000)] 
Enable test cases for all remaining FP multiply instructions:
  FMULX d_d_d, s_s_s
  FMLA d_d_d[], s_s_s[]
  FMLS d_d_d[], s_s_s[]
  FMUL  d_d_d[], s_s_s[]
  FMULX d_d_d[], s_s_s[]
  FMULX 2d_2d_2d, 4s_4s_4s, 2s_2s_2s
  FMULX 2d_2d_d[], 4s_4s_s[], 2s_2s_s[]
and possibly more.

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

10 years agoEnable test cases:
Julian Seward [Sun, 8 Feb 2015 12:11:52 +0000 (12:11 +0000)] 
Enable test cases:
  {FMADD,FNMADD,FMSUB,FNMSUB} d_d_d_d, s_s_s_s
  {FMAXMNV,FMINMNV,FMAXV,FMINV} s_4s
  {FMAXNMP,FMINNMP,FMAXP,FMINP} d_2d, s_2s
  {FMAXNM,FMINNM,FMAX,FMIN} 2d_2d_2d, 4s_4s_4s, 2s_2s_2s
  {FMAXNMP,FMINNMP,FMAXP,FMINP} 2d_2d_2d, 4s_4s_4s, 2s_2s_2s

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

10 years agoBug 343733 Unhandled syscall 187 (msgctl and related) on aarch64
Mark Wielaard [Sat, 7 Feb 2015 22:58:51 +0000 (22:58 +0000)] 
Bug 343733 Unhandled syscall 187 (msgctl and related) on aarch64

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

10 years agoBug 343732 - Unhandled syscall 144 (setgid) on aarch64.
Mark Wielaard [Sat, 7 Feb 2015 22:36:48 +0000 (22:36 +0000)] 
Bug 343732 - Unhandled syscall 144 (setgid) on aarch64.

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

10 years agoEnable test cases for all FP compare instructions:
Julian Seward [Sat, 7 Feb 2015 21:12:04 +0000 (21:12 +0000)] 
Enable test cases for all FP compare instructions:
{FCMEQ,FCMGE,FCMGT,FACGE,FACGT} d_d_d, s_s_s
{FCMEQ,FCMGE,FCMGT,FACGE,FACGT} d_d_#0.0, s_s_#0.0
{FCMEQ,FCMGE,FCMGT,FACGE,FACGT} 2d_2d_#0.0, 4s_4s_#0.0, 2s_2s_#0.0
{FCCMP,FCCMPE} s_s, d_d
{FCMP,FCMPE} d_d, s_s
{FCMP,FCMPE} d_#0.0, s_#0.0

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

10 years agoRevert accidental checkin for Makefile.am
Florian Krohm [Fri, 6 Feb 2015 20:33:51 +0000 (20:33 +0000)] 
Revert accidental checkin for Makefile.am

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

10 years agoFix undefined behaviours when shifting.
Florian Krohm [Fri, 6 Feb 2015 20:32:15 +0000 (20:32 +0000)] 
Fix undefined behaviours when shifting.
Found by libubsan.

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

10 years agoThere must be at least one element in a VLA.
Florian Krohm [Fri, 6 Feb 2015 20:25:57 +0000 (20:25 +0000)] 
There must be at least one element in a VLA.
Found by libubsan.

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

10 years agoFix debug output of aspacemgr
Philippe Waroquiers [Thu, 5 Feb 2015 22:30:57 +0000 (22:30 +0000)] 
Fix debug output of aspacemgr
The list of segnames was shown with a seq nr,
while each segment was referencing its segname with an offset.
The patch ensures that at all places, both the seq nr and the
offset is output

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

10 years agoUpdate.
Julian Seward [Thu, 5 Feb 2015 16:22:43 +0000 (16:22 +0000)] 
Update.

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

10 years agoUpdate to track v4l2 API for kernel version 3.19 changes. Patch from
Julian Seward [Thu, 5 Feb 2015 15:59:01 +0000 (15:59 +0000)] 
Update to track v4l2 API for kernel version 3.19 changes.  Patch from
Hans Verkuil (hverkuil@xs4all.nl).  Fixes #343069.

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

10 years agoAdd wrapper support for I2C_SMBUS ioctls. Patch from
Julian Seward [Thu, 5 Feb 2015 15:52:46 +0000 (15:52 +0000)] 
Add wrapper support for I2C_SMBUS ioctls.  Patch from
super.firetwister@gmail.com.  Fixes #342603.

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

10 years agoEnable sys_mbind, sys_get_mempolicy, sys_set_mempolicy on arm64-linux.
Julian Seward [Thu, 5 Feb 2015 15:28:28 +0000 (15:28 +0000)] 
Enable sys_mbind, sys_get_mempolicy, sys_set_mempolicy on arm64-linux.
Patch from Hideaki Kimura (hideaki.kimura@gmail.com).  Fixes #342038.

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

10 years agoAllow the user to specify precise-exception behaviour for translations
Julian Seward [Thu, 5 Feb 2015 12:59:46 +0000 (12:59 +0000)] 
Allow the user to specify precise-exception behaviour for translations
made from file-backed mappings (AOT code, basically) that is different
from the default behaviour as specified by --vex-iropt-register-updates.

New flag is --px-file-backed=, with the same possible args as
--vex-iropt-register-updates has.

Add a new flag --px-default, which is a short alias for
--vex-iropt-register-updates.

Add one line of stats output when --stats=yes, showing counts of how
many translations have been made under each of the 4 different PX
optimisation settings.

No user-visible change if you don't use the new flags.

Relies on VEX API change in r3084.

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

10 years agovalgrind part to VEX:3083 Fix bugzilla 343802, also extend testcase
Christian Borntraeger [Thu, 5 Feb 2015 11:05:53 +0000 (11:05 +0000)] 
valgrind part to VEX:3083 Fix bugzilla 343802, also extend testcase

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

10 years agoFix some inconsistent uses of the VG_XACT_CLO macro, by putting an
Julian Seward [Thu, 5 Feb 2015 10:05:43 +0000 (10:05 +0000)] 
Fix some inconsistent uses of the VG_XACT_CLO macro, by putting an
empty then-body after the condition rather than merely ";", which is
confusing and is inconsistent with the rest of the arg handling code.
No functional change.

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

10 years agoFollowup to r14901 (vectorising memcmp): use SizeT instead of Addr
Julian Seward [Wed, 4 Feb 2015 18:46:11 +0000 (18:46 +0000)] 
Followup to r14901 (vectorising memcmp): use SizeT instead of Addr
where appropriate.

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

10 years agoRemove unneeded code.
Florian Krohm [Wed, 4 Feb 2015 18:01:19 +0000 (18:01 +0000)] 
Remove unneeded code.
VG_(extend_stack) checks whether the given address is covered by the
stack.

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

10 years agoVectorise the memcmp template implementation. For scenarios requiring
Julian Seward [Wed, 4 Feb 2015 17:52:42 +0000 (17:52 +0000)] 
Vectorise the memcmp template implementation.  For scenarios requiring
a lot of memcmp-ing (firefox reftests) this is measurably faster.

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

10 years agoUpdate list of open bugs, and classify them by area.
Julian Seward [Tue, 3 Feb 2015 12:27:30 +0000 (12:27 +0000)] 
Update list of open bugs, and classify them by area.

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

10 years agoPTRACE_GETREGS might not be detected on some distro, due to a missing #include
Philippe Waroquiers [Mon, 2 Feb 2015 22:40:54 +0000 (22:40 +0000)] 
PTRACE_GETREGS might not be detected on some distro, due to a missing #include
in the configure test.

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

10 years agoReplace the SegName array with a simple string table.
Florian Krohm [Sat, 31 Jan 2015 00:29:50 +0000 (00:29 +0000)] 
Replace the SegName array with a simple string table.
The validity of this change follows from the following observations:

(1) There is a single source for allocating and storing segment names,
    namely allocate_segname.
(2) For all invocations of allocate_segname the returned value (which
    represents the segmant name) is assigned to NSegment::fnIdx.
(3) All but one assignments to NSegment::fnIdx assign allocate_segname.
    The single exception assigns -1 in init_nsegment. That function is
    called whenever a new segment (named or unnamed) is allocated.

For a segment name to become unused there must be an assignment to
NSegment::fnIdx which was previously assigned a return value from
allocate_segname. There is no such assignment.
It follows that all segment names are in use at all times, hence
SegName::inUse == True for all SegNames. So we can constant fold it
and don't need to represent it.
Pass 3 in preen_nsegments is obsolete as there are no segment names to
garbage collect.

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

10 years agoRemove confusing function attribute. The function is always used (on all platforms).
Florian Krohm [Fri, 30 Jan 2015 22:21:16 +0000 (22:21 +0000)] 
Remove confusing function attribute. The function is always used (on all platforms).

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

10 years agoFix an incorrect comment. Add asserts.
Florian Krohm [Thu, 29 Jan 2015 23:01:14 +0000 (23:01 +0000)] 
Fix an incorrect comment. Add asserts.

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

10 years agoUpdate.
Julian Seward [Wed, 28 Jan 2015 12:04:21 +0000 (12:04 +0000)] 
Update.

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

10 years agoAdd test cases for AVX-1 conditional vector stores:
Julian Seward [Wed, 28 Jan 2015 11:49:46 +0000 (11:49 +0000)] 
Add test cases for AVX-1 conditional vector stores:
VMASKMOVP{D,S} xmm/ymm to memory.  Pertains to #335785.

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

10 years agoAdd test cases for VPMASKMOV{D,Q} xmm/ymm to memory.
Julian Seward [Wed, 28 Jan 2015 11:11:02 +0000 (11:11 +0000)] 
Add test cases for VPMASKMOV{D,Q} xmm/ymm to memory.

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

10 years agoHandle new value ILGop_Ident64 in enum type IRLoadGOp. This tracks
Julian Seward [Tue, 27 Jan 2015 23:10:19 +0000 (23:10 +0000)] 
Handle new value ILGop_Ident64 in enum type IRLoadGOp.  This tracks
vex r3074.

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

10 years agoRemove unused field from NSegment structure.
Florian Krohm [Tue, 27 Jan 2015 20:46:19 +0000 (20:46 +0000)] 
Remove unused field from NSegment structure.

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

10 years agoOS X 10.10: Fix incorrect check for presence of unsupported MACH_SEND_TRAILER in...
Rhys Kidd [Mon, 26 Jan 2015 09:00:51 +0000 (09:00 +0000)] 
OS X 10.10: Fix incorrect check for presence of unsupported MACH_SEND_TRAILER in mach_msg. Partial fix for BZ #343306.

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

10 years agoDarwin14.supp should include suppression for known deliberate memory leak in setenv...
Rhys Kidd [Mon, 26 Jan 2015 03:44:07 +0000 (03:44 +0000)] 
Darwin14.supp should include suppression for known deliberate memory leak in setenv(). Per BZ #343303.

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

10 years agoPartial fix for bz339745. Mac OS: Further progress worker queue thread support. Addit...
Rhys Kidd [Mon, 26 Jan 2015 03:27:01 +0000 (03:27 +0000)] 
Partial fix for bz339745. Mac OS: Further progress worker queue thread support. Additional magic constants have been checked against OS X 10.9 and 10.10

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

10 years agoFollowup to r14886. So it turned out that in m_addrinfo we were already
Florian Krohm [Sat, 24 Jan 2015 18:26:05 +0000 (18:26 +0000)] 
Followup to r14886. So it turned out that in m_addrinfo we were already
strduping the filename which I failed to spot. Thanks to Philippe for
pointing that out.

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

10 years agoVG_(am_get_filename) returns a pointer to memory that belongs to the
Florian Krohm [Sat, 24 Jan 2015 00:02:19 +0000 (00:02 +0000)] 
VG_(am_get_filename) returns a pointer to memory that belongs to the
address space manager. Callers should neither modify the string nor
free it (as the string resides is statically allocated memory). That
calls for a   const HChar *
The type change exposed two bugs. One in m_addrinfo.c and one in
m_debuginfo.c. In both cases the returned string could possibly be freed later
on. So we need to strdup it first. Now fixed.

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

10 years agoMove comments next to the function prototypes they describe.
Florian Krohm [Fri, 23 Jan 2015 19:55:31 +0000 (19:55 +0000)] 
Move comments next to the function prototypes they describe.
No functional change.

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

10 years agoAdd function attributes.
Florian Krohm [Fri, 23 Jan 2015 16:53:06 +0000 (16:53 +0000)] 
Add function attributes.

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

10 years agoWrite proper wrappers for ioctls ION_IOC_ALLOC, ION_IOC_MAP and
Julian Seward [Fri, 23 Jan 2015 12:00:25 +0000 (12:00 +0000)] 
Write proper wrappers for ioctls ION_IOC_ALLOC, ION_IOC_MAP and
ION_IOC_IMPORT, and add a wrapper for SYNC_IOC_MERGE.

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

10 years agoMinor tweaks:
Florian Krohm [Tue, 20 Jan 2015 19:02:05 +0000 (19:02 +0000)] 
Minor tweaks:
- update a few boundary checks
- eliminate a loop
- remove a redundant assert

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

10 years agoAdd even more built-in functions for ICC.
Florian Krohm [Tue, 20 Jan 2015 18:46:13 +0000 (18:46 +0000)] 
Add even more built-in functions for ICC.
Patch by Gregory Czajkowski <gregczajkowski@yahoo.com>
Part of fixing BZ #339542.

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

10 years agoInitial trawl through bugs from 22 Nov 2014 to 20 Jan 2015.
Julian Seward [Tue, 20 Jan 2015 01:24:39 +0000 (01:24 +0000)] 
Initial trawl through bugs from 22 Nov 2014 to 20 Jan 2015.

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

10 years agoImport the list of bugs fixed in 3.10.1 (apparently never copied
Julian Seward [Tue, 20 Jan 2015 00:47:21 +0000 (00:47 +0000)] 
Import the list of bugs fixed in 3.10.1 (apparently never copied
into the trunk's NEWS file) and remove duplicates.

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

10 years agoPull in bugs opened after 22 Nov 2014.
Julian Seward [Tue, 20 Jan 2015 00:24:51 +0000 (00:24 +0000)] 
Pull in bugs opened after 22 Nov 2014.

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

10 years agoAdd some parentheses to keep gcc 5 (prerelease) from complaining.
Julian Seward [Tue, 20 Jan 2015 00:12:18 +0000 (00:12 +0000)] 
Add some parentheses to keep gcc 5 (prerelease) from complaining.
No functional change.

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

10 years agoHandle the memfd_create system call.
Tom Hughes [Mon, 19 Jan 2015 21:52:44 +0000 (21:52 +0000)] 
Handle the memfd_create system call.

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

10 years agoAdd more built-in functions for ICC.
Florian Krohm [Thu, 15 Jan 2015 15:54:40 +0000 (15:54 +0000)] 
Add more built-in functions for ICC.
Patch by Gregory Czajkowski <gregczajkowski@yahoo.com>
Part of fixing BZ #339542.

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

10 years agoRetroactive NEWS update for r14859, r14860 and r14861
Rhys Kidd [Wed, 14 Jan 2015 13:03:51 +0000 (13:03 +0000)] 
Retroactive NEWS update for r14859, r14860 and r14861

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

10 years agoExport VG_(discard_tranalsations_safely) to the tools. It is
Florian Krohm [Tue, 13 Jan 2015 17:33:59 +0000 (17:33 +0000)] 
Export VG_(discard_tranalsations_safely) to the tools. It is
only allowed to be called in certain contexts which is
enforced at runtime.
Change callgrind accordingly.
New header file pub_tool_transtab.h added.

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

10 years agoBZ #342795 Internal glibc __GI_mempcpy call should be intercepted.
Mark Wielaard [Tue, 13 Jan 2015 16:10:20 +0000 (16:10 +0000)] 
BZ #342795 Internal glibc __GI_mempcpy call should be intercepted.

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

10 years agoAdd to svn ignore auxprogs/getoff-*-darwin files created on OS X. The equivalent...
Rhys Kidd [Mon, 12 Jan 2015 13:29:29 +0000 (13:29 +0000)] 
Add to svn ignore auxprogs/getoff-*-darwin files created on OS X. The equivalent files are ignored from other architectures in this folder. Simple change, no-BZ.

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

10 years agoAdd to svn ignore gdbserver_tests/*.dSYM intermediate files created on OS X. These...
Rhys Kidd [Sun, 11 Jan 2015 07:04:20 +0000 (07:04 +0000)] 
Add to svn ignore gdbserver_tests/*.dSYM intermediate files created on OS X. These files are ignored in all other sub folders where created. Simple change, no-BZ.

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

10 years agoTrack VEX r3063 (function prototype change).
Florian Krohm [Sat, 10 Jan 2015 16:11:30 +0000 (16:11 +0000)] 
Track VEX r3063 (function prototype change).

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

10 years agoRemove superfluous function call.
Florian Krohm [Sat, 10 Jan 2015 15:25:54 +0000 (15:25 +0000)] 
Remove superfluous function call.

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

10 years agoRe-enable building of manythreads and thread-exits tests. Patch and discussion per...
Rhys Kidd [Fri, 9 Jan 2015 15:56:36 +0000 (15:56 +0000)] 
Re-enable building of manythreads and thread-exits tests. Patch and discussion per BZ #341613.

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

10 years agoDarwin13.supp should include suppression for known uninitialised read in pthread_rwlo...
Rhys Kidd [Fri, 9 Jan 2015 15:41:15 +0000 (15:41 +0000)] 
Darwin13.supp should include suppression for known uninitialised read in pthread_rwlock_init() as required to pass the memcheck/tests/darwin/pth-supp test. Patch and discussion per BZ #339780.

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

10 years agoDarwin13.supp should include suppression for known deliberate memory leak in setenv...
Rhys Kidd [Fri, 9 Jan 2015 15:32:07 +0000 (15:32 +0000)] 
Darwin13.supp should include suppression for known deliberate memory leak in setenv(). Patch and discussion per BZ #339755.

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

10 years agoComment only changes.
Florian Krohm [Thu, 8 Jan 2015 21:05:03 +0000 (21:05 +0000)] 
Comment only changes.

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

10 years agoAdd VG_(gettimeofday) such that callgrind can use it without
Florian Krohm [Thu, 8 Jan 2015 14:43:29 +0000 (14:43 +0000)] 
Add VG_(gettimeofday) such that callgrind can use it without
a bloody hack.

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

10 years agoCallgrind: fix BB discarding
Josef Weidendorfer [Thu, 8 Jan 2015 14:15:18 +0000 (14:15 +0000)] 
Callgrind: fix BB discarding

When the info struct for a BB is created, we use the first guest
instruction address as key to insert the info into a hash table.
We should do the same when discarding.

This actually is not a real problem, as Callgrind obviously
is used very rarely with redirections. But we should be consistent
with cachegrind.

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

10 years agoWhen creating a log-file (xml or otherwise) give everybody
Florian Krohm [Wed, 7 Jan 2015 14:47:15 +0000 (14:47 +0000)] 
When creating a log-file (xml or otherwise) give everybody
read permission. Previously, only user could read which was
incovenient for some typical workflows.
Suggested in BZ #339542.

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

10 years agoAdd command line option --max-connect=INT to allow the user to provide
Florian Krohm [Wed, 7 Jan 2015 14:42:11 +0000 (14:42 +0000)] 
Add command line option --max-connect=INT to allow the user to provide
an upper bound for the number of connected processes.
Part of fixing BZ #337869.

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

10 years agoFix a typo.
Florian Krohm [Tue, 6 Jan 2015 17:07:09 +0000 (17:07 +0000)] 
Fix a typo.

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

10 years agoSmall doc improvement: make more clear that --show-leak-kinds and --errors-for-leak...
Philippe Waroquiers [Mon, 5 Jan 2015 17:00:54 +0000 (17:00 +0000)] 
Small doc improvement:  make more clear that --show-leak-kinds and --errors-for-leak-kinds
have an effect only for a full leak search.

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

10 years agoFix compiler detection for ICC.
Florian Krohm [Mon, 5 Jan 2015 14:28:46 +0000 (14:28 +0000)] 
Fix compiler detection for ICC.
Patch by Gregory Czajkowski (gregczajkowski@yahoo.com).
Part of fixing BZ #339542.

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

10 years agoAvoid warning on Addr sp, unused on some platforms (e.g. ppc32)
Philippe Waroquiers [Mon, 5 Jan 2015 13:31:07 +0000 (13:31 +0000)] 
Avoid warning on Addr sp, unused on some platforms (e.g. ppc32)

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

10 years agoFix Makefile.am so it works for builds configured with
Florian Krohm [Sun, 4 Jan 2015 22:55:45 +0000 (22:55 +0000)] 
Fix Makefile.am so it works for builds configured with
--enable-only32bit.

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

10 years agoFix a compiler warning about an incompatible format.
Florian Krohm [Sun, 4 Jan 2015 22:47:32 +0000 (22:47 +0000)] 
Fix a compiler warning about an incompatible format.
Shows up on 32-bit builds only.

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

10 years ago* Remove useless typedef and uses of Addr32 and Addr64, just use Addr
Philippe Waroquiers [Sun, 4 Jan 2015 20:33:50 +0000 (20:33 +0000)] 
* Remove useless typedef and uses of Addr32 and Addr64, just use Addr
* uses correct filename in "dying here #ifdef"
* small reformat

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

10 years agoChange most remaining use of Addr64 in coregrind and the tools to Addr.
Florian Krohm [Sun, 4 Jan 2015 17:20:45 +0000 (17:20 +0000)] 
Change most remaining use of Addr64 in coregrind and the tools to Addr.
Tracking VEX r3056.

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

10 years agoTyEnt::TyStOrUn::fieldRs is never NULL as VG_(newXA) always returns
Florian Krohm [Sun, 4 Jan 2015 11:30:11 +0000 (11:30 +0000)] 
TyEnt::TyStOrUn::fieldRs is never NULL as VG_(newXA) always returns
something != NULL. Testing fieldRs for NULL-ness was confusing static
analysis. It usually takes such tests as evidence that the pointer
can in fact be NULL and may report false positives as a consequence.

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

10 years agoTrack the IMark changes in VEX r3055.
Florian Krohm [Fri, 2 Jan 2015 17:32:40 +0000 (17:32 +0000)] 
Track the IMark changes in VEX r3055.

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

10 years agoTrack VEX r3052 (VexTranslateArgs::guest_bytes_addr is an Addr value).
Florian Krohm [Fri, 2 Jan 2015 11:45:57 +0000 (11:45 +0000)] 
Track VEX r3052 (VexTranslateArgs::guest_bytes_addr is an Addr value).
There is more to tidy up here -- but that's for anoher day.

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

10 years agoRemove -Wcast-qual as it is already being added by Makefile.all.am
Florian Krohm [Thu, 1 Jan 2015 18:47:56 +0000 (18:47 +0000)] 
Remove -Wcast-qual as it is already being added by Makefile.all.am

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