Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOMRz-0002kG-4M for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Feb 2022 16:31:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nOMRw-0002cy-T9 for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Feb 2022 16:31:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOMRw-0002co-LP for pgsql-bugs@lists.postgresql.org; Sun, 27 Feb 2022 16:31:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOMRq-0001jH-Uh for pgsql-bugs@lists.postgresql.org; Sun, 27 Feb 2022 16:31:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21RGUwOD2360631; Sun, 27 Feb 2022 11:30:58 -0500 From: Tom Lane To: Michael Paquier cc: hirose.masay-01@jp.fujitsu.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17421: Core dump in ECPGdo() when calling PostgreSQL API from 32-bit client for RHEL8 In-reply-to: References: <17421-790ff887e3188874@postgresql.org> Comments: In-reply-to Michael Paquier message dated "Sun, 27 Feb 2022 21:20:57 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2360629.1645979458.1@sss.pgh.pa.us> Date: Sun, 27 Feb 2022 11:30:58 -0500 Message-ID: <2360630.1645979458@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > Hm. Could you isolate that in a self-contained test case? Based on > this trace, it looks like "message" is NULL, which may be possible > because pqInternalNotice() missed something? I would not bet on > errorMessage being NULL, but there may be holes.. Yeah. It seems likely that this is a longstanding ecpglib bug that was previously masked by platform snprintfs not crashing on printf("%s", NULL). If so, it's masked again in 12.8 and later (cf 3779ac62d), but it's still a bug in that ecpg won't print anything useful when this edge condition --- whatever it is --- happens. So, could we see a test case? regards, tom lane