Hi,
I have experienced a PG 16.14 backend crashed with SIGSEGV during an
out-of-memory episode. Analysis of the core dump shows that this is the
bug fixed on master by commit b282fa88df ("simplehash: preserve consistency
in case of OOM.", 2023-11-17). That commit is in v17 and later, but it
was never back-patched to REL_16_STABLE. Here are the details of the
commit message:
commit b282fa88df78a05643d2df84a2b8e81cd9c1705d
Author: Jeff Davis <[email protected]>
Date: Fri Nov 17 13:58:16 2023 -0800
simplehash: preserve consistency in case of OOM.
Compute size first, then allocate, then update the structure.
Previously, an out-of-memory when growing could leave the hashtable in
an inconsistent state.
Discussion:
https://postgr.es/m/[email protected]
Reviewed-by: Andres Freund
Reviewed-by: Gurjeet Singh
Is it possible to back-patch it?
--
Gilles Darold