Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XTZU6-0006g0-Mb for pgsql-interfaces@arkaria.postgresql.org; Mon, 15 Sep 2014 16:50:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XTZU6-0002yY-5v for pgsql-interfaces@arkaria.postgresql.org; Mon, 15 Sep 2014 16:50:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XTZU5-0002yR-IJ for pgsql-interfaces@postgresql.org; Mon, 15 Sep 2014 16:50:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XTZU2-00020V-JF for pgsql-interfaces@postgresql.org; Mon, 15 Sep 2014 16:50:35 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s8FGoUtB005036; Mon, 15 Sep 2014 12:50:31 -0400 From: Tom Lane To: "frank ernest" cc: pgsql-interfaces@postgresql.org Subject: Re: segfault in libpq In-reply-to: References: Comments: In-reply-to "frank ernest" message dated "Mon, 15 Sep 2014 18:09:45 +0200" Date: Mon, 15 Sep 2014 09:50:30 -0700 Message-ID: <1086.1410799830@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org "frank ernest" writes: > Hi, before I report this as a bug I'd like to know if it's my code or not. I'm not going to send the whole function that starts the process since it's several KiB in size (but yell if yu want it anyways.) The problem in libpq is with the vaiable: > paramValues It seems very likely that your code is not setting up the paramValues array the way libpq expects. Since you've not shown us the code that prepares that array, nor even the variable declarations, that's just an educated guess ... but PQexecPrepared has been around for a long time and there are no other reports of bugs here. regards, tom lane -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces