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 1uywPB-00Eiao-2u for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2025 17:57:21 +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 1uywP8-009m3l-My for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2025 17:57:19 +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 1uywP8-009m3b-Db for pgsql-bugs@lists.postgresql.org; Wed, 17 Sep 2025 17:57:19 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uywP4-001MUN-2H for pgsql-bugs@lists.postgresql.org; Wed, 17 Sep 2025 17:57:18 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 741521F47D; Wed, 17 Sep 2025 17:57:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postgresfriends.org; s=gm1; t=1758131834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UdIHky+htyR8vShoAHxjfWr4+Sbcvh+SpzDDBinz5KQ=; b=EvKgEEIHFnFMG7OZhyalPXjUKgmuZlYKT71ZqhEfdmJ3+1obOhSlTHPje3CYVcaALOL4R6 ZP7zD7CCCiCqhIXBD6zp0cwrPt8AZGAdc7/9SdHyFbDazHyz5u7fSxBkCRGxVgzzZvTQ0+ PYx3g8vECHpRRs5yc55URYu6Ig0mSkNnu8kDdZ6q+lBBLKE641KKaoJsdqSeIrYayQ7fJW GkeuRXp0H5+3pTzCU9Blu/S/8fhJ3ZcAutNEyEbfXVSz08TurwQUAwZWJKYjGPLPxL/COc W9jXurM4WbYuP4hqNPzASZ/Dtq9ZEPzn6C8Enlnv4xKulO+xc5DdF+XLqmWOsw== Message-ID: <9221a173-b094-4063-8a02-0c8931d7b26c@postgresfriends.org> Date: Wed, 17 Sep 2025 19:57:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19055: Server crash at ExecInterpExpr To: dllggyx@outlook.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form References: <19055-6970cfa8556a394d@postgresql.org> Content-Language: en-US From: Vik Fearing In-Reply-To: <19055-6970cfa8556a394d@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdeggeduudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeggihhkucfhvggrrhhinhhguceovhhikhesphhoshhtghhrvghsfhhrihgvnhgushdrohhrgheqnecuggftrfgrthhtvghrnhepveeivdeileekveeghfeuheegkeffiefgueejgfeljeeiieevhefgfeetgfffheelnecukfhppedvrgdtvdemkeegvdekmeduudgvtdemvdejtddumeeguggrkeemieeijegrmeeileejtdemvggsleeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddvmeekgedvkeemudduvgdtmedvjedtudemgegurgekmeeiieejrgemieeljedtmegvsgelkedphhgvlhhopeglkffrggeimedvrgdtvdemkeegvdekmeduudgvtdemvdejtddumeeguggrkeemieeijegrmeeileejtdemvggsleekngdpmhgrihhlfhhrohhmpehvihhksehpohhsthhgrhgvshhfrhhivghnughsrdhorhhgpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepughllhhgghihgiesohhuthhlohhokhdrtghomhdprhgtphhtthhopehpghhsqhhlqdgsuhhgsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepnhhorhgvphhlhiesphhoshhtghhrv ghsqhhlrdhorhhg X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 17/09/2025 16:34, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 19055 > Logged by: BugForge > Email address: dllggyx@outlook.com > PostgreSQL version: 17.6 > Operating system: Ubuntu 20.04 x86-64, docker image postgres:17.6 > Description: > > PoC: > SELECT FROM ( SELECT generate_series ( 1 , '31' ) x ) GROUP BY ( x ) WINDOW > w AS ( ORDER BY ( WITH x AS ( WITH x AS ( SELECT sum ( x ) ) SELECT DISTINCT > * FROM x ) ( SELECT ( count ( ( SELECT x FROM x ) ) ) ) ) ) This query seems to crash the server at least back to 16.  The only simplification of it that I could manage was to replace generate_series with SELECT 1.  I could also replace all of the x's with different names without effect. -- Vik Fearing