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 1fAijE-0000Q8-9H for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Apr 2018 21:10:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAijC-0000zb-SW for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Apr 2018 21:10:26 +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 1fAijC-0000zS-LI for pgsql-hackers@lists.postgresql.org; Mon, 23 Apr 2018 21:10:26 +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 1fAij9-0000lc-34 for pgsql-hackers@lists.postgresql.org; Mon, 23 Apr 2018 21:10:26 +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 w3NLAK4i025496; Mon, 23 Apr 2018 17:10:20 -0400 From: Tom Lane To: Stephen Frost cc: pgsql-hackers@lists.postgresql.org Subject: "could not reattach to shared memory" on buildfarm member dory MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25494.1524517820.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 23 Apr 2018 17:10:20 -0400 Message-ID: <25495.1524517820@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk So far, dory has failed three times with essentially identical symptoms: 2018-04-23 19:57:10.624 GMT [2240] FATAL: could not reattach to shared me= mory (key=3D0000000000000190, addr=3D00000000018E0000): error code 487 2018-04-23 15:57:10.657 EDT [8836] ERROR: lost connection to parallel wor= ker 2018-04-23 15:57:10.657 EDT [8836] STATEMENT: select count(*) from tenk1 = group by twenty; 2018-04-23 15:57:10.660 EDT [3820] LOG: background worker "parallel worke= r" (PID 2240) exited with exit code 1 Now how can this be? We've successfully reserved and released the address range we want to use, so it *should* be free at the instant we try to map. Another thing that seems curious, though it may just be an artifact of not having many data points yet, is that these failures all occurred during pg_upgradecheck. You'd think the "check" and "install-check" steps would be equally vulnerable to the failure. I guess the good news is that we're seeing this in a reasonably reproducible fashion, so there's some hope of digging down to find out the actual cause. regards, tom lane