Re: BUG #3902: Segmentation faults using GSSAPI authentication

Поиск
Список
Период
Сортировка
От Peter Koczan
Тема Re: BUG #3902: Segmentation faults using GSSAPI authentication
Дата
Msg-id 4544e0330801301102y64156aadx39c2be114ebd04de@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #3902: Segmentation faults using GSSAPI authentication  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> Hmm, crash inside getenv??  That's weird, that suggests something has
> clobbered the environment-strings data structure.
>
> [ pokes around in code... ]  And behold, here's a smoking gun:
> pg_GSS_recvauth() is doing a putenv() with a string that it got from
> palloc().  The active context at this point is PostmasterContext,
> which *is* going to go away soon, leaving a gaping hole in the environ
> list.
>
> I still couldn't reproduce a crash with that knowledge, but I bet that
> if you apply the attached patch, things will get better.

The patch worked like a charm. Thanks, Tom.

Peter

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

Предыдущее
От: "Marcus Torres"
Дата:
Сообщение: BUG #3914: Self-Join Group-By Clause Produces Incorrect Results
Следующее
От: "David Dunwoody"
Дата:
Сообщение: Re: BUG #3913: pg_dump -T option not recognised