ppc64 asan issue

William Kennington wak at google.com
Wed Feb 13 06:31:24 AEDT 2019


I'm doing autodetection for it now, but it is something I need to test
with a compiler closer to upstream.
https://github.com/openbmc/openbmc-build-scripts/commit/0b7fb2bcfd603949f9999127f56e3fc0e0351fbc

On Tue, Feb 12, 2019 at 3:03 AM Joel Stanley <joel at jms.id.au> wrote:
>
> Hi William,
>
> I saw this change to our build scripts, where we disable the sanitiser
> for ppc64:
>
> https://github.com/openbmc/openbmc-build-scripts/commit/282e33011ea62fe80bff2c5ab0e9ef9446d6c551
>
> It would be great if you could open a bug report about this one. As a
> starting point it should file it against GCC, but even an openbmc
> issue would be a good start.
>
> I did some investigation myself and I could reproduce the failure on
> GCC 7 on Ubuntu 18.04 ppc64le. It didn't happen with GCC 8, nor with
> GCC trunk.
>
> However even GCC 7 took a few compiles before I started hitting the
> issue, so my testing may have not been comprehensive.
>
> Cheers,
>
> Joel
>
> --
> My testing looked like this:
>
> $ cat san.c
> #include <stdlib.h>
> #include <stdio.h>
>
> int main()
> {
>     void *p = malloc(4);
>     printf("%p\n", p);
>     return 0;
> }
> $ gcc -fsanitize=address -o san{,.c}
> $ ./san


More information about the openbmc mailing list