Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EFF8EB5DBCE for ; Thu, 12 May 2011 19:53:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 50013-03 for ; Thu, 12 May 2011 22:52:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B2912B5DBE6 for ; Thu, 12 May 2011 19:52:54 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p4CMqs5L012069; Thu, 12 May 2011 18:52:54 -0400 (EDT) To: hatem gamal elzanaty cc: pgsql-interfaces@postgresql.org Subject: Re: facing problem in accessing postgresql with c language normally In-reply-to: <4DCC54DA.6030102@softpro.bz> References: <4DCC54DA.6030102@softpro.bz> Comments: In-reply-to hatem gamal elzanaty message dated "Fri, 13 May 2011 00:44:58 +0300" Date: Thu, 12 May 2011 18:52:54 -0400 Message-ID: <12068.1305240774@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/2 X-Sequence-Number: 6944 hatem gamal elzanaty writes: > i'm new to postgresql programming in c language the following code give the following error beneath and no reason for > that error : > *** glibc detected *** ../../object/006/psql_test.bin: double free or > corruption (top): 0x085dfea8 *** You're PQclear'ing the same result twice in some code paths. regards, tom lane