BUG #1092: Memory Fault in PQsetdbLogin

Поиск
Список
Период
Сортировка
От PostgreSQL Bugs List
Тема BUG #1092: Memory Fault in PQsetdbLogin
Дата
Msg-id 20040304152043.31521CF4C9D@www.postgresql.com
обсуждение исходный текст
Ответы Re: BUG #1092: Memory Fault in PQsetdbLogin  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1092
Logged by:          Fred Eisele

Email address:      fred@netarx.com

PostgreSQL version: 7.4

Operating system:   Debian/GNU unstable (kernel 2.6.3)

Description:        Memory Fault in PQsetdbLogin

Details:

When opening two connections using PQsetdbLogin one of the connections was
apparently being dropped, and I would get segmentation errors.
I rebuilt the program using dmalloc and it reported...
debug-malloc library: dumping program, fatal error
   Error: invalid allocation size (err 40)
...when PQsetdbLogin was called.
I replaced the call to PQsetdbLogin with an equivalent call to PQconnectdb.
dmalloc does not report any errors with PQconnectdb and the original two
problems seem to have gone away.
As far as I am concerned, deprecating PQsetdbLogin is an adequate fix.

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: BUG #1091: Localization in EUC_TW Can't decode Big5
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1092: Memory Fault in PQsetdbLogin