Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPvas-0003mR-DC for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jun 2018 19:56:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fPvar-0008Sr-9z for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jun 2018 19:56:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPvar-0008Si-4C for pgsql-bugs@lists.postgresql.org; Mon, 04 Jun 2018 19:56:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPvao-0008K9-HV for pgsql-bugs@lists.postgresql.org; Mon, 04 Jun 2018 19:56:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w54JuaeX006052; Mon, 4 Jun 2018 15:56:36 -0400 From: Tom Lane To: duncan.reitboeck@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15229: Crash when using PQgetvalue In-reply-to: <30331.1528131355@sss.pgh.pa.us> References: <152812969559.26728.1109379398061677469@wrigleys.postgresql.org> <30331.1528131355@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 04 Jun 2018 12:55:55 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6050.1528142196.1@sss.pgh.pa.us> Date: Mon, 04 Jun 2018 15:56:36 -0400 Message-ID: <6051.1528142196@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > =?utf-8?q?PG_Bug_reporting_form?= writes: >> I am getting a segmentation fault in the below code when attempting to use >> PQgetvalue. I am not 100 percent this is a bug and not a problem on my end >> but I have done a lot of debugging and not found an answer. > Strange. Your code looks fine by eye, and just to be sure I > copied-and-pasted it and ran it here. No problems. Just to close out this thread --- the submitter reports the problem went away after reinstalling libpq, so apparently "broken libpq" was the correct diagnosis. regards, tom lane