Re: BUG #17421: Core dump in ECPGdo() when calling PostgreSQL API from 32-bit client for RHEL8
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: hirose.masay-01@jp.fujitsu.com, pgsql-bugs@lists.postgresql.org
Date: 2022-02-27T16:30:58Z
Lists: pgsql-bugs
Michael Paquier <michael@paquier.xyz> 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
Commits
-
Don't fail on libpq-generated error reports in ecpg_raise_backend().
- 89254606b61e 10.22 landed
- d82ed5b2f820 11.17 landed
- 02026cadbf04 12.12 landed
- 16d68007cd74 13.8 landed
- a5dbca460ace 14.4 landed
- 6d157e7cb8d3 15.0 landed