Re: BUG #19433: json_object_agg_unique Crashes When Used as Window Function - Mailing list pgsql-bugs

From Dmitry Dolgov
Subject Re: BUG #19433: json_object_agg_unique Crashes When Used as Window Function
Date
Msg-id s6pzvce3crwjonox4bhzvpra5ifxpvgcopxjwu74e22ns3o3c6@4p7iua2m746b
Whole thread
In response to BUG #19433: json_object_agg_unique Crashes When Used as Window Function  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
> On Fri, Mar 13, 2026 at 03:14:26AM +0000, PG Bug reporting form wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      19433
> Logged by:          chunling qin
> Email address:      303677365@qq.com
> PostgreSQL version: 15.0
> Operating system:   centos
> Description:        
> 
> ## Summary
> 
> `json_object_agg_unique()` causes a segmentation fault when used as a window
> function with `ORDER BY` clause. The crash occurs due to a use-after-free
> bug where the internal hash table pointer is accessed after being freed.
> 
> ---
> 
> ## Environment
> 
> | Item | Value |
> |------|-------|
> | PostgreSQL Version | 15devel (development build) |
> | Commit | 7103ebb7aa |
> | Platform | x86_64-pc-linux-gnu |
> | Test Date | 2026-03-13 |

I think the problem you describe was fixed in 4eb97988796, which became
part of REL_15_RC1.



pgsql-bugs by date:

Previous
From: Felix Hamme
Date:
Subject: Re: BUG #19432: recovery fails at invalid checkpoint record
Next
From: Laurenz Albe
Date:
Subject: Re: BUG #19432: recovery fails at invalid checkpoint record