Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem) - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)
Date
Msg-id 26097.1122939984@sss.pgh.pa.us
Whole thread Raw
In response to Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)  (Marko Ristola <Marko.Ristola@kolumbus.fi>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)
Next
From: "Dave Page"
Date:
Subject: Re: [BUGS] Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)