From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | 253540651(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17152: ERROR: AddressSanitizer: SEGV on unknown address |
Date: | 2021-08-18 11:52:00 |
Message-ID: | 20210818115200.GB13002@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, Aug 18, 2021 at 02:56:00AM +0000, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 17152
> Logged by: Zhiyong Wu
> Email address: 253540651(at)qq(dot)com
> PostgreSQL version: 14beta2
> Operating system: Linux version 5.13.0-1-MANJARO (builduser(at)LEGION)
> Description:
>
> PoC:
> CREATE TEMP TABLE v0 ( v2 SMALLINT NOT NULL DEFAULT - - 90 , DATA TEXT , v1
> REAL CONSTRAINT XMLFOREST NULL ) ;
> INSERT INTO v0 VALUES ( - - - - 0 , - - - - -1 ) , ( - - ( ( ( SELECT (
> SELECT LEAST ( v1 ) x FROM v0 WHERE - - - 43 >= v1 ) FROM v0 AS v2 ( OVERLAY
> , v2 , v1 ) ) ) UNION SELECT - - - 22 ) , - - - - - - 2147483647 ) , ( - - -
> -128 , - - - -2147483648 ) , ( - - - - 36 , - - - - - - - -128 ) , ( - - - -
> 9 , - - - - - -128 ) ON CONFLICT DO NOTHING ;
> ;
> SELECT - - 11 + v2 AS x FROM v0 WHERE v2 = ( SELECT LEAST ( ( ( ( SELECT -
> 127 FROM ( SELECT 0 FROM ( VALUES ( - 16 ) , ( -2147483648 ) , ( - - - - -1
> ) ) v2 ( v2 ) GROUP BY ( + - - 72 ) / - - 18 ) AS SMALLINT ) ) UNION SELECT
> MODE ( ) WITHIN GROUP ( ORDER BY v2 DESC ) FILTER ( WHERE MODE ( ) WITHIN
> GROUP ( ORDER BY v1 = CASE WHEN v1 IS NULL THEN v1 ELSE - - 91 END DESC ) )
> NULL ) ) FROM v0 ) ;
> COMMIT TRANSACTION ;
> DELETE FROM v0 WHERE v2 = - - - - - - 38 ;
> ;
I can also confirm this failure on git master.
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
From | Date | Subject | |
---|---|---|---|
Next Message | Masahiko Sawada | 2021-08-18 11:52:51 | Re: BUG #17151: A SEGV in optimizer |
Previous Message | Bruce Momjian | 2021-08-18 11:51:19 | Re: BUG #17151: A SEGV in optimizer |