Re: Failure on markhor with CLOBBER_CACHE_ALWAYS for test brin

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Failure on markhor with CLOBBER_CACHE_ALWAYS for test brin
Дата
Msg-id 6347.1420038079@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Failure on markhor with CLOBBER_CACHE_ALWAYS for test brin  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Failure on markhor with CLOBBER_CACHE_ALWAYS for test brin  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> On 2014-12-31 10:02:40 -0300, Alvaro Herrera wrote:
>> I can reproduce the crash in a CLOBBER_CACHE_ALWAYS build in
>> the object_address test.  The backtrace is pretty strange:

> Hard to say without more detail, but my guess is that the argument to
> get_collation_oid() isn't actually valid. For one, that'd explain the
> error, for another, the pointer's value (name=name@entry=0x11655c0) is
> suspiciously low.

Given that CLOBBER_CACHE_ALWAYS seems to make it fail reliably, the
obvious explanation is that what's being passed is a pointer into
catcache or relcache storage that isn't guaranteed to be valid for
long enough.  The given backtrace doesn't go down far enough to show
where the bogus input came from, but I'm betting that something is
returning to SQL a string it got from cache without pstrdup'ing it.
        regards, tom lane



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Additional role attributes && superuser review
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: add modulo (%) operator to pgbench