Re: BUG #2246: Bad malloc interactions: ecpg, openssl

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2246: Bad malloc interactions: ecpg, openssl
Дата
Msg-id 21904.1139447434@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2246: Bad malloc interactions: ecpg, openssl  ("Andy Klosterman" <andrew5@ece.cmu.edu>)
Ответы Re: BUG #2246: Bad malloc interactions: ecpg, openssl  (Andrew Klosterman <andrew5@ece.cmu.edu>)
Список pgsql-bugs
"Andy Klosterman" <andrew5@ece.cmu.edu> writes:
> SPECULATION: Another possibility is that I misunderstand some aspect of
> multi-threaded interactions with Postgres (I open uniquely named connections
> to the DB for each thread of my test program).  Maybe I need to have a
> "lock" around the code that makes DB connections and make sure that only one
> happens at a time (might be better handled within Postgres/SSL if that is
> the case).

There could be some re-entrancy problem in the SSL connection startup
code --- if you add such a lock, does it get more reliable?  Also, did
you remember to build PG with --enable-thread-safety ?

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #2236: extremely slow to get unescaped bytea data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] date overflows