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 1iHrLk-0000Ab-Kq for pgsql-general@arkaria.postgresql.org; Tue, 08 Oct 2019 15:24:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iHrLj-0007Fn-Ap for pgsql-general@arkaria.postgresql.org; Tue, 08 Oct 2019 15:24:31 +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 1iHrLj-0007Fg-1X for pgsql-general@lists.postgresql.org; Tue, 08 Oct 2019 15:24:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHrLc-0005hZ-AZ for pgsql-general@lists.postgresql.org; Tue, 08 Oct 2019 15:24:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x98FOLPf021701; Tue, 8 Oct 2019 11:24:21 -0400 From: Tom Lane To: Andreas Joseph Krogh cc: pgsql-general@lists.postgresql.org Subject: Re: Segmentation fault with PG-12 In-reply-to: References: Comments: In-reply-to Andreas Joseph Krogh message dated "Tue, 08 Oct 2019 17:15:09 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21699.1570548261.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 08 Oct 2019 11:24:21 -0400 Message-ID: <21700.1570548261@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andreas Joseph Krogh writes: > Will running a debug-enabled build slow things noticably down? gcc promises that the generated code is the same with or without debug. I think clang does too. With other compilers you may pay some penalty. > Is there a way = > to make it dump a stack-trace (or back-trace in C-land?) on sig11? You should be able to get a core file from which you can extract a stack trace (and other info) after the fact. https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend regards, tom lane