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 1hnYGs-0005JP-49 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 00:58:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnYGp-0007Zb-Sh for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 00:58:11 +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 1hnYGp-0007XO-IZ for pgsql-hackers@lists.postgresql.org; Wed, 17 Jul 2019 00:58:11 +0000 Received: from resqmta-ch2-10v.sys.comcast.net ([2001:558:fe21:29:69:252:207:42]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnYGm-0002aN-5z for pgsql-hackers@postgresql.org; Wed, 17 Jul 2019 00:58:10 +0000 Received: from resomta-ch2-17v.sys.comcast.net ([69.252.207.113]) by resqmta-ch2-10v.sys.comcast.net with ESMTP id nWeohBVUvZZbEnYGhht9s9; Wed, 17 Jul 2019 00:58:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1563325083; bh=hiA5xWyUCtbk4uZveeH1o9t/fECbjQcklumU4N4nlls=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=2G90Ma/ESR2dNc7lrxEUq0qdSQwhvaOErgNJI9zY2Nbd63pfUjTb0lHldTsv6WpT2 nKfo29S1ufpRZD9zMO2oU/lW5Of3R/sHeI04XqUFOH9+c5S5OFN5j9GnxBRXmLlUVM pUI7nfjQQn0EeJZ21ReCowGUwdWByjQNTyRiDKrVr2TVFujlom5wJnerK7EwmD8mOw f3U5SiyBp82RflZrE8jAAYLhS1yD7KkpTM7fOOSFxqWu/+AHw9IQ+5pGGNZtgy9BkF y20q7I/6NEO6l/GRKHUgxoD3iNBiqLUkfVWDM6sP4SDLwXk3zJFdACWGqXqz48Wwb7 3RR2XKZuUb9Jg== Received: from jsievers.comcast.net ([12.187.116.132]) by resomta-ch2-17v.sys.comcast.net with ESMTPA id nYGUhZ3PbIjJEnYGVhNdRP; Wed, 17 Jul 2019 00:58:01 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduvddriedugdegudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfgvrhhrhicuufhivghvvghrshcuoehgshhivghvvghrshduleestghomhgtrghsthdrnhgvtheqnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhdpghhithhhuhgsrdgtohhmnecukfhppeduvddrudekjedrudduiedrudefvdenucfrrghrrghmpehhvghlohepjhhsihgvvhgvrhhsrdgtohhmtggrshhtrdhnvghtpdhinhgvthepuddvrddukeejrdduudeirddufedvpdhmrghilhhfrhhomhepghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepthhomhgrshdrvhhonhgurhgrsedvnhguqhhurggurhgrnhhtrdgtohhmpdhrtghpthhtohepghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Xfinity-VMeta: sc=-100;st=legit Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 6376826005A; Tue, 16 Jul 2019 19:57:50 -0500 (CDT) From: Jerry Sievers To: Thomas Munro Cc: Jerry Sievers , Tomas Vondra , pgsql-hackers Subject: Re: SegFault on 9.6.14 References: <87ims2amh6.fsf@jsievers.enova.com> <20190716001529.uvpfngvxtlu5h2fr@development> <87blxuakv4.fsf@jsievers.enova.com> <20190716003449.fjegtxinhrqubysu@development> <87ftn6ojwf.fsf@jsievers.enova.com> <20190716082204.iecyfh6mhu6khdhz@development> <87blxta8c7.fsf@jsievers.enova.com> <8736j5a6no.fsf@jsievers.enova.com> <87wogh8qzw.fsf@jsievers.enova.com> <87lfwx8q1f.fsf@jsievers.enova.com> Date: Tue, 16 Jul 2019 19:57:50 -0500 In-Reply-To: (Thomas Munro's message of "Wed, 17 Jul 2019 12:44:49 +1200") Message-ID: <87muhd7a0h.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Wed, Jul 17, 2019 at 12:26 PM Jerry Sievers wrote: > >> Is this the right sequencing? >> >> 1. Start client and get backend pid >> 2. GDB; handle SIGUSR1, break, cont >> 3. Run query >> 4. bt > > Perfect, thanks. I think I just spotted something: Dig that! Great big thanks to you and Tomas, et al for jumping on this. Please let know if there's anything else I can submit that would be helpful. > >> #11 0x000055666e0359df in ExecShutdownNode (node=node@entry=0x55667033a6c8) >> at /build/postgresql-9.6-5O8OLM/postgresql-9.6-9.6.14/build/../src/backend/executor/execProcnode.c:830 >> #12 0x000055666e04d0ff in ExecLimit (node=node@entry=0x55667033a428) >> at /build/postgresql-9.6-5O8OLM/postgresql-9.6-9.6.14/build/../src/backend/executor/nodeLimit.c:139 > > https://github.com/postgres/postgres/blob/REL9_6_STABLE/src/backend/executor/nodeLimit.c#L139 > > Limit thinks it's OK to "shut down" the subtree, but if you shut down a > Gather node you can't rescan it later because it destroys its shared > memory. Oops. Not sure what to do about that yet. > > > -- > Thomas Munro > https://enterprisedb.com > > > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net