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

Shruthi Gowda <gowdashru@gmail.com>

From: Shruthi Gowda <gowdashru@gmail.com>
To: Nishant Sharma <nishant.sharma@enterprisedb.com>
Cc: Mahendra Singh Thalor <mahi6run@gmail.com>, Fujii Masao <masao.fujii@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2026-04-21T07:09:17Z
Lists: pgsql-hackers

Attachments

On Mon, Apr 20, 2026 at 11:31 AM Nishant Sharma <
nishant.sharma@enterprisedb.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).

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add missing connection validation in ECPG