valgrind --tool=memcheck --leak-check=full ./plugandpaint
==16772== Memcheck, a memory error detector for x86-linux.
==16772== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==16772== Using valgrind-2.4.0, a program supervision framework for x86-linux.
==16772== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==16772== For more details, rerun with: -v
==16772==
==16772== Conditional jump or move depends on uninitialised value(s)
==16772== at 0x1C229F47: store_to_database (in /usr/lib/libX11.so.6.2)
==16772==
==16772== Conditional jump or move depends on uninitialised value(s)
==16772== at 0x1C229F50: store_to_database (in /usr/lib/libX11.so.6.2)
==16772==
==16772== Conditional jump or move depends on uninitialised value(s)
==16772== at 0x1C229F9B: store_to_database (in /usr/lib/libX11.so.6.2)
==16772==
==16772== Conditional jump or move depends on uninitialised value(s)
==16772== at 0x1C229FA0: store_to_database (in /usr/lib/libX11.so.6.2)
==16772==
==16772== Syscall param write(buf) points to uninitialised byte(s)
==16772== at 0x1C470248: write (in /lib/libpthread-0.10.so)
==16772== Address 0x1C77F510 is 320 bytes inside a block of size 16384 alloc'd
==16772== at 0x1B904E9A: calloc (vg_replace_malloc.c:176)
==16772== by 0x1C1D0E09: XOpenDisplay (in /usr/lib/libX11.so.6.2)
==16772==
==16772== Syscall param writev(vector[...]) points to uninitialised byte(s)
==16772== at 0x1C6663AE: (within /lib/libc-2.3.6.so)
==16772== by 0x1C2036BD: _X11TransSocketWritev (in /usr/lib/libX11.so.6.2)
==16772== Address 0x1C77F45E is 142 bytes inside a block of size 16384 alloc'd
==16772== at 0x1B904E9A: calloc (vg_replace_malloc.c:176)
==16772== by 0x1C1D0E09: XOpenDisplay (in /usr/lib/libX11.so.6.2)
==16772==
==16772== ERROR SUMMARY: 90 errors from 6 contexts (suppressed: 86 from 2)
==16772== malloc/free: in use at exit: 974296 bytes in 7456 blocks.
==16772== malloc/free: 236588 allocs, 229132 frees, 66411306 bytes allocated.
==16772== For counts of detected errors, rerun with: -v
==16772== searching for pointers to 7456 not-freed blocks.
==16772== checked 1740280 bytes.
==16772==
==16772==
==16772== 20 bytes in 1 blocks are definitely lost in loss record 30 of 116
==16772== at 0x1B904368: malloc (vg_replace_malloc.c:130)
==16772== by 0x1C61D12F: strdup (in /lib/libc-2.3.6.so)
==16772== by 0x1BB33812: qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long) (in /usr/lib/qt4/libQtGui_debug.so.4.1.0)
==16772== by 0x1BAD0F4E: QApplicationPrivate::construct() (in /usr/lib/qt4/libQtGui_debug.so.4.1.0)
==16772== by 0x804EE1C: (within /usr/share/doc/qt-4.1.0/examples/tools/plugandpaint/plugandpaint)
==16772== by 0x1C5CB554: __libc_start_main (in /lib/libc-2.3.6.so)
==16772== by 0x804EC50: (within /usr/share/doc/qt-4.1.0/examples/tools/plugandpaint/plugandpaint)
==16772==
==16772==
==16772== 68 bytes in 1 blocks are possibly lost in loss record 45 of 116
==16772== at 0x1B904E9A: calloc (vg_replace_malloc.c:176)
==16772== by 0x1B8F2148: allocate_dtv (in /lib/ld-2.3.6.so)
==16772== by 0x1B8F21FF: _dl_allocate_tls_storage (in /lib/ld-2.3.6.so)
==16772== by 0x1B8F2427: _dl_allocate_tls (in /lib/ld-2.3.6.so)
==16772== by 0x1C46B971: __pthread_initialize_minimal (in /lib/libpthread-0.10.so)
==16772== by 0x1C468314: ??? (crti.S:19)
==16772== by 0x1C467CEF: ??? (crti.S:32)
==16772== by 0x1B8EFB4D: call_init (in /lib/ld-2.3.6.so)
==16772== by 0x1B8EFCDD: _dl_init (in /lib/ld-2.3.6.so)
==16772== by 0x1B8E480E: (within /lib/ld-2.3.6.so)
==16772==
==16772==
==16772== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 56 of 116
==16772== at 0x1B904368: malloc (vg_replace_malloc.c:130)
==16772== by 0x1C67CEF8: (within /lib/libc-2.3.6.so)
==16772== by 0x1C67C7F3: __nss_database_lookup (in /lib/libc-2.3.6.so)
==16772== by 0x1B9201EB: ???
==16772== by 0x1B921DA4: ???
==16772== by 0x1C63C9E3: getpwuid_r (in /lib/libc-2.3.6.so)
==16772== by 0x1C63C45E: getpwuid (in /lib/libc-2.3.6.so)
==16772== by 0x1BB3D5AD: (within /usr/lib/qt4/libQtGui_debug.so.4.1.0)
==16772== by 0x1BB3D2E9: (within /usr/lib/qt4/libQtGui_debug.so.4.1.0)
==16772== by 0x1C0B2DCA: _SmcProcessMessage (in /usr/lib/libSM.so.6.0)
==16772==
==16772==
==16772== 2720 bytes in 1 blocks are possibly lost in loss record 105 of 116
==16772== at 0x1B905096: memalign (vg_replace_malloc.c:217)
==16772== by 0x1B8F21D1: _dl_allocate_tls_storage (in /lib/ld-2.3.6.so)
==16772== by 0x1B8F2427: _dl_allocate_tls (in /lib/ld-2.3.6.so)
==16772== by 0x1C46B971: __pthread_initialize_minimal (in /lib/libpthread-0.10.so)
==16772== by 0x1C468314: ??? (crti.S:19)
==16772== by 0x1C467CEF: ??? (crti.S:32)
==16772== by 0x1B8EFB4D: call_init (in /lib/ld-2.3.6.so)
==16772== by 0x1B8EFCDD: _dl_init (in /lib/ld-2.3.6.so)
==16772== by 0x1B8E480E: (within /lib/ld-2.3.6.so)
==16772==
==16772== LEAK SUMMARY:
==16772== definitely lost: 56 bytes in 2 blocks.
==16772== indirectly lost: 120 bytes in 10 blocks.
==16772== possibly lost: 2788 bytes in 2 blocks.
==16772== still reachable: 971332 bytes in 7442 blocks.
==16772== suppressed: 0 bytes in 0 blocks.
==16772== Reachable blocks (those to which a pointer was found) are not shown.
==16772== To see them, rerun with: --show-reachable=yes
Bookmarks