948 Commits

Author SHA1 Message Date
Ivo Raisr
0d30686d21 When searching for global public symbols (like for the somalloc
synonym symbols), exclude the dynamic (runtime) linker as it is very
special.
Fixes BZ#355454


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15728
2015-11-18 20:38:37 +00:00
Mark Wielaard
8b4dd5c47c BZ#355188 valgrind should intercept all malloc related global functions.
This implements the interception of all globally public allocation
functions by default. It works by adding a flag to the spec to say the
interception only applies to global functions. Which is set for the
somalloc spec. The librarypath to match is set to "*" unless the user
overrides it. Then each DiSym keeps track of whether the symbol is local
or global. For a spec which has isGlobal set only isGlobal symbols will
match.

Note that because of padding to keep the addresses in DiSym aligned the
addition of the extra bool isGlobal doesn't actually grow the struct.
The comments explain how the struct could be made more compact on 32bit
systems, but this isn't as easy on 64bit systems. So I didn't try to do
that in this patch.

For ELF symbols keeping track of which are global is trivial. For pdb I
had to guess and made only the "Public" symbols global. I don't know
how/if macho keeps track of global symbols or not. For now I just mark
all of them local (which just means things work as previously on platforms
that use machos, no non-system symbols are matches by default for somalloc
unless the user explicitly tells which library name to match).

Included are two testcases for shared libraries (wrapmalloc) and staticly
linked (wrapmallocstatic) malloc/free overrides that depend on the new
default. One existing testcase (new_override) was adjusted to explicitly
not use the new somalloc default because it depends on a user defined
new implementation that has side-effects and should explicitly not be
intercepted.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15726
2015-11-15 16:50:43 +00:00
Julian Seward
6229d73981 Initial add of new bugs since 3.11.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15725
2015-11-09 20:58:01 +00:00
Julian Seward
f356d4e5ad Create 3_11_BUGSTATUS.txt.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15724
2015-11-09 20:35:51 +00:00
Julian Seward
0a8d1755ec Merge, from branches/VALGRIND_3_11_BRANCH, NEWS and docs/xml/vg-entities.xml.
Bump version to 3.12.0.SVN.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15679
2015-09-23 13:35:36 +00:00
Julian Seward
43f0bfc6be Update for Fedora 21 and 22.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15645
2015-09-08 12:53:49 +00:00
Julian Seward
944183cb69 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15640
2015-09-07 20:00:05 +00:00
Florian Krohm
93504b89c4 Changes related to new IROp Iop_RoundF128toInt. See VEX r3183.
s390: Add testcase for fixbr.
Patch by Andreas Arnez <arnez@linux.vnet.ibm.com>.
Part of fixing BZ #350290.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15629
2015-09-05 20:39:27 +00:00
Ivo Raisr
740867d1d9 Document that --read-inline-info=yes is the default
even on Solaris for Memcheck, Helgrind and DRD.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15613
2015-09-01 11:51:16 +00:00
Julian Seward
0b063cb3c3 Change the default setting for --dsymutil from =no to =yes, since
in practice it needs to be permanently enabled on OS X.  No change
on other platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15603
2015-08-31 14:37:25 +00:00
Julian Seward
5582e3a511 Revisit r15601 (Change the --smc-check default value to =all-non-file.)
to restrict the change to those architectures that do provide automatic
D-I coherence (x86, amd64, s390x).  This commit restores the default
value for all other architectures back to its pre r15601 state, so as not
to burden those architectures unnecessarily with =all-non-file.

Also, this rewrites the relevant manual section.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15602
2015-08-31 14:24:14 +00:00
Julian Seward
6bf68780dc Change the --smc-check default value to =all-non-file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15601
2015-08-31 13:05:35 +00:00
Rhys Kidd
88e8611524 docs: env variable handling behaviour consistent between OS X and Linux, thus remove redundant comment and #ifdef. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15585
2015-08-23 14:37:47 +00:00
Rhys Kidd
d8a45cbef1 Preliminary support for OS X 10.11 (El Capitan) documentation. bz#348909.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15584
2015-08-23 08:27:45 +00:00
Julian Seward
893c2a3f08 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15580
2015-08-21 14:49:47 +00:00
Julian Seward
52608c6f89 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15575
2015-08-21 10:53:32 +00:00
Julian Seward
1c495d6a5e Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15560
2015-08-17 14:03:16 +00:00
Julian Seward
a0f2ed1dac Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15543
2015-08-14 08:29:49 +00:00
Philippe Waroquiers
b6876b9917 Fix 350202 - Add limited param to 'monitor block_list'
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15540
2015-08-13 22:49:32 +00:00
Philippe Waroquiers
aaa87fa0eb Remove 343173 helgrind crash during stack unwind from 3_10_BUGSTATUS.txt
as it was fixed some time ago (and announced in NEWS)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15539
2015-08-13 22:42:34 +00:00
Florian Krohm
cdf7f871da Improve mmap MAP_HUGETLB support.
This is a follow up to r14682:

