Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRQ1H-002KQE-0W for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2026 07:46:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wRQ1F-000c6l-0T for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2026 07:46:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRQ1E-000c6d-2X for pgsql-hackers@lists.postgresql.org; Mon, 25 May 2026 07:46:37 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wRQ1D-00000001JSb-1Vof for pgsql-hackers@postgresql.org; Mon, 25 May 2026 07:46:37 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-7e61e25199bso561487a34.1 for ; Mon, 25 May 2026 00:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779695192; cv=none; d=google.com; s=arc-20240605; b=FiyR4ySzVysrpg2td8bLyubYTUo9dzTDmv1/m0sa292q1I7GVfnQ6/DKOELJ5tO9/T P+cJNE8yEpEewD1JYJmJUY2GD/Jup3gVgDSePPZB06NswFQyksndr5N2nDbUOXrjBp9G HI3Zl0RtFR5VrS+FtbV2Q+JvlJgnIzona35pM1bKza4djjyBe7p15zRLbogYq3Kvw2I+ 0xe20hFB+ito808Xh57mDqgAwEDDwS0rQ/+FKJC3fQD7O9IiS0fkaCaxggXqMfzdmTkJ lLsvYfj5EI1hQUBeS5mPdLodnIn1SGG+8/H53+LZ2VyPRfaQln425GtzMSWCJ9W0cQqr ErSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=5xnzMD3hk8R1ktCxbb01oMrsO2pwsyf9g+AcOpmszBA=; fh=Vfp8s5uqDtlzWfC9V5z+H+Cbo/CICgz5KqGGqwjIark=; b=XsblSilBBNdaN6O1AxnenNOmKY15n/c9+2p3EYLBKx4oB+LsUxzQegHaKKF8c5Csrn vXGsXKwg+BGhQW7REP5plpHLqfAVd5lAo0cqr+mDnMMDUbn97oqYq23HjLuOz4l4Xol6 rBb8xa05/aAoB1Fu2MCDO24M0aSG0y7cig0t83YarInU0xIRfQ8n7UZxQdCKA5FIrx+m cuGkw3ddD5Vq80aXtcbvcmGh88J2HXyU1BK4JIfp9yWz+117n/N054WuIl/CCW6aILJ/ 4ZrNedSewiVaRKwCaKgtvmYBHk1l/HlEh0v5zzDKfKapcDyO/HeJE4ntHsYpIOr5tT/P Q9yg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779695192; x=1780299992; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5xnzMD3hk8R1ktCxbb01oMrsO2pwsyf9g+AcOpmszBA=; b=JBMW/OC5tdcdhSqWtw6IxQsunG0ojSYobS7XODWUlEUrphzxgD20BdhEZUhYa9wMLg WJjm6m4a73xzibkVt8f88Q5U6hOG53+vykqyAaaLWHB4uddgQJj3gAvHYgYsBkgeTjHx jHjP5EvFDwCP/cSFJV06KVuB0vMFeH/NKHqRpFThYRURRstb0uB5e5qarnX+plW53xZO lg8ZeLhsK67/tk/0JS5l9pqTuFH6JiC435ZZx/huld0CKr3ozg4BnRGVdWOQdTst40yS wsea7ZSw9ThiNQms0wN45rru/iyHcTus1gDD9735nkJ287h2F8Fqhtqnwq7KrCylEJ6f Bq2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779695192; x=1780299992; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5xnzMD3hk8R1ktCxbb01oMrsO2pwsyf9g+AcOpmszBA=; b=dmhgT6WhUk+Wcavh8uMFMQMP8nxIC1Z5F+4YBrGxokWWg71YHqOUsy/mrM8V/B8Kmm 4wkSv4KyOofM5nevO62DOGK4pdg4/LW6I6u51teXBnO8qWJtoj2W5wQbd6ocY8D2B3fK cdQJGi8bH7f5qk8Hk1UaqLL9Y765/WyyEIwaVvGOhaWeBAkbBC0pAQ0x43oxXs6iBkUt BpEC9d7EbrMpz7ya/o2IQ80khCgzVZyHqX4S+0oHwiWsRNfyVn5ECTXH3VtCPWpVkwUj fGWAETF+M/iy89Z+bDptsFvCSOraUyIQk4+cFAvfEvAoeYjhzUJL0k32vUYaHa1H+DYU 5ORA== X-Forwarded-Encrypted: i=1; AFNElJ9rrq3DvZZ/6DeawydBXavoxVJJrMU5PyUi6QPX+H1kD9ewW0LJHzhrPcvI6mitKwNSuUblNlVznITHVkMD@postgresql.org X-Gm-Message-State: AOJu0YzYiB9ncfxylDsI5rO4dgujF2ntGT3tpmSMnTn9IkGzUOPjTv6P BzqFvl9QpDBgJUzLmvoZEWZDhg7TBZ7aMaW0Sn+uYrZuxPIPJDou8ALwOqWeya+Rb6TdKyNK1kd I7f4Gl0WRE2GrXm0xFUg6GDePBtpLw0s= X-Gm-Gg: Acq92OHPlU8S7EO6O7Tw81lL3j2IHZqZWnUBmXB+QVBtZsqiBA2VF3foBV/izm/uPYx fAc6yjUbwiiOp86XAuWstSlpF0gl6XqM5noLE2N4z9ySx2/3A0IbS/tcH2z/1FLiVwPre5ylTaP gGKqwKL49uFdJLTzem2RL/b3lgSsIpZuj8qzHvc9u9EEHLEv7x8niSRHplX8jGx2dfiUdIQe1Ts MFf56VLOQ451zs67M81vgufjBISz1NnXUIGKPyuPJ9WFRPCxAxyrrgrFNYWPs5kMdRN+NV3KtQH 7/iAvgzZ4bqTXm9Acg1o X-Received: by 2002:a05:6830:82a2:b0:7dc:cd0b:58b0 with SMTP id 46e09a7af769-7e5fec65da6mr8219361a34.3.1779695192097; Mon, 25 May 2026 00:46:32 -0700 (PDT) MIME-Version: 1.0 References: <3007317.1765210195@sss.pgh.pa.us> In-Reply-To: From: Shruthi Gowda Date: Mon, 25 May 2026 13:16:20 +0530 X-Gm-Features: AVHnY4JVleewZgwgVIMwzLz9KOv5vvJYC4K_QBiuE5TYF0y4eqTumnWucZrkd8o Message-ID: Subject: Re: [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL To: SATYANARAYANA NARLAPURAM Cc: Andrew Dunstan , Nishant Sharma , Mahendra Singh Thalor , Fujii Masao , Tom Lane , PostgreSQL Development Content-Type: multipart/alternative; boundary="000000000000bbc5e306529f9363" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bbc5e306529f9363 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 24, 2026 at 12:29=E2=80=AFAM SATYANARAYANA NARLAPURAM < satyanarlapuram@gmail.com> wrote: > Hi > > On Fri, May 1, 2026 at 12:21=E2=80=AFPM Andrew Dunstan > wrote: > >> >> >> On Wed, Apr 22, 2026 at 12:27=E2=80=AFAM Nishant Sharma < >> nishant.sharma@enterprisedb.com> wrote: >> >>> Thanks Shruthi! >>> >>> v5 code, v4_test and v4_test_15 patches look good to me. >>> >>> I checked ECPG regression on master, REL_18, REL_17, REL_16, REL_15, >>> REL_14 using both make and meson. >>> >>> I have finished my review work on the patches. Thank you! >>> >>> >>> >>> >> Thanks, everybody, pushed (as combined patches) >> > > Looks like this committed a case, attached a patch to fix this. > > Thanks, > Satya > > Thanks Satya for looking into this. However, we don't need to add the validation here because the caller ecpg_do_prologue*()* has already taken care of it. Adding it again would be redundant. What do you think? Thanks & Regards, Shruthi K C EnterpriseDB: http://www.enterprisedb.com --000000000000bbc5e306529f9363 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, May 24,= 2026 at 12:29=E2=80=AFAM SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com> wrote:
=
Hi

On Fri, May 1, 2026 at 12:21=E2=80=AFPM Andrew Dunstan <andrew@dunslane.net= > wrote:


On Wed, Apr 22, 2026 at 12:27=E2=80=AFAM = Nishant Sharma <nishant.sharma@enterprisedb.com> wrote:
Thanks Shruthi!

v5 code, v4_test and v4_test_15 patch= es look good to me.

I checked ECPG regression on m= aster, REL_18, REL_17, REL_16, REL_15, REL_14 using both make and meson.

I have finished my review work on the patches. Thank= you!



=
Thanks, everybody, pushed (as combined patches)
<= /div>

Looks like this committed a case, att= ached a patch to fix this.

Thanks,
Satya=
=C2=A0
Thanks Satya for looki= ng into this. However, we don't need to add the validation here because= the caller ecpg_do_prologue() has already t= aken care of it. Adding it again would be redundant. What do you think?

Thanks & Regards,

Shruthi K C

Ente= rpriseDB:=C2=A0http://www.= enterprisedb.com

--000000000000bbc5e306529f9363--