Re: BUG #15943: Valgrind-detected error in SlruPhysicalWritePage

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: BUG #15943: Valgrind-detected error in SlruPhysicalWritePage
Дата
Msg-id 7b8cbcf5-58a4-c119-b25a-e82358b44f9e@gmail.com
обсуждение исходный текст
Ответ на Re: BUG #15943: Valgrind-detected error in SlruPhysicalWritePage  (Alexander Lakhin <exclusion@gmail.com>)
Список pgsql-bugs
Hello hackers,
> 08.08.2019 13:33, Andres Freund wrote:
>> On August 8, 2019 12:44:43 AM EDT, PG Bug reporting form <noreply@postgresql.org> wrote:
>>> The following bug has been logged on the website:
>>>
>>> Bug reference:      15943
>>> Logged by:          Alexander Lakhin
>>> Email address:      exclusion@gmail.com
>>> PostgreSQL version: 12beta2
>>> Operating system:   Ubuntu 18.04
>>> Description:        
>>>
>>> When running under valgrind (sitting on the master branch):
>>> printf "SELECT pg_notify('notify_async1',NULL); %.0s" `seq 2048` | psql
>>>
>> That seems likely to be padding. Probably easier to see if you enable read-var-info and track-origins.
> Indeed, "memset(&qe, 0, sizeof(qe));" added in the beginning of
> asyncQueueAddEntries fixes the issue.
> More interestingly, "memset(qe.data, 0, sizeof(qe.data));" in the same
> place fixes it too (the patch is attached).
> So it seems, the padding in AsyncQueueEntry has an alibi.
Andres, you're right. The padding is found guilty (inside the qe.data
itself).
Please look at the patch addressing the cause of the problem (inspired
by btree_bit.c).
But if a valgrind suppression is preferred, look at the alternate patch.

Best regards,
Alexander

Вложения

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15967: Sequence generation using NEXTVAL() fails on 64bit systems
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'