Re: BUG #15121: Multiple UBSAN errors

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Martin Liška <marxin.liska@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, pgsql-bugs@lists.postgresql.org
Date: 2018-03-22T23:34:39Z
Lists: pgsql-bugs
On 2018-03-19 21:01:28 +0100, Martin Liška wrote:
> > Oh. I think I'll setup two BF animals that continually run using
> > debian's gcc-snapshot package, once with O0 and once with O3.

I've done that now. serinus (-O3) and flaviventris (-O0.


> OK guys, you were right, it's miscompilation caused by GCC:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84969

The current version of the gcc-snapshot package is from before the
commited fix. I've now updated, therefore we hopefully should see
serinus turn green again.

Greetings,

Andres Freund


Commits

  1. Don't read fields of a misaligned ExpandedObjectHeader or AnyArrayType.

  2. Doc: note that statement-level view triggers require an INSTEAD OF trigger.