Re: [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL

From: Shruthi Gowda <gowdashru(at)gmail(dot)com>
To: Nishant Sharma <nishant(dot)sharma(at)enterprisedb(dot)com>
Cc: Mahendra Singh Thalor <mahi6run(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL
Date: 2026-04-21 07:09:17
Message-ID: CAASxf_O+CN9Pw+XSHCbfHE2DwS1BObAwFZnnQyT+7062ozYGQw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Apr 20, 2026 at 11:31 AM Nishant Sharma <
nishant(dot)sharma(at)enterprisedb(dot)com> wrote:

> Thanks Shruthi for the new test patches!
>
> I can apply v3_test_v15 on both REL_15 and REL_14.
>
> I only have the following concern in the test patches now:-
> 1. The test1 table in the test case is not being cleaned up.
>
>
> Regards,
> Nishant Sharma,
> EDB, Pune.
> https://www.enterprisedb.com/
>

Hi Nishant, I have updated the test patches by adding a ROLLBACK command
before DISCONNECT. Please find the latest test patches for master through
REL_16 (v4_test) and REL_15 through REL_14 (v4_test_v15).

I am also reattaching the v5 source code patch, which is applicable to all
active branches (master, REL_18, REL_17, REL_16, REL_15, and REL_14).

Attachment Content-Type Size
v4_test-0001-Tests-for-NULL-connection-validation.patch application/octet-stream 12.8 KB
v4_test_v15-0001-Tests-for-NULL-connection-validation-for.patch application/octet-stream 12.4 KB
v5-0001-Add-missing-connection-validation-in-ECPG.patch application/octet-stream 3.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-04-21 07:15:59 Re: logical: fix recomputation required LSN on restart_lsn-only advancement
Previous Message Antonin Houska 2026-04-21 07:09:00 Re: logical: fix recomputation required LSN on restart_lsn-only advancement