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 1igsaD-0001tM-UC for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2019 15:46: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 1igsaC-0003GH-EG for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2019 15:46: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 1igsaC-0003G9-03 for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2019 15:46:52 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1igsa4-00030d-TC for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2019 15:46:50 +0000 Received: from firost (unknown [88.190.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 05E5D1F8CE; Mon, 16 Dec 2019 16:46:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1576511200; bh=dBGU7hVRbGNwbGhfnn3P+3blIiYyZKGt+LAjEfdaEWo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SIB/LFFXCH7lzhrVPWsNfApI12Kg406j6kyBEvV+X7XVX3J1HLaBPBBEwGPCED476 hgxk3T2MvePyWw8tVAmUeqhcbw/a6Z23XIKkSPb6xgNaPHLNvsSz055DDmFGolunFZ 6wQMaljyLR5O9a7K9iSDVIIKhp7nSL0C+qOnEifc= Date: Mon, 16 Dec 2019 16:46:39 +0100 From: Jehan-Guillaume de Rorthais To: Peter Eisentraut Cc: Amit Kapila , vignesh C , Petr Jelinek , Tom Lane , PostgreSQL Hackers , Peter Geoghegan Subject: Re: segmentation fault when cassert enabled Message-ID: <20191216164639.4b29efd4@firost> In-Reply-To: <32a64f45-6c01-d2bf-d90a-49ff4bfedcfb@2ndquadrant.com> References: <20191025175929.7e90dbf5@firost> <18714.1572020918@sss.pgh.pa.us> <20191105172918.3e32a446@firost> <20191125155519.5338e3c9@firost> <32a64f45-6c01-d2bf-d90a-49ff4bfedcfb@2ndquadrant.com> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 16 Dec 2019 13:27:43 +0100 Peter Eisentraut wrote: > On 2019-12-16 11:11, Amit Kapila wrote: > > I agree that this is a timing issue. I also don't see a way to write > > a reproducible test for this. However, I could reproduce it via > > debugger consistently by following the below steps. I have updated a > > few comments and commit messages in the attached patch. > > > > Peter E., Petr J or anyone else, do you have comments or objections on > > this patch? If none, then I am planning to commit (and backpatch) > > this patch in a few days time. > > The patch seems fine to me. Writing a test seems hard. Let's skip it. > > The commit message has a duplicate "building"/"built" in the first sentence. I think the sentence is quite long. I had to re-read it to get it. What about: This patch allows building the local relmap cache for a subscribed relation after processing pending invalidation messages and potential relcache updates. Regards,