Re: Detecting pointer misalignment (was Re: pgsql: Implementation of subscripting for jsonb)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Detecting pointer misalignment (was Re: pgsql: Implementation of subscripting for jsonb)
Дата
Msg-id 1557041.1613150383@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Detecting pointer misalignment (was Re: pgsql: Implementation of subscripting for jsonb)  (Alexander Korotkov <aekorotkov@gmail.com>)
Ответы Re: Detecting pointer misalignment (was Re: pgsql: Implementation of subscripting for jsonb)  (Alexander Korotkov <aekorotkov@gmail.com>)
Re: Detecting pointer misalignment (was Re: pgsql: Implementation of subscripting for jsonb)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I've updated buildfarm member longfin to use "-fsanitize=alignment
-fsanitize-trap=alignment", and it just got through a run successfully
with that.  It'd be good perhaps if some other buildfarm owners
followed suit (mumble JIT coverage mumble).

Looking around at other recent reports, it looks like we'll need to tweak
the compiler version cutoffs a bit.  I see for instance that spurfowl,
with gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609, is whining:

pg_crc32c_sse42.c:24:1: warning: \342\200\230no_sanitize\342\200\231 attribute directive ignored [-Wattributes]

So maybe it'd better be __GNUC__ >= 6 not __GNUC__ >= 5.  I think
we can wait a little bit for more reports before messing with that,
though.

Once this does settle, should we consider back-patching so that it's
possible to run alignment checks in the back branches too?

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: pg13.2: invalid memory alloc request size NNNN
Следующее
От: Isaac Morland
Дата:
Сообщение: Trigger execution role