Commit Graph

5081 Commits

Author SHA1 Message Date
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
Philippe Waroquiers
3a4ce80755 use verbosity 1 to report multiple termination of gdbserver,
this can happen e.g.  in case of irrecoverable execve failure.

This log was making tests fail randomly: the double termination
can only occur if gdbsrv was initialised.
After fork, gdbsrv is initialised by the next scheduler gdbsrv
activity check (by default, every 5000 blocks).

As a double termination has no effect, switch the trace to level 1.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15599
2015-08-30 15:44:07 +00:00
Philippe Waroquiers
c65a4ee146 Fix a leak of the abbrev hash table when --read-var-info=yes is given
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15590
2015-08-25 21:39:44 +00:00
Philippe Waroquiers
4998bd20e0 Use memset + assign to VgdbShared, to avoid memcheck warning that
uninit holes bytes are written to the shared file.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15586
2015-08-23 16:57:55 +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
Ivo Raisr
b00530b6de Distinguish properly when to establish the client data segment.
Initial data segment is established (see initimg-solaris.c for rationale):
- directly during client program image initialization,
- or on demand when the executed program is the runtime linker itself,
  after it has loaded its target dynamic executable (see PRE(sys_mmapobj)),
  or when the first brk() syscall is made.

More preparatory work for ldsoexec support.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15583
2015-08-22 22:08:43 +00:00
Philippe Waroquiers
61e523958b Fix warning signed unsigned comparison in m_oset.c :
../../coregrind/m_oset.c:413:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15582
2015-08-21 22:34:53 +00:00
Philippe Waroquiers
9e871fd7ba Use VG_(arena_memalign) for thread array rather than VG_(malloc)-ed + align
Objective is to avoid a 'possibly lost' leak when self-hosting
(and re-uses the already existing align logic in m_mallocfree.c)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15581
2015-08-21 22:22:27 +00:00
Julian Seward
9d215c1326 Bug 346185 - Fix typo saving altivec register v24.
Patch from Dave Lerner (david.lerner26@sbcglobal.net).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15579
2015-08-21 13:43:07 +00:00
Julian Seward
adc2dafee9 Update copyright dates, to include 2015. No functional change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15577
2015-08-21 11:32:26 +00:00
Ivo Raisr
542fa886dc Initial data (brk) segment is setup on demand, when a first brk() syscall
is made. It cannot be established during client image initialization because
that would conflict with a temporary stack which ld.so.1 (when executed directly)
uses for loading the target dynamic executable.
See PRE(sys_brk) in syswrap-solaris.c.

