FYI s390x: 'current.ctime.tv_nsec' may be used uninitialized in this function

Florian Weimer fweimer@redhat.com
Mon Feb 17 11:30:00 GMT 2020


* Stefan Liebler:

> On 2/15/20 12:52 PM, Florian Weimer wrote:
>> * Carlos O'Donell:
>>
>>> Florian,
>>>
>>> Patsy was doing  a Fedora Rawhide sync with glibc master and noticed the
>>> testsuite has stopped building in this week's sync on s390x.
>>>
>>> I haven't looked into this but I thought I should drop this update to the
>>> list if anyone else ran into this. I expect we need to fix something here
>>> to avoid the compiler's -Werror=maybe-uninitialized.
>>
>> I believe the “fix” is to move the implementation into a separate .c
>> file.
>>
>> Thanks,
>> Florian
>>
>
> Hi,
>
> I also have not looked at it. But I've also seen this on x86_64 where
> I've build with -O3 (don't know if it also occures with -O2). The
> distro was a Fedora 30.

I posted a patch which should fix this, but I don't know for sure:

  <https://www.sourceware.org/ml/libc-alpha/2020-02/msg00744.html>

Maybe you could give it a try and review it?

Thanks,
Florian



More information about the Libc-alpha mailing list