==13519== valgrind-1.0pre4, a memory error detector for x86 GNU/Linux. ==13519== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward. ==13519== Startup, with flags: ==13519== --suppressions=/usr/local/lib/valgrind/default.supp ==13519== -v ==13519== --leak-check=yes ==13519== --show-reachable=yes ==13519== --num-callers=20 ==13519== Reading suppressions file: /usr/local/lib/valgrind/default.supp ==13519== Reading syms from /home/randy/temp/mleak_test ==13519== Reading syms from /lib/ld-2.2.5.so ==13519== Reading syms from /usr/local/lib/valgrind/valgrind.so ==13519== Reading syms from /usr/local/pgsql/lib/libpq.so.2.2 ==13519== object doesn't have any debug info ==13519== Reading syms from /lib/libc-2.2.5.so ==13519== Reading syms from /lib/libcrypt-2.2.5.so ==13519== Reading syms from /lib/libresolv-2.2.5.so ==13519== Reading syms from /lib/libnsl-2.2.5.so ==13519== Estimated CPU clock rate is 1625 MHz ==13519== ==13519== Reading syms from /lib/libnss_files-2.2.5.so ==13519== ==13519== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 9 from 4) --13519-- --13519-- supp: 1 strrchr/_dl_map_object_from_fd/_dl_map_object(Cond) --13519-- supp: 2 *strchrnul*/*nss*(Cond) --13519-- supp: 2 __strchrnul/gethostbyname*(Cond) --13519-- supp: 4 strchr/dl_open_worker(Cond) ==13519== malloc/free: in use at exit: 2767 bytes in 46 blocks. ==13519== malloc/free: 74 allocs, 28 frees, 30253 bytes allocated. ==13519== ==13519== searching for pointers to 46 not-freed blocks. ==13519== checked 3988716 bytes. ==13519== ==13519== definitely lost: 0 bytes in 0 blocks. ==13519== possibly lost: 0 bytes in 0 blocks. ==13519== still reachable: 2767 bytes in 46 blocks. ==13519== ==13519== 8 bytes in 1 blocks are still reachable in loss record 1 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x4033F7A0: __nss_lookup_function (nsswitch.c:291) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 8 bytes in 1 blocks are still reachable in loss record 2 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x4033FDF4: nss_parse_file (nsswitch.c:434) ==13519== by 0x4033F433: __nss_database_lookup (nsswitch.c:104) ==13519== by 0x4034108B: __nss_hosts_lookup (XXX-lookup.c:63) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 12 bytes in 1 blocks are still reachable in loss record 3 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x403403AA: nss_new_service (nsswitch.c:685) ==13519== by 0x4033F7F2: __nss_lookup_function (nsswitch.c:314) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 16 bytes in 1 blocks are still reachable in loss record 4 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x40330D60: __tsearch (tsearch.c:281) ==13519== by 0x4033F77C: __nss_lookup_function (nsswitch.c:280) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 23 bytes in 1 blocks are still reachable in loss record 5 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x40008372: _dl_new_object (dl-object.c:108) ==13519== by 0x4000475C: _dl_map_object_from_fd (dl-load.c:836) ==13519== by 0x40005FE3: _dl_map_object (dl-load.c:1814) ==13519== by 0x4035B521: dl_open_worker (dl-open.c:217) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035B98F: _dl_open (dl-open.c:411) ==13519== by 0x4035C6CC: do_dlopen (dl-libc.c:78) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035C673: dlerror_run (dl-libc.c:44) ==13519== by 0x4035C775: __libc_dlopen (dl-libc.c:104) ==13519== by 0x4033FA74: __nss_lookup_function (nsswitch.c:340) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== ==13519== 23 bytes in 1 blocks are still reachable in loss record 6 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x40005CE1: _dl_map_object (dl-load.c:154) ==13519== by 0x4035B521: dl_open_worker (dl-open.c:217) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035B98F: _dl_open (dl-open.c:411) ==13519== by 0x4035C6CC: do_dlopen (dl-libc.c:78) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035C673: dlerror_run (dl-libc.c:44) ==13519== by 0x4035C775: __libc_dlopen (dl-libc.c:104) ==13519== by 0x4033FA74: __nss_lookup_function (nsswitch.c:340) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 28 bytes in 1 blocks are still reachable in loss record 7 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x400098E4: _dl_map_object_deps (dl-deps.c:470) ==13519== by 0x4035B5E1: dl_open_worker (dl-open.c:255) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035B98F: _dl_open (dl-open.c:411) ==13519== by 0x4035C6CC: do_dlopen (dl-libc.c:78) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035C673: dlerror_run (dl-libc.c:44) ==13519== by 0x4035C775: __libc_dlopen (dl-libc.c:104) ==13519== by 0x4033FA74: __nss_lookup_function (nsswitch.c:340) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 112 bytes in 1 blocks are still reachable in loss record 8 of 12 ==13519== at 0x400452BF: calloc (vg_clientfuncs.c:221) ==13519== by 0x4000B65B: _dl_check_map_versions (dl-version.c:297) ==13519== by 0x4035B621: dl_open_worker (dl-open.c:255) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035B98F: _dl_open (dl-open.c:411) ==13519== by 0x4035C6CC: do_dlopen (dl-libc.c:78) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035C673: dlerror_run (dl-libc.c:44) ==13519== by 0x4035C775: __libc_dlopen (dl-libc.c:104) ==13519== by 0x4033FA74: __nss_lookup_function (nsswitch.c:340) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 209 bytes in 13 blocks are still reachable in loss record 9 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x40340319: nss_getline (nsswitch.c:656) ==13519== by 0x4033FE7A: nss_parse_file (nsswitch.c:465) ==13519== by 0x4033F433: __nss_database_lookup (nsswitch.c:104) ==13519== by 0x4034108B: __nss_hosts_lookup (XXX-lookup.c:63) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 454 bytes in 1 blocks are still reachable in loss record 10 of 12 ==13519== at 0x400452BF: calloc (vg_clientfuncs.c:221) ==13519== by 0x400081D9: _dl_new_object (dl-object.c:43) ==13519== by 0x4000475C: _dl_map_object_from_fd (dl-load.c:836) ==13519== by 0x40005FE3: _dl_map_object (dl-load.c:1814) ==13519== by 0x4035B521: dl_open_worker (dl-open.c:217) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035B98F: _dl_open (dl-open.c:411) ==13519== by 0x4035C6CC: do_dlopen (dl-libc.c:78) ==13519== by 0x4000A1B0: _dl_catch_error (dl-error.c:153) ==13519== by 0x4035C673: dlerror_run (dl-libc.c:44) ==13519== by 0x4035C775: __libc_dlopen (dl-libc.c:104) ==13519== by 0x4033FA74: __nss_lookup_function (nsswitch.c:340) ==13519== by 0x4033F531: __nss_lookup (nsswitch.c:155) ==13519== by 0x403410BB: __nss_hosts_lookup (XXX-lookup.c:70) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== ==13519== 850 bytes in 23 blocks are still reachable in loss record 11 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x4033FF52: nss_parse_service_list (nsswitch.c:514) ==13519== by 0x4034033D: nss_getline (nsswitch.c:664) ==13519== by 0x4033FE7A: nss_parse_file (nsswitch.c:465) ==13519== by 0x4033F433: __nss_database_lookup (nsswitch.c:104) ==13519== by 0x4034108B: __nss_hosts_lookup (XXX-lookup.c:63) ==13519== by 0x40342AC6: gethostbyname_r@@GLIBC_2.1.2 (../nss/getXXbyYY_r.c:168) ==13519== by 0x40342525: gethostbyname (../nss/getXXbyYY.c:131) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== 1024 bytes in 1 blocks are still reachable in loss record 12 of 12 ==13519== at 0x40044E4B: malloc (vg_clientfuncs.c:100) ==13519== by 0x40342450: gethostbyname (../nss/getXXbyYY.c:109) ==13519== by 0x40253AB6: connectDBStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x402535B5: PQconnectStart (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x4025338F: PQconnectdb (in /usr/local/pgsql/lib/libpq.so.2.2) ==13519== by 0x8048634: main (in /home/randy/temp/mleak_test) ==13519== by 0x4027817D: __libc_start_main (../sysdeps/generic/libc-start.c:129) ==13519== by 0x8048561: (within /home/randy/temp/mleak_test) ==13519== ==13519== LEAK SUMMARY: ==13519== definitely lost: 0 bytes in 0 blocks. ==13519== possibly lost: 0 bytes in 0 blocks. ==13519== still reachable: 2767 bytes in 46 blocks. ==13519== --13519-- lru: 1 epochs, 0 clearings. --13519-- translate: new 3167 (42668 -> 583422), discard 0 (0 -> 0). --13519-- dispatch: 50000 basic blocks, 2/3387 sched events, 3212 tt_fast misses. --13519-- reg-alloc: 914 t-req-spill, 110460+6135 orig+spill uis, 15652 total-reg-r. --13519-- sanity: 3 cheap, 1 expensive checks.