Re: libpq block allocated before my malloc handler inits?

Поиск
Список
Период
Сортировка
От Russell Smith
Тема Re: libpq block allocated before my malloc handler inits?
Дата
Msg-id 48681C6B.5020605@pws.com.au
обсуждение исходный текст
Ответ на libpq block allocated before my malloc handler inits?  (rob <rob@robstoddard.com>)
Ответы Re: libpq block allocated before my malloc handler inits?  (rob <rob@robstoddard.com>)
Список pgsql-general
rob wrote:
> I am trying to build a small program with libpq as the interface to a
> Postgre database.  I am using the most current version.  My program
> uses malloc and free hooks to manage memory without having to request
> memory from the system all the time.  I expected that the init
> function (__malloc_initialize_hook)  would run before anything else,
> but after opening a number of connections to the database with
> PQconnectdb, my program blows up because of a free which refers to a
> block of memory that wasn't allocated using my malloc function.  My
> program runs without a hitch if I comment out the PQconnectdb function
> calls.
I've experienced an openSSL, libpq + other library using SSL bug
recently.  Do you get the same crash is you explicitly disable SSL in
the connection string?  sslmode=disable.

Thanks

Russell

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: libpq block allocated before my malloc handler inits?
Следующее
От: "Pierre Thibaudeau"
Дата:
Сообщение: tsearch strategy for incremental search