Re: leak in libpq, getpwuid - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject Re: leak in libpq, getpwuid
Date
Msg-id 2f4958ff0902180636q2ce908fdo1762df88b0502d6d@mail.gmail.com
Whole thread Raw
In response to Re: leak in libpq, getpwuid  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: leak in libpq, getpwuid
List pgsql-general
On Tue, Feb 17, 2009 at 4:03 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> =?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= <gryzman@gmail.com> writes:
>> oh, and note that I kind of rulled out linux libc/distro problem, same
>> happens on both centos 4.7 and fedora 9.
>
> That hardly constitutes a wide sample of linux distros ...
>

same thing on debian, well - almost:

==8261==    at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==8261==    by 0x43B1930: (within /lib/i686/cmov/libc-2.7.so)
==8261==    by 0x43B222B: __nss_database_lookup (in /lib/i686/cmov/libc-2.7.so)
==8261==    by 0x6C98F5B: ???
==8261==    by 0x6C9B0B4: ???
==8261==    by 0x4358ED1: getpwuid_r (in /lib/i686/cmov/libc-2.7.so)
==8261==    by 0x417ED3D: (within /usr/lib/libpq.so.5.1)
==8261==    by 0x416A7A8: (within /usr/lib/libpq.so.5.1)
==8261==    by 0x416E5CA: (within /usr/lib/libpq.so.5.1)
==8261==    by 0x416E709: (within /usr/lib/libpq.so.5.1)
==8261==    by 0x416EA4E: PQconnectStart (in /usr/lib/libpq.so.5.1)
==8261==    by 0x416EAA1: PQconnectdb (in /usr/lib/libpq.so.5.1)

--
GJ

pgsql-general by date:

Previous
From: Glyn Astill
Date:
Subject: Query palns and tug-of-war with enable_sort
Next
From: Joey Morris
Date:
Subject: connecting using libpq breaks printf