Re: [HACKERS] Cure for segmentation fault in libpq

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Cure for segmentation fault in libpq
Дата
Msg-id 199803262345.SAA08167@candle.pha.pa.us
обсуждение исходный текст
Ответ на Cure for segmentation fault in libpq  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-hackers
>
> I have been troubled by a segmentation fault when reloading from a dumpall.
> This has been happening when a second \connect is encountered.
>
> The faulty code was in fe-connect.c, where the memory for the user password
> was freed, but the pointer itself was not set to NULL.  Later, the memory was
> reused and the password appeared not to be empty, so that an attempt was
> made to reference it.

Applied to source tree.


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Cure for segmentation fault in libpq
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Any seen this...?