Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guPTD-0005J0-CA for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Feb 2019 22:27:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1guPTB-0000IL-R1 for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Feb 2019 22:27:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guPTB-0000ID-F0 for pgsql-bugs@lists.postgresql.org; Thu, 14 Feb 2019 22:27:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guPT8-0005cy-RH for pgsql-bugs@postgresql.org; Thu, 14 Feb 2019 22:27:00 +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 x1EMQt9k002528; Thu, 14 Feb 2019 17:26:55 -0500 From: Tom Lane To: jfinzel cc: pgsql-bugs@postgresql.org Subject: Re: Segmentation Fault in logical decoding get/peek API In-reply-to: <1550176423593-0.post@n3.nabble.com> References: <1519042814659-0.post@n3.nabble.com> <20180220175530.6ib4b3ngzkipekgs@alap3.anarazel.de> <1519197538224-0.post@n3.nabble.com> <9fe0a6de-d204-9067-4eba-dd686077dd89@2ndquadrant.com> <1550176423593-0.post@n3.nabble.com> Comments: In-reply-to jfinzel message dated "Thu, 14 Feb 2019 13:33:43 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2526.1550183215.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 14 Feb 2019 17:26:55 -0500 Message-ID: <2527.1550183215@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk jfinzel writes: > We ran into a segmentation fault using peek_changes that appears identic= al > with what is described in this unfinished thread. We are running pg 10.= 3, > and the segfault was fixed by us upgrading to 10.6. However, we could n= ot > find any clearly related fixes in any of the release notes for 10.4-6 > relating to this bug fix. I did find this commit that I believe fixes t= he > issue: > https://github.com/postgres/postgres/commit/bba8c612117416907f332fce8b9e= 80b748e0b798 > If this indeed fixes a critical issue as we think it does, could someone > please add it in the right place to the release notes? You'd have to provide some evidence that that commit actually had something to do with a user-visible problem. It certainly wouldn't, by itself, have completely fixed any problem: at best it'd have transformed it from a crash into an elog(ERROR). More to the point, that commit was intended to silence a probably-hypothetical-anyway warning about the prior commit, so it wasn't fixing any issue that ever saw the light of day in a PG release. So my bet is that your problem was fixed by some other commit between 10.3 and 10.6. Maybe the predecessor one, b767b3f2e; but hard to say without more investigation than seems warranted, if the bug's gone. regards, tom lane