This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: valgrind support for glibc/kernel arm64 HWCAPS
- From: Siddhesh Poyarekar <siddhesh at gotplt dot org>
- To: Florian Weimer <fweimer at redhat dot com>, Mark Wielaard <mark at klomp dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, valgrind-developers at lists dot sourceforge dot net
- Date: Thu, 6 Jul 2017 09:44:45 +0530
- Subject: Re: valgrind support for glibc/kernel arm64 HWCAPS
- Authentication-results: sourceware.org; auth=none
- References: <4cc2a089-aa95-61e3-19ff-437efda1b420@redhat.com> <1498215666.3709.126.camel@fedoraproject.org> <292f23e0-ce84-54d3-e2b6-416f7acae81d@gotplt.org> <21e8ef62-e393-6c0e-51ca-ac4b03f97ded@redhat.com> <f47d3e6c-27d7-079e-b9a2-5378c62b31bb@gotplt.org> <1498218016.3709.140.camel@fedoraproject.org> <5b42bde5-0a8d-82b4-ef39-64634f059390@gotplt.org> <1499269376.14595.9.camel@klomp.org> <68d1e552-b25a-ca51-33ed-96a8f1b35f42@gotplt.org> <2efe2af2-e6b1-5085-e3dc-6df74e8c1d6a@redhat.com>
On Thursday 06 July 2017 12:34 AM, Florian Weimer wrote:
> Why do you expect valgrind to be able to execute code specific to vendor
> CPUs? That's not even true for i386 and x86-64 and micro-architecture
> ISA extensions.
The expectation is that it looks for potential memory access issues in
these low level functions themselves, but that is probably too much to
expect. However this:
(c) the glibc SSE-variants can read past the end of the input data
ranges. This can cause false-positive Memcheck / Helgrind / DRD
reports.
sounds scary. It's been a while since I've looked at the x86 versions
of the string functions, do you (or Mark) know what this is referring to
and why it is safe?
It would be nice to get some more details of this one as well:
(b) some of the normal versions are hyper-optimised, which fools
Memcheck and cause spurious value warnings. Our versions are
simpler.
specifically whether it is x86-specific or true for other architectures
as well and what happens there. If nothing, at least document it
somewhere so that noobs like me don't get alarmed when they see it :)
Siddhesh