Re: ERROR: invalid spinlock number: 0

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: ERROR: invalid spinlock number: 0
Дата
Msg-id YCUpTL8bZHa+9K+0@paquier.xyz
обсуждение исходный текст
Ответ на ERROR: invalid spinlock number: 0  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Ответы Re: ERROR: invalid spinlock number: 0  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Список pgsql-hackers
Hi Fujii-san,

On Tue, Feb 09, 2021 at 11:17:04PM +0900, Fujii Masao wrote:
> ISTM that the commit 2c8dd05d6c caused this issue. The commit changed
> pg_stat_get_wal_receiver() so that it reads "writtenUpto" by using
> pg_atomic_read_u64(). But since "writtenUpto" is initialized only when
> walreceiver starts up, reading "writtenUpto" before the startup of
> walreceiver can cause the error.

Indeed, that's a problem.  We should at least move that out of the
spin lock area.  I'll try to look at that in details, and that's going
to take me a couple of days at least.  Sorry for the delay.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pg_cryptohash_final possible out-of-bounds access (per Coverity)
Следующее
От: Ranier Vilela
Дата:
Сообщение: Re: Operands don't affect result (CONSTANT_EXPRESSION_RESULT) (src/backend/utils/adt/jsonfuncs.c)