| From: | Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com> |
|---|---|
| To: | nakamurajames123(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19921: auto_explain Reads SQL Function Parameters from an Unpinned Buffer |
| Date: | 2026-11-19 17:32:32 |
| Message-ID: | CAB8bMitHBr1ar4wGHmVH6LxG2vebgNgGNjv_v205pzE8jbBd7A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
чт, 19 нояб. 2026 г. в 16:17, PG Bug reporting form <noreply(at)postgresql(dot)org
>:
>
> However, if another session replaces the buffer page before the parameter
> is
> logged, auto_explain could log an incorrect value or read beyond the valid
> memory bounds due to a corrupted varlena length.
>
>
I managed to reproduce the problem reliably in a test, the only requirement
is --enable-injection-points.
Attached patch included fix and test.
--
Regards,
Rachitskiy Andrey
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-Fix-SQL-function-argument-read-after-buffer-unpin.patch | text/x-patch | 9.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2026-11-19 17:55:10 | Re: BUG #19908: pg_upgrade --check crashes instance if running in a different PID Namespace then the old cluster |
| Previous Message | Robert Haas | 2026-11-19 16:55:17 | Re: BUG #19903: ALTER COLUMN TYPE: "unexpected object depending on column" internal error via partition key |