Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)
Дата
Msg-id 26097.1122939984@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)  (Marko Ristola <Marko.Ristola@kolumbus.fi>)
Список pgsql-odbc
Marko Ristola <Marko.Ristola@kolumbus.fi> writes:
> I don't know the reason, but that seems to be the problem, that I have
> found.

> isql crashes under conninfo_parse() on line "free(buf)".

In my experience, this is probably a symptom of some code scribbling
past the end of a malloc'd chunk of memory.  What is usually right after
the end of a malloc'd chunk is a portion of malloc's own data
structures, and clobbering that data structure is highly likely to
result in a crash in a later call to malloc, free, or related routines.

You might try running the code under something like Electric Fence.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: [BUGS] Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)