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 1gvpN8-0000r1-5R for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Feb 2019 20:18:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvpKn-00045G-VZ for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Feb 2019 20:16:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvpKm-00044N-89 for pgsql-bugs@lists.postgresql.org; Mon, 18 Feb 2019 20:16:13 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvpKh-0000tg-Q2 for pgsql-bugs@postgresql.org; Mon, 18 Feb 2019 20:16:11 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D4B4E21FEB; Mon, 18 Feb 2019 15:15:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 18 Feb 2019 15:15:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=/ZAnrCMfmmsXpq+ZsjL661g29ZH jBSysSwmTWc3NQzs=; b=qYBURWgmISe5qMdeXle3NcCRzQssmd9E5Fhjeq/q9GS 9zwDVbHulZjZ7l/igBExjO8TBqT/cYwDsj+avXmiUtg3hrIK1VkTcB+MeDvsPbt1 ZTLQzAVcKRAbKyAjWSuGOfFCIxyuhvzcWpYOF+wKWdCAdn7tNICDpTD7PXPvhnkf mZ3fTgNLM9huxs7okq8p/ogdLFZjfs6v4JzsFd/0VfgaqtpBofEb57mVeZF9Jjjl Zrr7lEqm5TXbw3EjSFOS1bg5mmodO8t8bEmRERyl1v5RqJyZMYlOjwJWtGebFLKl ZruJAEwvx06EuxEhyrjW3Wqbdy8Goz0zbN7/p5yTsWQ== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=/ZAnrC MfmmsXpq+ZsjL661g29ZHjBSysSwmTWc3NQzs=; b=LDBdylGnc+HK5EK/MNxJS2 5pamBJCVMUmAW3Hn+NvqKiv5vvGDR0PuDHt9jz8PJWTlb/p2v5FfUTNgxolMuo36 CJetC3qzdGZQ2+GM4lgk8n4cZebZK5FTjh9fz9/uyaronEl5u2TRSqB6O9QnygGj LocnmuW5XtGCRMUUQje+MgG9MauvPovQNzGYHmlFUFe25L8K3pveo2jrv2AGa2d3 ih5VmGO0gr71u4+xxEIzFMNf7yYW1ibjkIQpuHIbtd9A7U+2UAymsaQbNRarG7+e xI0V8bRSKH5frYSxg++BZeB9hzb3bnScOPXE4+EUhpY/mxb4cdIwIVMF/rtkRqYA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtddugddutdefucdltddurdegtdelrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhht necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuffhomh grihhnpeguohhnvgdrnhgvfienucfkphepleekrddvuddtrddugedtrddujedunecurfgr rhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id D4C90E422E; Mon, 18 Feb 2019 15:15:48 -0500 (EST) Date: Mon, 18 Feb 2019 12:15:47 -0800 From: Andres Freund To: Jeremy Finzel Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: Segmentation Fault in logical decoding get/peek API Message-ID: <20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de> References: <20180220175530.6ib4b3ngzkipekgs@alap3.anarazel.de> <1519197538224-0.post@n3.nabble.com> <9fe0a6de-d204-9067-4eba-dd686077dd89@2ndquadrant.com> <1550176423593-0.post@n3.nabble.com> <2527.1550183215@sss.pgh.pa.us> <4354.1550185500@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, > - I definitely got the same segfault on a commit after 10.4 - 0bb28ca > - I am now getting a different segfault on 10.5 - but I need another set > of eyes to verify I am not compiling it wrong > > After decoding successfully for awhile, now I get an immediate segfault > upon peek_changes. First of all, here is the backtrace: But to confirm, with 10.6 that's gone? > $ sudo -u postgres gdb -q -c /san//pgdata/core > /usr/lib/postgresql/10.5/bin/postgres > Reading symbols from /usr/lib/postgresql/10.5/bin/postgres...done. > [New LWP 22699] > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > Core was generated by `postgres: : jfinzel foo_db > 10.7.111.37(52316) FETCH'. > Program terminated with signal SIGABRT, Aborted. Note that this is not a segfault, it's an assertion that failed. > #0 0x00007eff42d54428 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > (gdb) bt > #0 0x00007eff42d54428 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > #1 0x00007eff42d5602a in abort () from /lib/x86_64-linux-gnu/libc.so.6 > #2 0x0000000000a45f9c in ExceptionalCondition (conditionName=0xc2d688 > "!(prev_first_lsn < cur_txn->first_lsn)", errorType=0xc2d404 > "FailedAssertion", fileName=0xc2d478 "reorderbuffer.c", lineNumber=688) at > assert.c:54 If it's not gone with 10.6, could you print the two variables in that expression? > # Install Extensions > cd $HOME/pgl_ddl_deploy > make clean > sudo "PATH=$PATH" make install > cd $HOME/pglogical_ticker > make clean > sudo "PATH=$PATH" make install > cd $HOME/pg_fact_loader > make clean > sudo "PATH=$PATH" make install It's entirely possible that one of those extensions does something to violate WAL logging rules :/ Greetings, Andres Freund