Preparatory work for ldsoexec support.
n-i-bz



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15572
2015-08-20 20:25:19 +00:00
Florian Krohm
6c715bf33e Fix comparison in function VG_(iseqsigset).
Patch by dcb314@hotmail.com
Fixes BZ #351474.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15568
2015-08-19 10:09:08 +00:00
Julian Seward
6d6732e9df Fix a second format string error observed whilst building on OSX 10.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15564
2015-08-18 07:54:22 +00:00
Julian Seward
7540350321 Fix a format string error observed whilst building on OSX 10.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15563
2015-08-17 21:19:19 +00:00
Ivo Raisr
707501d444 Runtime linker ld.so.1 can be now run under Valgrind on Solaris.
Fixes BZ#351386.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15562
2015-08-17 19:13:12 +00:00
Julian Seward
bbb480bad2 Fix format string confusion that was somehow related to r15510.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15556
2015-08-16 11:54:38 +00:00
Ivo Raisr
b66705c636 Newer Solaris has added /proc/self/cmdline and /proc/<pid>/cmdline.
Add support for it in the syswrap machinery and test it more thoroughly.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15545
2015-08-14 20:50:11 +00:00
Julian Seward
8c3ef7eb80 Bug 348345 - Assertion fails for negative lineno
(in ML_(addLineInfo))
Patch from Jim Garrison (jim@garrison.cc)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15544
2015-08-14 09:02:46 +00:00
Julian Seward
e421887527 345338 - TIOCGSERIAL and TIOCSSERIAL ioctl support on Linux
Patch from Martin Ling (martin-kdebugs@earth.li)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15542
2015-08-14 08:17:37 +00:00
Julian Seward
396f02357d Bug 349034 - Add Lustre ioctls LL_IOC_GROUP_LOCK and LL_IOC_GROUP_UNLOCK
Patch from Frank Zago (fzago@cray.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15541
2015-08-14 08:05:35 +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
a2df7642ef Bug 339563 - The DVB demux DMX_STOP ioctl doesn't have a wrapper.
Patch from mchehab@infradead.org (Mauro Carvalho Chehab).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15537
2015-08-13 14:53:17 +00:00
Florian Krohm
673a4411f0 Write a SysRes value as an unsigned number.
Previously, whether the bitpattern was interpreted as a 
signed or unsigned value depended on the platform.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15531
2015-08-13 12:27:48 +00:00
Ivo Raisr
166c052df4 Fix the regression from r15518 which broke builds
on older Solaris releases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15530
2015-08-12 16:03:16 +00:00
Julian Seward
34f275eb14 Enhance VG_(machine_get_hwcaps) to check enough stuff to ensure
that VEX's XSAVE/XRSTOR implementation will work correctly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15523
2015-08-12 11:16:47 +00:00
Ivo Raisr
cb0b01d098 Add support for repository cache protocol version 26.
Patch contributed by Tomas Jedlicka <jedlickat@gmail.com>.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15518
2015-08-11 09:12:40 +00:00
Mark Wielaard
a398bfb863 Bug #351140 arm64 syscalls setuid (146) and setresgid (149) not implemented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15517
2015-08-09 22:37:52 +00:00
Florian Krohm
5685245df0 Consistently use exit code 1 (== POSIX's EXIT_FAILURE) if things
go wrong. As we can tell from the error messages what whent wrong 
there is no need to have different exit codes to distinguish.
Spotted by Matthias Schwarzott.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15515
2015-08-09 20:29:18 +00:00
Florian Krohm
aefb16463d Fix a few function declarations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15514
2015-08-09 16:27:44 +00:00
Florian Krohm
9a3883bf3d Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15510
2015-08-08 21:45:33 +00:00
Florian Krohm
3ea69c8ce3 Fix two more format inconsistencies found on s390. The one
in m_stacktrace.c also existed for other architectures. Fixed
as well.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15508
2015-08-08 21:08:31 +00:00
Zhi-Gang Liu
1f410da917 Disable gdb XML file for TileGX
There will be no support --vgdb-shadow-registers=yes
for TileGX platform.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15505
2015-08-07 13:25:24 +00:00
Florian Krohm
78b86dbbfc Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15503
2015-08-06 12:11:33 +00:00
Florian Krohm
68ff2e7a64 As per discussion with Julian comment out some dead assignments.
Now matches what is done for arm64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15502
2015-08-06 09:34:20 +00:00
Florian Krohm
4b555b5a54 Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15501
2015-08-06 09:00:48 +00:00
Florian Krohm
01ea732633 Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15500
2015-08-05 22:27:24 +00:00
Florian Krohm
e56a4a50df Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15499
2015-08-05 21:16:09 +00:00
Florian Krohm
038bb9a321 Add a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15493
2015-08-05 13:25:58 +00:00
Florian Krohm
130cf6ffca The number of elements in a RangeMap cannot be negative.
Let the return type of VG_(sizeRangeMap) reflect that.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15492
2015-08-05 13:23:11 +00:00
Florian Krohm
99514d1d7f The number of elements in an OSet cannot be negative.
Let the return type of VG_(OSetGen_Size) reflect that.
Also fix a few casts.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15491
2015-08-05 12:09:55 +00:00
Florian Krohm
7bd7811604 The number of elements in a hash table cannot be negative.
Let the return type of VG_(HT_count_nodes) reflect that.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15490
2015-08-05 11:26:10 +00:00
Ivo Raisr
9ac1832814 Check for Solaris specific program headers PT_SUNW_SYSSTAT and PT_SUNW_SYSSTAT_ZONE;
and act accordingly. Test cases provided. n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15469
2015-08-01 21:53:08 +00:00
Ivo Raisr
5633f3b114 Fix hard-to-understand code in VG_(load_ELF)().
Although it is a valid C [1], the closing bracket for "case PT_INTERP" is misplaced.
Fixes BZ #350854.

[1] https://en.wikipedia.org/wiki/Duff%27s_device#Mechanism


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15467
2015-08-01 12:11:09 +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
Rhys Kidd
c5cf91fc5d ioctl handling needs to do POST handling on generic ioctls and needs to handle BPF ioctls
bz#312989

Patch by Guy Harris <guy@alum.mit.edu>

On OS X 10.10

Before:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15451
2015-07-25 07:57:55 +00:00
Rhys Kidd
4848781351 Fix clang/osx: ld: warning: -read_only_relocs cannot be used with x86_64
bz#349769


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15450
2015-07-25 05:50:10 +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