Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r390n-002Muv-QA for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Nov 2023 06:04:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r390m-00Dpgz-0g for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Nov 2023 06:04:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r390l-00Dpen-Mv for pgsql-hackers@lists.postgresql.org; Wed, 15 Nov 2023 06:04:27 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r390j-006Vx1-93 for pgsql-hackers@postgresql.org; Wed, 15 Nov 2023 06:04:27 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 2670B32009B9; Wed, 15 Nov 2023 01:04:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 15 Nov 2023 01:04:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1700028262; x=1700114662; bh=rj SlBMltPKFOBKsqph3c5coRfZXRp8NNpk8VVWy/dEY=; b=ROcSH/F6EkislO7AZI WPjWBAyIqF+KXgPyDHZWmi/q6k+bQu0kiTDz7QfJuT6leH5mIOqvx096euNqN8Dl 8fNh9eoIGOUSjlULOX0BWCEZw2wV6Mlni/Y+IlOiP+Xo44kGTi0pWUs7MDFnD8YE YavwUDOwuP76wdCdpcDf21/1SLaq7UxPk8Py7lY6YWhy6rV6rUEc/DO/kPUf5+/M M35fUyzyvEMHTiKnfZeRlue8Kouit77eSry0EyftsurnW+Osxhx1wJcpKKhDO7iV dLQu1zsIT6w6t5CLpCKrEx0VwjKKH8Onc+n0W/lx1YSkn36FGNedfORqodoy/fpF mzVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1700028262; x=1700114662; bh=rjSlBMltPKFOB Ksqph3c5coRfZXRp8NNpk8VVWy/dEY=; b=pBbkf1c+2eeqIjQcljYBuaoTO2Baj v8RtnibFzQ+yP9ADPzi1oObFakH33HIO8wngWq7KfFROXg4NDPutBUBZmTRID0T5 g01iN4VbofYg3TgHKnqzYGHhHQJA13PSaHTEB4r27eEy3mMbXWYBsnSvplCEPAoY LSBxJGQ4IOJ+oe3YrRjtouRb8zzHqFRpBZh+x06YtvZ21T8Eg7reW4QUW7pHASIR v/jPQKuNJA0WCpMtP7CFKl4i4onl1iCqLwEQQEiWdiuCD6ooQbp/TnnC/ttA2YkA Zfq/loy17MQjrMSDz9TNy2Xy7e4DcfYqpsjoQAIOEqgtiDhEAjHhUx4jA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefhedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Nov 2023 01:04:22 -0500 (EST) Date: Tue, 14 Nov 2023 22:04:21 -0800 From: Andres Freund To: Alexander Korotkov Cc: Richard Guo , PostgreSQL-development Subject: Re: Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)' Message-ID: <20231115060421.fnjds7ety4sftfcq@awork3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-11-14 14:42:13 +0200, Alexander Korotkov wrote: > It's possibly dumb option, but what about just removing the assert? That's not at all an option - the in-place bms_* functions can free their input. So a dangling pointer to the "old" version is a use-after-free waiting to happen - you just need a query that actually gets to bitmapsets that are a bit larger. Greetings, Andres