From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Ristola <Marko.Ristola@kolumbus.fi>
Cc: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-odbc@postgresql.org
Subject: Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem)
Date: Mon, 01 Aug 2005 19:46:24 -0400
Message-ID: <26097.1122939984@sss.pgh.pa.us> (raw)
In-Reply-To: <42EE904F.8010105@kolumbus.fi>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B5@ratbert.vale-housing.co.uk>
<42EE904F.8010105@kolumbus.fi>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, Marko.Ristola@kolumbus.fi, dpage@vale-housing.co.uk, pgsql-bugs@postgresql.org
Subject: Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem)
In-Reply-To: <26097.1122939984@sss.pgh.pa.us>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B5@ratbert.vale-housing.co.uk> <42EE904F.8010105@kolumbus.fi> <26097.1122939984@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox