Re: BUG #15121: Multiple UBSAN errors

From: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
To: Martin Liška <marxin(dot)liska(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, PG Bug reporting form <noreply(at)postgresql(dot)org>
Subject: Re: BUG #15121: Multiple UBSAN errors
Date: 2018-03-19 14:26:12
Message-ID: 46a345c1-1f8d-fd0d-c334-d8ca577719a9@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 03/19/2018 09:59 AM, Martin Liška wrote:
> On 19 March 2018 at 01:34, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> wrote:
>
> ...
>>
>> Again, the line numbers don't really match the code I have, but I guess
>> it's the same issue as for pg_comp_crc32c_sse42. This is apparently
>> related to array serialization, and I guess we have a compact structure
>> (intentionally, to make it smaller), and we accept the unaligned access.
>
> Note that building postgresql with -03, I see some array tests failing.
>

I'm unable to reproduce that. I do get a bunch of compile-time warnings
about possibly uninitialized variables (which seem bogus after a quick
inspection), but no failures.

Which gcc version are you using? Mine is 6.4.1. Do the failures happen
every time or rarely?

regards

--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martin Liška 2018-03-19 14:28:48 Re: BUG #15121: Multiple UBSAN errors
Previous Message Tom Lane 2018-03-19 13:48:15 Re: Different behaviour for pg_ctl --wait between pg9.5 and pg10