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 1hORN8-0005Vm-EK for pgsql-hackers@arkaria.postgresql.org; Wed, 08 May 2019 18:32:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hORN6-0005IF-JO for pgsql-hackers@arkaria.postgresql.org; Wed, 08 May 2019 18:32:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hORN6-0005FO-6M for pgsql-hackers@lists.postgresql.org; Wed, 08 May 2019 18:32:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hORN3-0000CR-Ll for pgsql-hackers@lists.postgresql.org; Wed, 08 May 2019 18:32:50 +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 x48IWkGa022225; Wed, 8 May 2019 14:32:46 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org cc: Noah Misch Subject: Unexpected "shared memory block is still in use" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22223.1557340366.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 08 May 2019 14:32:46 -0400 Message-ID: <22224.1557340366@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Just now, while running a parallel check-world on HEAD according to the same script I've been using for quite some time, one of the TAP tests died during initdb: selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default timezone ... America/New_York creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... 2019-05-08 13:59:19.963 EDT [= 18351] FATAL: pre-existing shared memory block (key 5440004, ID 173447580= 2) is still in use 2019-05-08 13:59:19.963 EDT [18351] HINT: Terminate any old server proces= ses associated with data directory "/home/postgres/pgsql/src/test/subscrip= tion/tmp_check/t_004_sync_publisher_data/pgdata". child process exited with exit code 1 initdb: removing data directory "/home/postgres/pgsql/src/test/subscriptio= n/tmp_check/t_004_sync_publisher_data/pgdata" Bail out! system initdb failed I have never seen this happen before in the TAP tests. I think the odds are very high that this implies something wrong with commit c09850992. My immediate guess after eyeballing that patch quickly is that it was not a good idea to redefine the rules used by bootstrap/standalone backends. In particular, it seems somewhat plausible that the bootstrap process hadn't yet completely died when the standalone backend for the post-bootstrap phase came along and decided there was a conflict (which it never would have before). regards, tom lane