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 1igpTb-0003DG-JR for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2019 12:27:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1igpTa-0000pQ-A0 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2019 12:27:50 +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 1igpTZ-0000ov-UW for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2019 12:27:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1igpTX-0001Jy-NV for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2019 12:27:48 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A9DE621FB5; Mon, 16 Dec 2019 07:27:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 16 Dec 2019 07:27:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=ydnYyW0g2bl6ICSo7O7OJI4yt1nuGVNm45gAw+KX8 pA=; b=nunYdxM+Io9KRbhG7D+1iqv6qIdzoL+oqO0xmrKE9551csY0ZR6Wt/aH4 5AAYhvnwgYv78dgNp8UbFeoLMlXTgEyntNUpPox6QLNK0YqCzZ44gLAJUd93Rm/3 Dw7fH4hi8mJ8DCeCL8CnNPUAJaZYXVR3dM+31SEMSOzxpfmsIJ1QgN62WRRysgyh tQERNIMU5VL4wGU+YpySvXZpMymP5DEMSguGd65z3NsJuecpxq0p1RPr1SrgNlEK PuJjEDeWoB2jbFzuVK7dZ4V2/AwQvuYpI4XS9+n3CH6A2fNSNNyTsqnuPg6ak9n6 L5iPFMk/eBV7RxMBB4ybaLU1PzGYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddthedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrudeiuddrudeftdenucfrrghrrghmpehmrghilhhfrh homhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from april.pezone.net (p5df2a182.dip0.t-ipconnect.de [93.242.161.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 8597980061; Mon, 16 Dec 2019 07:27:44 -0500 (EST) Subject: Re: segmentation fault when cassert enabled To: Amit Kapila , vignesh C , Petr Jelinek References: <20191025175929.7e90dbf5@firost> <18714.1572020918@sss.pgh.pa.us> <20191105172918.3e32a446@firost> <20191125155519.5338e3c9@firost> Cc: Jehan-Guillaume de Rorthais , Tom Lane , PostgreSQL Hackers , Peter Geoghegan From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <32a64f45-6c01-d2bf-d90a-49ff4bfedcfb@2ndquadrant.com> Date: Mon, 16 Dec 2019 13:27:43 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services