From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Fix crash when non-creator being an iteration on shared radix tree |
Date: | 2024-12-17 17:48:22 |
Message-ID: | CAD21AoBB2U47V=F+wQRB1bERov_of5=BOZGaybjaV8FLQyqG3Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I found that a server crashes due to a null-pointer-dereference if a
process attached to the shared radix tree begins an iteration on it,
because we don't create the memory context for iter_context at
RT_ATTACH(). There is no code in the core causing this crash in the
core since in parallel vacuum, the leader process always creates the
shared radix tree and begins the iteration. However it could happen in
external extensions. I've attached the patch to fix it and I think it
should be backpatched to v17.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
Attachment | Content-Type | Size |
---|---|---|
v1-0001-radixtree-Fix-crash-when-non-creator-begins-an-it.patch | application/octet-stream | 2.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2024-12-17 17:52:26 | Re: Maybe we should reduce SKIP_PAGES_THRESHOLD a bit? |
Previous Message | Andrew Dunstan | 2024-12-17 17:47:51 | Re: Standardizing the file header? |