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 1tJFKt-001jeA-Oz for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Dec 2024 17:08:19 +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 1tJFKr-007q1Y-7M for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Dec 2024 17:08:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJFKq-007q1Q-CM for pgsql-hackers@lists.postgresql.org; Thu, 05 Dec 2024 17:08:18 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJFKl-001D07-5j for pgsql-hackers@lists.postgresql.org; Thu, 05 Dec 2024 17:08:16 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id 122582540185; Thu, 5 Dec 2024 12:08:10 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Thu, 05 Dec 2024 12:08:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733418489; x=1733504889; bh=M DTp2J3o1qSggKAopA6s8bQHNbQMthFK0vIi0gQe8gQ=; b=oHXO/fbXlQY8EBh8L D9yaqmVDr3axp5TDsjBHrtVeAE5XsYt7oFw3ziiadp+23Hfn0FRMaeuZOCIP0V9S 73Kuq18yenPa6SEHQduMRfYEb9evrviUL/7mk9xStDF2e47wGvCvvFfKhoUQHOZV 02Nk2lWbevOHboFGnM3+BTjsN/SdiDlpK85Rs/5LVqmhX1fXACej/7NKAdS5GGcK jyUM1GM81bFYALO/YpoANCwH8DmuzzRgn0iCe9ED7c+VxOyN4QDa9fok8LZsa1AA UmuQHSpkEzRTnxfURmX+zCCDnvsIhHHTY46Yx90RKL2hIr4AWm7w0/XyWkRcNN8U 1RsXw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieejgdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuf fkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgr uceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvg hrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeekfffgudffhfduffffueev necuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhh rdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegughhrohiflhgvhihmlhesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh dprhgtphhtthhopehjrgihvghshhdrughpseiiohhhohgtohhrphdrtghomhdprhgtphht thhopeiilhgrsghsqdgtshhtohhrvgesiihohhhotghorhhprdgtohhm X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Dec 2024 12:08:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1733418488; bh=Q6fWhS54uNFL1oG3N+a6uNVGfqkKHQpOgV32Fdc9yuo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=TGwhRtCeQJ1J/6km9fZIm8KWHEqi9imX8umyXpqY8z/K/NdoMp1de7kemhNuQFmo6 7nZR2USZfrcsjT3abpWdOuG4atqBIzTJ0hj0JlpcAl0LR/CRYwRZnyqRzAgoDeMn2m giHa6EYOEKo8ZIvO0T59qzrza36fKgLAp/L6Kem98LWJRiDYL+spoFcmFhxLstppfk hfMWXrOcH5oR93PLWH4yveuWOJA90I57ec3bz/wwFuQ64el/qJrJqVM/SNpbaZ5Rp/ GmPM26BtoZMyyySwpTR4JVBOpJKugeJtZZ/GL0qq+kNQr2l0rqZZQgz3+nPSQSj4Hd jNzY1p6p3JfDg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 0EC1E9E; Thu, 5 Dec 2024 18:08:08 +0100 (CET) Date: Thu, 5 Dec 2024 18:08:08 +0100 From: Alvaro Herrera To: David Rowley Cc: pgsql-hackers , "zlabs-cstore@zohocorp.com" , Jayesh Dehankar Subject: Re: [Bug] Heap Use After Free in Window Aggregate Execution Message-ID: <202412051708.s36od6xck3jm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <193261e2c4d.3dd3cd7c1842.871636075166132237@zohocorp.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, Adding David Rowley in CC. On 2024-Nov-13, Jayesh Dehankar wrote: > We have discovered a bug in PostgreSQL v16.3 related to a top-level > window aggregate with a partition-by clause. The issue occurs when the > run condition fails, causing the window aggregate status to change > from WINDOWAGG_RUN to WINDOWAGG_PASSTHROUGH_STRICT mode. The bug is > present in the latest STABLE branch. David, what do you think about this? The code in question was added by your commits 9d9c02ccd1ae and a8583272218a, so I think you're the one best prepared to handle this. Thanks, -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/