| From: | Aman Ganapathy <aman(at)stack-auth(dot)com> |
|---|---|
| To: | Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com> |
| Cc: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE |
| Date: | 2026-12-02 18:47:21 |
| Message-ID: | CA+jUSqQVDznkjjZRh+rrDhViP8k_FDvv2XHp20+b=YRQUAX67A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Hi,
Thank you so much for the fix! I tested v1 on master and the backpatch on
15, 16 and 17: the crash is gone on all of them and make check in
src/interfaces/ecpg passes. I noticed there wasn't a regression test so
I've attached one below. It fails before the fix and passes after.
Thanks
Aman
On Wed, Dec 2, 2026 at 10:29 AM Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
wrote:
> Hi,
>
> On Wed, 2 Dec 2026 at 22:23, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> >
> > On Wed, Dec 2, 2026 at 9:30 PM PG Bug reporting form
> > <noreply(at)postgresql(dot)org> wrote:
> > > ecpg crashes with a segmentation fault when a FETCH or MOVE names a
> > > cursor that was never declared.
> >
> > Thanks for the report! I was able to reproduce the issue.
>
> +1
>
> > I've attached a patch to fix it. Thoughts?
>
> Patch lgtm. Thanks for the fast turn around.
>
> Regards,
> Ayush
>
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0002-ecpg-Add-test-for-FETCH-MOVE-of-an-undeclared-cur.patch | application/octet-stream | 1.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aman Ganapathy | 2026-12-02 19:00:45 | Re: BUG #19964: ltree GiST index returns too few rows for lquery with a {0,n} quantifier |
| Previous Message | Ayush Tiwari | 2026-12-02 18:29:28 | Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE |