Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etytp-0001XI-2u for pgsql-general@arkaria.postgresql.org; Thu, 08 Mar 2018 17:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etyto-0008VY-0O for pgsql-general@arkaria.postgresql.org; Thu, 08 Mar 2018 17:00:12 +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.89) (envelope-from ) id 1etytn-0008VG-O3 for pgsql-general@lists.postgresql.org; Thu, 08 Mar 2018 17:00:11 +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 1etytk-00038o-Nv for pgsql-general@postgresql.org; Thu, 08 Mar 2018 17:00:11 +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 w28H05ZZ007370; Thu, 8 Mar 2018 12:00:05 -0500 From: Tom Lane To: Kelly Burkhart cc: pgsql-general Subject: Re: Crash and core on 10.1 and 10.2 In-reply-to: References: Comments: In-reply-to Kelly Burkhart message dated "Thu, 08 Mar 2018 10:48:33 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7368.1520528405.1@sss.pgh.pa.us> Date: Thu, 08 Mar 2018 12:00:05 -0500 Message-ID: <7369.1520528405@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kelly Burkhart writes: > Hello, I've had two core dumps in the last couple of weeks. The most > recent, yesterday was on version 10.2: > (gdb) bt > #0 0x00007f317a043886 in get_next_seq () from /lib64/libc.so.6 > #1 0x00007f317a044acc in strcoll_l () from /lib64/libc.so.6 > #2 0x00000000007ced5f in varstrfastcmp_locale () > #3 0x000000000081b6fb in qsort_ssup () > #4 0x000000000081d8e1 in tuplesort_performsort () Hm. If you'd just showed this one, my thoughts might bend towards a bug in our sort abbreviation logic, which is relatively new ... > (gdb) bt > #0 0x00007f6e1f09d8ea in get_next_seq () from /lib64/libc.so.6 > #1 0x00007f6e1f09eacc in strcoll_l () from /lib64/libc.so.6 > #2 0x00000000007cf70b in varstr_cmp () > #3 0x000000000075f25b in compareJsonbContainers () > #4 0x000000000075d8f2 in jsonb_eq () ... but this stack trace is not going anywhere near that code. The common factor is just strcoll_l(), raising the possibility that you're dealing with a glibc bug, or perhaps corrupted locale data on your machine. Are you up-to-date on glibc patches? regards, tom lane