pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedlib/libecpg.so.6.11 && valgrind
2+ messages / 2 participants
[nested] [flat]
* lib/libecpg.so.6.11 && valgrind
@ 2020-05-29 12:37 Matthias Apitz <guru@unixarea.de>
2020-05-31 02:28 ` Re: lib/libecpg.so.6.11 && valgrind Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Apitz @ 2020-05-29 12:37 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello,
We're getting to the finish line in the port of our servers to
PostgreSQL 11.4. and started valgrind'ing the code, as the PostgreSQL is
new in the servers. Of course we have our own homework to do, but there
are also complaints of valgrind pointing to the lib/libecpg.so.6.11, for
example:
==9773== 9 bytes in 1 blocks are still reachable in loss record 3 of 52
==9773== at 0x4C2E2E3: malloc (vg_replace_malloc.c:299)
==9773== by 0x1439F749: strdup (in /lib64/libc-2.26.so)
==9773== by 0x146DF448: ecpg_strdup (in /usr/local/sisis-pap/pgsql/lib/libecpg.so.6.11)
==9773== by 0x146E048E: ECPGconnect (in /usr/local/sisis-pap/pgsql/lib/libecpg.so.6.11)
==9773== by 0xB03E846: DB_opdbP (dbcall.pgc:794)
==9773== by 0xB03DFDB: DB_opdb (dbcall.pgc:556)
==9773== by 0x5CC22F2: EC_General::OpenDatabase(_SQL_EXCL) (eC_general.C:121)
==9773== by 0x40AEB8: SlnpInitDaemon (ACQDaemon.C:644)
==9773== by 0x40A878: main (ACQDaemon.C:213)
How the PostgreSQL community likes us to deal with this?
matthias
--
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: lib/libecpg.so.6.11 && valgrind
2020-05-29 12:37 lib/libecpg.so.6.11 && valgrind Matthias Apitz <guru@unixarea.de>
@ 2020-05-31 02:28 ` Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2020-05-31 02:28 UTC (permalink / raw)
To: Matthias Apitz <guru@unixarea.de>; +Cc: pgsql-general@lists.postgresql.org
On Fri, May 29, 2020 at 02:37:29PM +0200, Matthias Apitz wrote:
> We're getting to the finish line in the port of our servers to
> PostgreSQL 11.4. and started valgrind'ing the code, as the PostgreSQL is
> new in the servers. Of course we have our own homework to do, but there
> are also complaints of valgrind pointing to the lib/libecpg.so.6.11, for
> example:
>
> ==9773== 9 bytes in 1 blocks are still reachable in loss record 3 of 52
> ==9773== at 0x4C2E2E3: malloc (vg_replace_malloc.c:299)
> ==9773== by 0x1439F749: strdup (in /lib64/libc-2.26.so)
> ==9773== by 0x146DF448: ecpg_strdup (in /usr/local/sisis-pap/pgsql/lib/libecpg.so.6.11)
> ==9773== by 0x146E048E: ECPGconnect (in /usr/local/sisis-pap/pgsql/lib/libecpg.so.6.11)
> ==9773== by 0xB03E846: DB_opdbP (dbcall.pgc:794)
> ==9773== by 0xB03DFDB: DB_opdb (dbcall.pgc:556)
> ==9773== by 0x5CC22F2: EC_General::OpenDatabase(_SQL_EXCL) (eC_general.C:121)
> ==9773== by 0x40AEB8: SlnpInitDaemon (ACQDaemon.C:644)
> ==9773== by 0x40A878: main (ACQDaemon.C:213)
>
> How the PostgreSQL community likes us to deal with this?
ECPGconnect() in src/interfaces/ecpg/ecpglib/connect.c is rather
careful in freeing any resource it allocates with ecpg_strdup() in the
various code paths where the call returns, particularly after calling
PQconnectdbParams(), and a quick installcheck run on a valgrind'ed
instance does not show me any leaks similar to what you have here
after testing on HEAD and REL_11_STABLE. It is likely possible that
we are missing something though, so could you send a test case to
reproduce what you are seeing?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-05-31 02:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 12:37 lib/libecpg.so.6.11 && valgrind Matthias Apitz <guru@unixarea.de>
2020-05-31 02:28 ` Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox