Re: conn = PQconnectdb(conninfo);

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: conn = PQconnectdb(conninfo);
Дата
Msg-id 19182.1437171348@sss.pgh.pa.us
обсуждение исходный текст
Ответ на conn = PQconnectdb(conninfo);  (Peter Kroon <plakroon@gmail.com>)
Ответы Re: conn = PQconnectdb(conninfo);  (Peter Kroon <plakroon@gmail.com>)
Список pgsql-general
Peter Kroon <plakroon@gmail.com> writes:
> Every now and then my program will abort.
> IAnd this is because: conn = PQconnectdb(conninfo);
> The error given:
> *** Error in `./server_prog': malloc(): smallbin double linked list
> corrupted: 0x092c10a0 ***

This looks like malloc() complaining because something has corrupted its
bookkeeping data, which generally means that something previously wrote
past the end of a malloc'd data chunk, or tried to write into an
already-freed chunk.  The odds are very high that the bug is in your
program rather than libpq, though, because no such problems have been
found within libpq recently.

valgrind is a fairly useful tool for tracking down such issues.

            regards, tom lane


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

Предыдущее
От: Peter Kroon
Дата:
Сообщение: conn = PQconnectdb(conninfo);
Следующее
От: Amitabh Kant
Дата:
Сообщение: Recovering database from crashed HD (bad sectors)