11390 Commits

Author SHA1 Message Date
Julian Seward
e9fbe0b4db Initial trawl through bugs from 22 Nov 2014 to 20 Jan 2015.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14880
2015-01-20 01:24:39 +00:00
Julian Seward
b4c697046f 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
2015-01-20 00:47:21 +00:00
Julian Seward
59a7ac8186 Pull in bugs opened after 22 Nov 2014.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14878
2015-01-20 00:24:51 +00:00
Julian Seward
9dbe973b16 Add some parentheses to keep gcc 5 (prerelease) from complaining.
No functional change.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14877
2015-01-20 00:12:18 +00:00
Tom Hughes
6504fa50c3 Handle the memfd_create system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14875
2015-01-19 21:52:44 +00:00
Florian Krohm
392c743fc2 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
2015-01-15 15:54:40 +00:00
Rhys Kidd
e52281ad72 Retroactive NEWS update for r14859, r14860 and r14861
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14871
2015-01-14 13:03:51 +00:00
Florian Krohm
cbd27b7288 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
2015-01-13 17:33:59 +00:00
Mark Wielaard
7d07a3deaf BZ #342795 Internal glibc __GI_mempcpy call should be intercepted.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14866
2015-01-13 16:10:20 +00:00
Rhys Kidd
8c4404cd42 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
2015-01-12 13:29:29 +00:00
Rhys Kidd
0d12d04a95 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
2015-01-11 07:04:20 +00:00
Florian Krohm
42a94575e2 Track VEX r3063 (function prototype change).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14863
2015-01-10 16:11:30 +00:00
Florian Krohm
0092cea919 Remove superfluous function call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14862
2015-01-10 15:25:54 +00:00
Rhys Kidd
6043f8dc47 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
2015-01-09 15:56:36 +00:00
Rhys Kidd
b863738973 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
2015-01-09 15:41:15 +00:00
Rhys Kidd
872f37b54b 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
2015-01-09 15:32:07 +00:00
Florian Krohm
064c640dc3 Comment only changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14858
2015-01-08 21:05:03 +00:00
Florian Krohm
d64b630f9a Add VG_(gettimeofday) such that callgrind can use it without
a bloody hack.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14857
2015-01-08 14:43:29 +00:00
Josef Weidendorfer
fc60e4c9c8 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
2015-01-08 14:15:18 +00:00
Florian Krohm
509348583a 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
2015-01-07 14:47:15 +00:00
Florian Krohm
8add9ace6c 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
2015-01-07 14:42:11 +00:00
Florian Krohm
8a33421f4f Fix a typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14853
2015-01-06 17:07:09 +00:00
Philippe Waroquiers
5f8b8d6918 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
2015-01-05 17:00:54 +00:00
Florian Krohm
9ee522e2a3 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
2015-01-05 14:28:46 +00:00
Philippe Waroquiers
0672c4742a Avoid warning on Addr sp, unused on some platforms (e.g. ppc32)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14850
2015-01-05 13:31:07 +00:00
Florian Krohm
fe89cb4e4d Fix Makefile.am so it works for builds configured with
--enable-only32bit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14849
2015-01-04 22:55:45 +00:00
Florian Krohm
d4828f7d30 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
2015-01-04 22:47:32 +00:00
Philippe Waroquiers
d240571e38 * 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
2015-01-04 20:33:50 +00:00
Florian Krohm
a9aa079113 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
2015-01-04 17:20:45 +00:00
Florian Krohm
08d759c9a4 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
2015-01-04 11:30:11 +00:00
Florian Krohm
e7ed65a9f3 Track the IMark changes in VEX r3055.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14844
2015-01-02 17:32:40 +00:00
Florian Krohm
c684ec4340 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
2015-01-02 11:45:57 +00:00
Florian Krohm
5794abe0da Remove -Wcast-qual as it is already being added by Makefile.all.am
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14842
2015-01-01 18:47:56 +00:00
Florian Krohm
522dc6e7ce Add -std=gnu99 to the list of compile flags.
Remove -Wno-long-long as it is no longer needed. long long is part
of C99.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14841
2015-01-01 18:26:05 +00:00
Florian Krohm
a3842cf5b6 The definition of type Addr has moved to VEX and
the resteer callback has changed (VEX r3050). Track those changes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14840
2014-12-31 12:11:15 +00:00
Florian Krohm
8bfff4f698 Import offsetof and vg_alignof from VEX (tracking VEX r3049).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14839
2014-12-29 22:19:24 +00:00
Florian Krohm
d509d8aff0 Add a command line option to allow the user to provide an upper bound
for the number of connected processes. This is still lame but better
than asking her to recompile.
Part of fixing BZ #337869.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14838
2014-12-29 22:07:35 +00:00
Florian Krohm
49d07591ed Change a logging function to use SizeT (tracking VEX r3047).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14837
2014-12-29 20:23:11 +00:00
Florian Krohm
e61bbd6a9d Move definition of type SizeT to VEX (see VEX r3046).
Enhance printeffery to print SizeT values.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14836
2014-12-29 19:06:40 +00:00
Philippe Waroquiers
015923fcef Fix 342221 - socket connect produce false positive saying access to uninitialized memory area
As we check what follows af_family, the length to check must be decreased
by sizeof(af_maily)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14835
2014-12-29 18:24:37 +00:00
Florian Krohm
5af4195103 Remove the type AddrH. The code assumes in many places that the host
and guest architecture are the same. So the type is really pointless
nowadays.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14834
2014-12-29 17:04:46 +00:00
Philippe Waroquiers
d1b502efef Fix 341539 VG_(describe_addr) should not describe address as belonging to client
segment if it is past the heap end

Describes specifically an address that is in the brk data segment
or in the 'reduced' (after brk reduction) section of the brk data segment.

Based on a patch from Ivo Raisr.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14833
2014-12-28 17:30:22 +00:00
Florian Krohm
1aa9a52c1c Avoid spurious warnings about white space following a backslash
in a line splice.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14832
2014-12-28 16:46:14 +00:00
Florian Krohm
cacbc41c45 Fix a few casts. A void * cannot be used to initialise a function pointer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14831
2014-12-24 11:11:42 +00:00
Florian Krohm
8a6dc4665e Elimnate two magic constants.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14830
2014-12-23 11:05:21 +00:00
Philippe Waroquiers
993795602b Fix a typo, introduced when fixing a typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14829
2014-12-21 17:53:42 +00:00
Philippe Waroquiers
47014c3128 Fix typo
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14828
2014-12-21 17:46:11 +00:00
Philippe Waroquiers
b25c5ed14c Follow up to rev 14823: make errors when reporting command line non critical
(as e.g. cmdline reporting is not available on MacOS)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14827
2014-12-21 17:31:54 +00:00
Philippe Waroquiers
b08bb282f8 342063 wrong format specifier for test mcblocklistsearch in gdbserver_tests
Patch from Ivo Raisr.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14826
2014-12-21 17:02:38 +00:00
Florian Krohm
87dbf329ed Buffer audit. Resize some.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14825
2014-12-20 16:52:08 +00:00