Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4s4m-0004ZK-VI for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2017 17:24:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e4s4m-0003SI-AN for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2017 17:24:16 +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 1e4s3E-0000iA-6Q for pgsql-hackers@postgresql.org; Wed, 18 Oct 2017 17:22:40 +0000 Received: from smtprelay0199.b.hostedemail.com ([64.98.42.199] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e4s3A-0001P7-91 for pgsql-hackers@postgresql.org; Wed, 18 Oct 2017 17:22:39 +0000 Received: from filter.hostedemail.com (10.5.19.248.rfc1918.com [10.5.19.248]) by smtprelay03.b.hostedemail.com (Postfix) with ESMTP id BA1B21A73CB; Wed, 18 Oct 2017 17:22:33 +0000 (UTC) X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,alvherre@alvh.no-ip.org,:::::,RULES_HIT:41:355:379:599:967:973:988:989:1260:1277:1311:1312:1313:1314:1345:1359:1437:1461:1515:1516:1518:1519:1534:1542:1593:1594:1595:1596:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2828:2859:2897:2898:2915:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3865:3866:3867:3868:3870:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4362:4605:5007:6119:6261:7903:8778:8957:9025:9121:10004:10400:10848:10967:11232:11658:11914:12043:12050:12555:12740:12895:12986:13161:13229:13439:13894:13895:21080:21220:21433:21451:21627:30012:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: cook47_3334746af8052 X-Filterd-Recvd-Size: 3222 Received: from alvin.alvh.no-ip.org (unknown [212.163.6.20]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf08.b.hostedemail.com (Postfix) with ESMTPA; Wed, 18 Oct 2017 17:22:31 +0000 (UTC) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 6AE101000; Wed, 18 Oct 2017 19:22:27 +0200 (CEST) Date: Wed, 18 Oct 2017 19:22:27 +0200 From: Alvaro Herrera To: Justin Pryzby Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: SIGSEGV in BRIN autosummarize Message-ID: <20171018172227.qa2pbutwwvsvazg3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171018170642.GD17895@telsasoft.com> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Justin Pryzby wrote: > On Wed, Oct 18, 2017 at 06:54:09PM +0200, Alvaro Herrera wrote: > > And the previous code crashes in 45 minutes? That's solid enough for > > me; I'll clean up the patch and push in the next few days. I think what > > you have now should be sufficient for the time being for your production > > system. > > No - the crash happened 4 times since adding BRIN+autosummarize 6 days ago, and > in once instance occured twice within 3 hours (while I was trying to query logs > for the preceding crash). Oh, okay. Then we don't know enough yet, ISTM. > [pryzbyj@database ~]$ sudo grep -hE 'in postgres|Saved core' /var/log/messages* > Oct 13 17:22:45 database kernel: postmaster[32127] general protection ip:4bd467 sp:7ffd9b349990 error:0 in postgres[400000+692000] > Oct 13 17:22:47 database abrt[32387]: Saved core dump of pid 32127 (/usr/pgsql-10/bin/postgres) to /var/spool/abrt/ccpp-2017-10-13-17:22:47-32127 (15040512 bytes) > Oct 14 18:05:35 database kernel: postmaster[26500] general protection ip:84a177 sp:7ffd9b349b88 error:0 in postgres[400000+692000] > Oct 14 18:05:35 database abrt[27564]: Saved core dump of pid 26500 (/usr/pgsql-10/bin/postgres) to /var/spool/abrt/ccpp-2017-10-14-18:05:35-26500 (24137728 bytes) > Oct 16 23:21:22 database kernel: postmaster[31543] general protection ip:4bd467 sp:7ffe08a94890 error:0 in postgres[400000+692000] > Oct 16 23:21:22 database abrt[570]: Saved core dump of pid 31543 (/usr/pgsql-10/bin/postgres) to /var/spool/abrt/ccpp-2017-10-16-23:21:22-31543 (25133056 bytes) > Oct 17 01:58:36 database kernel: postmaster[8646]: segfault at 8 ip 000000000084a177 sp 00007ffe08a94a88 error 4 in postgres[400000+692000] > Oct 17 01:58:38 database abrt[9192]: Saved core dump of pid 8646 (/usr/pgsql-10/bin/postgres) to /var/spool/abrt/ccpp-2017-10-17-01:58:38-8646 (7692288 bytes) Do you still have those core dumps? If so, would you please verify the database that autovacuum was running in? Just open each with gdb (using the original postgres binary, not the one you just installed) and do "print MyDatabaseId". > I'll continue runnning with the existing patch and come back if the issue > recurs. Thanks. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers