[kcbanner@kc bin]$ valgrind ./uwd ==6144== Memcheck, a memory error detector. ==6144== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==6144== Using LibVEX rev 1732, a library for dynamic binary translation. ==6144== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==6144== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==6144== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==6144== For more details, rerun with: -v ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400AA35: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4003743: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400AA70: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4003743: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400A912: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4003743: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400A91A: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4003743: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400B50B: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4003743: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400A912: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x40039C9: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400A91A: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x40039C9: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400AA70: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x40039C9: dl_main (in /lib/ld-2.6.so) ==6144== by 0x4013A6C: _dl_sysdep_start (in /lib/ld-2.6.so) ==6144== by 0x40011C0: _dl_start (in /lib/ld-2.6.so) ==6144== by 0x4000816: (within /lib/ld-2.6.so) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400AA35: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4011798: dl_open_worker (in /lib/ld-2.6.so) ==6144== by 0x400D885: _dl_catch_error (in /lib/ld-2.6.so) ==6144== by 0x40111AB: _dl_open (in /lib/ld-2.6.so) ==6144== by 0x432D0E1: do_dlopen (in /lib/libc-2.6.so) ==6144== by 0x400D885: _dl_catch_error (in /lib/ld-2.6.so) ==6144== by 0x432D1E0: dlerror_run (in /lib/libc-2.6.so) ==6144== by 0x432D30A: __libc_dlopen_mode (in /lib/libc-2.6.so) ==6144== by 0x43090F7: __nss_lookup_function (in /lib/libc-2.6.so) ==6144== by 0x42E3BDB: gaih_inet (in /lib/libc-2.6.so) ==6144== by 0x42E423F: getaddrinfo (in /lib/libc-2.6.so) ==6144== by 0x41167D4: pg_getaddrinfo_all (in /usr/lib/libpq.so.5.0) ==6144== ==6144== Conditional jump or move depends on uninitialised value(s) ==6144== at 0x400AA70: _dl_relocate_object (in /lib/ld-2.6.so) ==6144== by 0x4011798: dl_open_worker (in /lib/ld-2.6.so) ==6144== by 0x400D885: _dl_catch_error (in /lib/ld-2.6.so) ==6144== by 0x40111AB: _dl_open (in /lib/ld-2.6.so) ==6144== by 0x432D0E1: do_dlopen (in /lib/libc-2.6.so) ==6144== by 0x400D885: _dl_catch_error (in /lib/ld-2.6.so) ==6144== by 0x432D1E0: dlerror_run (in /lib/libc-2.6.so) ==6144== by 0x432D30A: __libc_dlopen_mode (in /lib/libc-2.6.so) ==6144== by 0x43090F7: __nss_lookup_function (in /lib/libc-2.6.so) ==6144== by 0x42E3BDB: gaih_inet (in /lib/libc-2.6.so) ==6144== by 0x42E423F: getaddrinfo (in /lib/libc-2.6.so) ==6144== by 0x41167D4: pg_getaddrinfo_all (in /usr/lib/libpq.so.5.0) Database: could not connect to server: Connection refused Is the server running on host "coeus" and accepting TCP/IP connections on port 5432? ==6144== ==6144== ERROR SUMMARY: 35 errors from 10 contexts (suppressed: 0 from 0) ==6144== malloc/free: in use at exit: 640 bytes in 20 blocks. ==6144== malloc/free: 3,103 allocs, 3,083 frees, 114,302 bytes allocated. ==6144== For counts of detected errors, rerun with: -v ==6144== searching for pointers to 20 not-freed blocks. ==6144== checked 445,716 bytes. ==6144== ==6144== LEAK SUMMARY: ==6144== definitely lost: 146 bytes in 14 blocks. ==6144== possibly lost: 306 bytes in 2 blocks. ==6144== still reachable: 188 bytes in 4 blocks. ==6144== suppressed: 0 bytes in 0 blocks. ==6144== Rerun with --leak-check=full to see details of leaked memory.