Re: ecpg assertion on windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ecpg assertion on windows
Дата
Msg-id 902395.1661315573@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ecpg assertion on windows  (Andres Freund <andres@anarazel.de>)
Ответы Re: ecpg assertion on windows  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2022-08-24 00:18:27 -0400, Tom Lane wrote:
>> But if the regression tests are triggering use of uninitialized values, how
>> could we have failed to detect that?  Either valgrind or unstable behavior
>> should have found this ages ago.

> I think it's just different criteria for when to report issues. Valgrind
> reports uninitialized memory only when there's a conditional branch depending
> on it or such. Whereas this seems to trigger when passing an uninitialized
> value to a function by value, even if it's then not relied upon.

If the value is not actually relied on, then it's a false positive.

I don't say we shouldn't fix it, because we routinely jump through
hoops to silence various sorts of functionally-harmless warnings.
But let's be clear about whether there's a real bug here.

            regards, tom lane



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: SYSTEM_USER reserved word implementation
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: add checkpoint stats of snapshot and mapping files of pg_logical dir