Re: BUG #14897: Segfault on statitics SQL request

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: Vincent Lachenal <vincent.lachenal@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2017-11-10T23:06:55Z
Lists: pgsql-bugs
Dmitry Dolgov <9erthalion6@gmail.com> writes:
> Looks like I can reproduce something close to this issue on my Gentoo
> installation using the provided dataset, but it looks quite weird for me:

Interesting.  I wonder whether __int128 has an alignment requirement that
is more than MAXALIGN.  Intel chips generally don't enforce alignment
requirements, but maybe there's an exception here?

My Fedora box thinks __alignof__(__int128) is 16, which is suspicious,
but it's not crashing.

			regards, tom lane


Commits

  1. Prevent int128 from requiring more than MAXALIGN alignment.

  2. Rearrange c.h to create a "compiler characteristics" section.