Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtHng-0001IY-Mx for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Sep 2017 18:26:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtHnf-00087B-JG for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Sep 2017 18:26:43 +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 1dtHne-00086x-Pd for pgsql-hackers@postgreSQL.org; Sat, 16 Sep 2017 18:26:42 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtHna-0002l5-Eo for pgsql-hackers@postgreSQL.org; Sat, 16 Sep 2017 18:26:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 56C962289C; Sat, 16 Sep 2017 14:26:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sat, 16 Sep 2017 14:26:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=MOo3DI1S0fxFENym+Q V3LvabNJEXta6vcA9t7wUBmXg=; b=o1Hh93ZDaBdxZ+0AJVHoF4znnyu5NAY74D 0Rovd/iAZ0h1O/YtahHL+AnvLC/rLa7QDg7y/YvVzqtZ1be9nJLm0+NWDFUuGWhZ UCF/7jB3Jor1rFN2r0nYFV+fMTWchG5NMcbsUtYNzjRlYw/4Je4HU+GR6U2nbXf6 VCxUTsLNDxVWfRf3RxBRrjYQ3Npo4zA9dORtocUPYmB7xqz9qW9OHx5sPZOl6fcp NaVfC23cECkpCaTfM8u24hgUH29QmivdoBweushBvWm19UcEqjjT0Uc3BjUnsG/P bTFFA3bVYVjqsDhDCNU4OXCzQRfrHwvD2Wwt+n4gm4Ruhvh0QwIA== X-ME-Sender: X-Sasl-enc: gpdyvzeHv7L+pQrGa42sQuEciTyHtzoNm1Y6ZNtOS6JB 1505586396 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 133297E5EE; Sat, 16 Sep 2017 14:26:36 -0400 (EDT) Date: Sat, 16 Sep 2017 11:26:34 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup. Message-ID: <20170916182634.blb7upixw7hosdhu@alap3.anarazel.de> References: <14134.1505572349@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14134.1505572349@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, On 2017-09-16 10:32:29 -0400, Tom Lane wrote: > It's dying at "pfree(localControlFile)". localControlFile seems to > be pointing at a region of memory that's entirely zeroes; certainly > the data that it just moved into shared memory is all zeroes. > It looks like someone didn't think hard enough about when to reset > ControlFile to null. Yep. Just adding a LocalProcessControlFile() reset_shared() works after removing the assert from LocalProcessControlFile(). That's not what I'm proposing, just confirming that that's the issue. Looking into it. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers