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
- v4_test-0001-Tests-for-NULL-connection-validation.patch (application/octet-stream) patch v4-0001
- v4_test_v15-0001-Tests-for-NULL-connection-validation-for.patch (application/octet-stream) patch v4-0001
- v5-0001-Add-missing-connection-validation-in-ECPG.patch (application/octet-stream) patch v5-0001
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 →
-
Add missing connection validation in ECPG
- f0e3f9732d41 14.23 landed
- 6916f4410051 15.18 landed
- 7e4c871f4181 16.14 landed
- 5d67549d9412 17.10 landed
- e2688ea5e411 18.4 landed
- c34a280c85b3 19 (unreleased) landed