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 1eoC8d-0006b5-VC for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Feb 2018 17:55:36 +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 1eoC8c-0005ia-Vs for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Feb 2018 17:55:34 +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.84_2) (envelope-from ) id 1eoC8c-0005iQ-QH for pgsql-bugs@lists.postgresql.org; Tue, 20 Feb 2018 17:55:34 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoC8a-0001yM-Fn for pgsql-bugs@postgresql.org; Tue, 20 Feb 2018 17:55:34 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 54AC621433; Tue, 20 Feb 2018 12:55:31 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 20 Feb 2018 12:55:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=0Vs2f3j1MPhK2TmaoyOczVYM87iQd RQatej9fkTpuKo=; b=POqk0awDoB9to+ow3D/tAUbj8IobuhoV8dIiSk3/kkMkZ YwtQ9i3Z7iylHzCqZ+9sQLelN7EEj/TalQxm7TxzW/wAGPrHlRs32zV0wvsj8usW vV+eiHh1FiEMT5lKu1CUD1Aed/gIx64lEU7kwyKT01bojACI9LAxS2XWAJvihQDS wNiPR5R4ic4hZ/h8885cdih1SRbIoI2kgRkcwhoL/2ejrk7RrOpcpEXWOeCPTcIS j6hjlcA6L+8lzVA9CfT4XtcN7okK6GRlIe84vIaYXusPCo2If8OKJiYNYGxNgjSN eUXBwSGMnR/XCOrC0MhfX07VQYp+hTOjCzsfCaRWA== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 0D6F824505; Tue, 20 Feb 2018 12:55:31 -0500 (EST) Date: Tue, 20 Feb 2018 09:55:30 -0800 From: Andres Freund To: Sudalai Cc: pgsql-bugs@postgresql.org Subject: Re: Segmentation Fault in logical decoding get/peek API Message-ID: <20180220175530.6ib4b3ngzkipekgs@alap3.anarazel.de> References: <1519042814659-0.post@n3.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519042814659-0.post@n3.nabble.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-02-19 05:20:14 -0700, Sudalai wrote: > PostgreSQL backend crashing with segmentation fault 11, while consuming big > transaction changes using pg_logical_slot_(peek|get)_changes. We are using > postgresql version 9.5.10. Just to be sure, could you check that 9.5.11 shows the same problem? > About the big transaction : pg_xlog_dump shows 161426 records, and it spread > across 3 WAL files. > > BackTace of the backend : > > Program received signal SIGSEGV, Segmentation fault. > ReorderBufferCommit (rb=0xd17dc8, xid=, > commit_lsn=7224098593984, end_lsn=, commit_time= optimized out>, origin_id=, origin_lsn=0) at > /home/test/compile/../postgresql-9.5.10/src/backend/replication/logical/reorderbuffer.c:1380 > 1380 change->action = REORDER_BUFFER_CHANGE_INSERT; > > #0 ReorderBufferCommit (rb=0xd17dc8, xid=, > commit_lsn=7224098593984, end_lsn=, commit_time= optimized out>, origin_id=, origin_lsn=0) at > /home/test/compile/../postgresql-9.5.10/src/backend/replication/logical/reorderbuffer.c:1380 Unfortunately this does not seems to provide enough information to debug the problem. Could you develop a reproducer we can run locally? - Andres