X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 71A7F52975 for ; Mon, 1 Aug 2005 20:46:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08799-04 for ; Mon, 1 Aug 2005 23:46:22 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 93A3852C36 for ; Mon, 1 Aug 2005 20:46:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j71NkOnZ026098; Mon, 1 Aug 2005 19:46:24 -0400 (EDT) To: Marko Ristola Cc: Dave Page , pgsql-bugs@postgresql.org, pgsql-odbc@postgresql.org Subject: Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem) In-reply-to: <42EE904F.8010105@kolumbus.fi> References: <42EE904F.8010105@kolumbus.fi> Comments: In-reply-to Marko Ristola message dated "Tue, 02 Aug 2005 00:12:47 +0300" Date: Mon, 01 Aug 2005 19:46:24 -0400 Message-ID: <26097.1122939984@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/11 X-Sequence-Number: 12435 Marko Ristola 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