Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoOgF-0005iD-Ub for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Feb 2018 07:19:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoOgF-0008Ti-0x for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Feb 2018 07:19:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoOgE-0008TV-Ns for pgsql-bugs@lists.postgresql.org; Wed, 21 Feb 2018 07:19:06 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eoOg7-0002zC-Qe for pgsql-bugs@postgresql.org; Wed, 21 Feb 2018 07:19:05 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 5A96EB4705BD for ; Wed, 21 Feb 2018 00:18:58 -0700 (MST) Date: Wed, 21 Feb 2018 00:18:58 -0700 (MST) From: Sudalai To: pgsql-bugs@postgresql.org Message-ID: <1519197538224-0.post@n3.nabble.com> In-Reply-To: References: <1519042814659-0.post@n3.nabble.com> <20180220175530.6ib4b3ngzkipekgs@alap3.anarazel.de> Subject: Re: Segmentation Fault in logical decoding get/peek API MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>And if it's segfaulting, it has to mean specinsert is NULL. So either we >>never got REORDER_BUFFER_CHANGE_INTERNAL_SPEC_INSERT, or we threw it >>away in the "change_done" part. Seems strange in both cases. Yes, specinsert is NULL. >> Sudalai, are you using speculative inserts in the transaction? Yes . We have done ON CONFLICT DO NOTHING . Is it correct to add below check , if(specinsert == NULL ){ goto change_done; } before , Assert(specinsert->data.tp.oldtuple == NULL); to fix segfault ? Is specinsert is NULL, because of CONFLICT DO NOTHING ? Thanks for the response Tomas, Peter. ----- sudalai -- Sent from: http://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html