When an mmap retry is done without any constraints, the kernel can
place it into free or reservation segments (i.e. anywhere there is no
mapping yet).
In r14682 a sanity check made the hypothesis that the new mapping was
in a free segment, but it does not hold at least on Linux 3.12 and 3.16
on amd64 (tested under Debian).
There is no risk in allowing the mapping to end up in (what was
previously) a reservation at this point, because it is also allowed.

Patch by Guillaume Knispel <xilun0@gmail.com>. Fixes BZ #348269.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15538
2015-08-13 20:35:03 +00:00
Julian Seward
a34651d40c Update following amd64 AVX front end fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15533
2015-08-13 12:55:09 +00:00
Julian Seward
4decfe3ed5 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15529
2015-08-12 14:47:26 +00:00
Florian Krohm
f5ca26042c In VALGRIND_PRINTF write out the thread name to xml.
Patch by Matthias Schwarzott <zzam@gentoo.org>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15460
2015-07-30 21:49:49 +00:00
Florian Krohm
021a3ef28b Remove command line options --db-attach and --db-command which were
deprecated in 3.10.0


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15445
2015-07-24 11:50:12 +00:00
Rhys Kidd
15a0f32113 Complete fix for bz#344416 - Fix make regtest does not work cleanly on OS X (3).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15442
2015-07-23 05:49:13 +00:00
Florian Krohm
9d35a5c2fa Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15430
2015-07-21 21:44:02 +00:00
Julian Seward
ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com
            


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00
Florian Krohm
bee7a2bf8b Followup to r15406:
- update list of supported s390 opcodes
- update bug status
- keep BZ list in NEWS sorted


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15407
2015-07-09 21:05:26 +00:00
Julian Seward
5081761ce2 Minor updates; also note the fixing of 346411.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15405
2015-07-08 17:13:46 +00:00
Julian Seward
b08074afb2 Roughly classify all the bugs in 3_10_BUGSTATUS.txt.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15401
2015-07-08 09:22:40 +00:00
Julian Seward
f182df1a0b Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15399
2015-07-07 13:29:09 +00:00
Rhys Kidd
fb704a2663 Partial update of OS X related 3_10_BUGSTATUS, due to resolved bug reports.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15363
2015-06-28 04:22:34 +00:00
Philippe Waroquiers
0f68fc4797 Waiting for the release, the doc should better indicate it is a SVN version
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15338
2015-06-13 15:54:22 +00:00
Julian Seward
d99ae1b60f Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15316
2015-06-05 12:08:10 +00:00
Philippe Waroquiers
a833d76cd9 Add a gdbxrv monitor command to print the CFI unwind info for an address+len
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15306
2015-06-02 22:09:42 +00:00
Julian Seward
9f67c29f8b Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15256
2015-05-19 16:01:40 +00:00
Julian Seward
f08c405714 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15193
2015-05-08 09:52:42 +00:00
Julian Seward
fda6609964 Add a new howto for running mips64-linux on QEMU.
Rename the aarch64-linux howto accordingly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15178
2015-05-04 08:40:11 +00:00
Julian Seward
e6e2211dc8 Add a HOWTO on how to build and install aarch64-linux on QEMU,
primarily for testing convenience.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15159
2015-04-30 11:06:00 +00:00
Julian Seward
065bdba7c8 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15151
2015-04-28 11:49:05 +00:00
Philippe Waroquiers
90febbe39b Add some internal documentation for 'svn ignore' maintenance;
reference it from README_DEVELOPERS_processes


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15139
2015-04-23 21:28:12 +00:00
Julian Seward
082f9298a1 Add a port to Linux/TileGx. Zhi-Gang Liu (zliu@tilera.com)
Valgrind aspects, to match vex r3124.

See bug 339778 - Linux/TileGx platform support to Valgrind



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15080
2015-04-10 12:30:09 +00:00
Florian Krohm
544aa45a0f Merge the contents of docs/internals/howto_build_documentation
into docs/README.
Remove the section about the XML Toolchain as it is outdated.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15019
2015-03-16 22:42:13 +00:00
Florian Krohm
df2bfc8447 Add a howto for building documentation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15017
2015-03-16 12:22:35 +00:00
Philippe Waroquiers
162d69c37f New Option --avg-transtab-entry-size=<number> can be used to tune
the size of the translation table sectors, either to gain memory
  or to avoid too many retranslations.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15016
2015-03-15 12:24:19 +00:00
Philippe Waroquiers
826502e89a Implement command line option --valgrind-stacksize=<number>
This allows to decrease memory usage when using many threads,
if no big stacksize is needed by Valgrind.
If needed (e.g. for demangling big c++ symbols), the V stacksize
can be increased.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15004
2015-03-12 20:43:46 +00:00
Florian Krohm
20a1bb0d5b Update release notes with ICC contact.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14999
2015-03-10 21:31:06 +00:00
Julian Seward
defb95cc10 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14983
2015-03-06 09:20:51 +00:00
Julian Seward
49113a05af Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14980
2015-03-05 11:25:52 +00:00