Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aMbHk-0005mi-Eh for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Jan 2016 12:57:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aMbHk-0001BK-1R for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Jan 2016 12:57:52 +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) (envelope-from ) id 1aMbH7-0000Rq-5A for pgsql-bugs@postgresql.org; Fri, 22 Jan 2016 12:57:13 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aMbH4-0004BJ-6t for pgsql-bugs@postgresql.org; Fri, 22 Jan 2016 12:57:12 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id D739E580004; Fri, 22 Jan 2016 13:57:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, FB_REPLIC_CAP autolearn=no version=3.2.5 Received: from anarazel.de (p57B4E523.dip0.t-ipconnect.de [87.180.229.35]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 29515580003; Fri, 22 Jan 2016 13:57:03 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id B16D11033A0; Fri, 22 Jan 2016 13:57:02 +0100 (CET) Date: Fri, 22 Jan 2016 13:57:02 +0100 From: Andres Freund To: Dmitriy Sarafannikov Cc: pgsql-bugs Subject: Re: Wal sender segfault Message-ID: <20160122125702.GB4961@awork2.anarazel.de> References: <1453466727.690575284@f380.i.mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453466727.690575284@f380.i.mail.ru> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, Thanks for the report! On 2016-01-22 15:45:27 +0300, Dmitriy Sarafannikov wrote: > Hi, i'm trying to test logical decoding on server under load. > I launched pg_recvlogical with 'test_decoding' plugin and wal sender was crashed with segfault after several minutes of work. > > pg_recvlogical --start --slot test_slot --no-loop -d dbname -h 127.0.0.1 -p5432 -U dbuser -w -f /tmp/test_logical.xlog > > postgres=# select version(); > version > ----------------------------------------------------------------------------------------------- > PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit > (1 row) I have core dump file (size 66G) > > I launch gdb with core file and getting incomplete backtrace: > > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x00007fa9248af742 in ReorderBufferGetTupleBuf () > (gdb) bt > #0 0x00007fa9248af742 in ReorderBufferGetTupleBuf () > #1 0x00007fa9248acde2 in LogicalDecodingProcessRecord () > #2 0x00007fa9248b53b4 in ?? () > #3 0x00007fa9248b6ed3 in ?? () > #4 0x00007fa9248b7d8a in exec_replication_command () > #5 0x00007fa9248f39fe in PostgresMain () > #6 0x00007fa9246bb92e in ?? () > #7 0x00007fa92489e58b in PostmasterMain () > #8 0x00007fa9246bcac2 in main () Any chance that one of modfied tables in question uses REPLICA IDENTITY FULL? There's an open bug about too large rows produced by that, which we don't currently handle correctly. I'm working on fixing that bug. > What can i do to get more info about the reason of this segfault? You could post a reproducible example... Other than that it's usually helpful to build postgres with debugging symbols enabled, that'd already give more context. Regards, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs