Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZKN9-000333-Gp for pgsql-general@arkaria.postgresql.org; Wed, 10 Jan 2018 17:41:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZKN9-00059e-1u for pgsql-general@arkaria.postgresql.org; Wed, 10 Jan 2018 17:41:07 +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 1eZKN8-00059U-Qs for pgsql-general@lists.postgresql.org; Wed, 10 Jan 2018 17:41:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eZKN6-00067c-2P for pgsql-general@postgresql.org; Wed, 10 Jan 2018 17:41:06 +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 w0AHf095017272; Wed, 10 Jan 2018 12:41:00 -0500 From: Tom Lane To: Alvaro Herrera cc: Glauco Torres , pgsql-general@postgresql.org Subject: Re: Segmentation fault with core dump In-reply-to: <20180110173742.bvsk6rl4srprzsp4@alvherre.pgsql> References: <20180110173742.bvsk6rl4srprzsp4@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 10 Jan 2018 14:37:42 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17270.1515606060.1@sss.pgh.pa.us> Date: Wed, 10 Jan 2018 12:41:00 -0500 Message-ID: <17271.1515606060@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > Tom Lane wrote: >> Hm. I'm not normally one to jump to the conclusion that something is a >> compiler bug, but it's hard to explain this stack trace any other way. >> The value of "n" passed to the inner invocation of pg_qsort should not >> have been more than 29914, but working from either the value of d or the >> value of pn leads to the conclusion that it was 0x7f6fa9f3a470, which >> looks a lot more like an address in the array than a proper value of n. > Hmm, is this something that can be explained by using a different > postgres executable in GDB than the one that produced the core file? That would result in nonsensical gdb output, most likely; but Glauco's trace is internally consistent enough that I doubt gdb is lying to us. In any case, the crash is an observable fact :-( regards, tom lane