Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qDhoZ-0002db-CR for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Jun 2023 08:43:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qDhoX-0000xV-7E for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Jun 2023 08:43:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qDhoW-0000xM-Un for pgsql-bugs@lists.postgresql.org; Mon, 26 Jun 2023 08:43:12 +0000 Received: from meesny.iki.fi ([195.140.195.201]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qDhoT-000VwU-L1 for pgsql-bugs@lists.postgresql.org; Mon, 26 Jun 2023 08:43:11 +0000 Received: from [192.168.10.13] (31-22-251.netrun.cytanet.com.cy [31.153.22.251]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id 4QqLvr63tMzyRq; Mon, 26 Jun 2023 11:43:04 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1687768985; 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=SUP+p4e9S+9+jgGsQGG1t2iKF/FGn98U7gRW2U4Pfy8=; b=fw+KTFPV1PZ1XbuqDoot0b8kfYJ17MbYuqqAVKITkI693y367KIJb/TDwp4w7Cfj++g0q5 LnYN6jH1g93hdbDmgJ6NdmBniJ+70mtK7PFggDPx7FubeoARU9gx6I0DbR00DpvUBVf3c4 vaX4AvNQ94nSPRHKxjT0JiTMQZmra1E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1687768985; 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=SUP+p4e9S+9+jgGsQGG1t2iKF/FGn98U7gRW2U4Pfy8=; b=aECkNjAihmikgpaC3AQw70AJ9h7xqavVifYnHvZ27BRmqcgUJItJvzKPvljY8HEDZPn67E wZw55Zth+ZHgIYoyW1Q4fCBcjoV8UEJ3t468Gu9BydWN1sOmpfJ1Dt7L1rhQ05/WFlrFqo x+Sywx4S+wt5Bmi8cJEKqoqE0oCCwy0= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1687768985; a=rsa-sha256; cv=none; b=q+d9p8XVcCSMFlqnX0D3SmEWNnBZpijU2wCAlfqnbvlYOmo2PPQCJwm1EaC04Aja0gHFIT LW/RP7D33m4oVIoZyFpLZvuzny+7okK5OJKEq1x+igTs8KMXyTxVb+nbSLewLSD3m22cXM k6i6C0E+/1G9arvyWZJn7fVlRBUYHbo= Message-ID: Date: Mon, 26 Jun 2023 11:43:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: BUG #17998: Postgres crashes when executing WorkTableScan. Content-Language: en-US To: chenglin-liang@outlook.com, pgsql-bugs@lists.postgresql.org References: <17998-26b44813a7107979@postgresql.org> From: Heikki Linnakangas In-Reply-To: <17998-26b44813a7107979@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 26/06/2023 06:47, PG Bug reporting form wrote: > I developed a fuzzing tool that skips the optimizer and directly uses the > correct physical plan to fuzz postgres, and found a crash caused by > executing WorkTableScan. > For detailed steps to reproduce, see the > link:https://github.com/chenglinLiang/pg-report. You need to provide some evidence that the plan your fuzzer generated is valid, ie. something that could be produced by the planner. At a quick glance, you have a WorkTableScan with no RecursiveUnion, which is bogus. -- Heikki Linnakangas Neon (https://neon.tech)