**** Purify instrumented ./0.printf (pid 17047 at Mon Oct 8 16:55:15 2007) * Purify 7.0 Linux (32-bit) (C) Copyright IBM Corporation. 1992, 2006 All Rights Reserved. * For contact information type: "purify -help" * Options settings: -linker=/package/1/utils/binutils-2.15.92.0.2-21/bin/ld \ -purify -log-file=0.printf.log -view-file=0.printf.view -windows=no \ -purify-home=/nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0 \ -gcc3_path=/package/1/compilers/gcc-3.4.6-3/bin/gcc \ -cache-dir=/nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache \ -hw_cap=yes * License successfully checked out. * Command-line: ./0.printf **** Purify instrumented ./0.printf (pid 17047) **** Current file descriptors in use: 5 FIU: file descriptor 0: FIU: file descriptor 1: FIU: file descriptor 2: FIU: file descriptor 26: FIU: file descriptor 27: **** Purify instrumented ./0.printf (pid 17047) **** Purify: Searching for all memory leaks... Memory leaked: 11846 bytes (90.6%); potentially leaked: 0 bytes (0%) MLK: 11618 bytes leaked in 256 blocks * This memory was allocated from: malloc [rtlib.o] _rw_bufcat(Buffer&, char const*, unsigned) [printf.cpp:475] _rw_fmtstr(FmtSpec const&, Buffer&, char const*, unsigned) [printf.cpp:2399] _rw_fmterrno(FmtSpec const&, Buffer&, int) [fmt_bits.cpp:1006] _rw_vasnprintf_c99(FmtSpec*, unsigned, Buffer&, VarArgs*) [printf.cpp:612] _rw_pvasnprintf(Buffer&, char const*, VarArgs*) [printf.cpp:901] * Block of 104 bytes at 0x8162138 * Block of 100 bytes at 0x8161fe0 * Block of 96 bytes at 0x8162de0 * Block of 92 bytes at 0x81621f0 * Block of 86 bytes at 0x8162800 * Block of 84 bytes at 0x8162c98 * Block of 82 bytes at 0x8161e00 * Block of 80 bytes (2 times); last block at 0x8161bb8 * Block of 78 bytes at 0x8161ea8 * Block of 76 bytes (2 times); last block at 0x8162a50 * Block of 74 bytes at 0x8162e90 * Block of 72 bytes at 0x8160690 * Block of 70 bytes (3 times); last block at 0x81602d8 * Block of 68 bytes (2 times); last block at 0x8161f48 * Block of 66 bytes (3 times); last block at 0x81624b8 * Block of 64 bytes (6 times); last block at 0x8163118 * Block of 62 bytes (3 times); last block at 0x8161ce8 * Block of 60 bytes (3 times); last block at 0x8163338 * Block of 58 bytes (4 times); last block at 0x8161110 * Block of 56 bytes (7 times); last block at 0x81631a8 * Block of 54 bytes (6 times); last block at 0x81632b0 * Block of 52 bytes (5 times); last block at 0x815c2a0 * Block of 50 bytes (7 times); last block at 0x81625d8 * Block of 48 bytes (5 times); last block at 0x81616e0 * Block of 46 bytes (4 times); last block at 0x8163458 * Block of 44 bytes (5 times); last block at 0x8160610 * Block of 42 bytes (10 times); last block at 0x815f4f0 * Block of 40 bytes (134 times); last block at 0x8166008 * Block of 38 bytes (8 times); last block at 0x8161368 * Block of 36 bytes (5 times); last block at 0x8161858 * Block of 34 bytes (9 times); last block at 0x8160d90 * Block of 32 bytes (4 times); last block at 0x81618d0 * Block of 30 bytes (3 times); last block at 0x81612f8 * Block of 28 bytes (4 times); last block at 0x8160268 * Block of 22 bytes at 0x8161210 * Block of 20 bytes at 0x815ed08 MLK: 134 bytes leaked in 12 blocks * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] _rw_fmtexpr(FmtSpec&, Buffer&, VarArgs*) [printf.cpp:3160] _rw_vasnprintf_ext(FmtSpec*, unsigned, Buffer&, char const*, VarArgs*) [printf.cpp:2960] _rw_pvasnprintf(Buffer&, char const*, VarArgs*) [printf.cpp:810] rw_vasnprintf(char**, unsigned*, char const*, char*) [printf.cpp:1013] * Block of 15 bytes at 0x815c5e0 * Block of 12 bytes at 0x815c978 * Block of 11 bytes (7 times); last block at 0x815dfd0 * Block of 10 bytes (3 times); last block at 0x815e678 MLK: 13 bytes leaked at 0x815ce70 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2065] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 13 bytes leaked at 0x815db40 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2122] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 8 bytes leaked at 0x815eba0 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2045] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815c6a0 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2150] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815cfe8 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2141] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815ce18 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2195] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815d4e0 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2097] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815ced0 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2066] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815dba0 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2123] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815d0f0 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2087] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815ea18 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2186] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815f020 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2067] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] MLK: 6 bytes leaked at 0x815dbf8 * This memory was allocated from: malloc [rtlib.o] rw_putenv(char const*, int) [environ.cpp:96] test_envvar() [0.printf.cpp:2124] main [0.printf.cpp:3035] __libc_start_main [libc.so.6] _start [crt1.o] Purify Heap Analysis (combining suppressed and unsuppressed blocks) Blocks Bytes Leaked 281 11846 Potentially Leaked 0 0 In-Use 6 1230 ---------------------------------------- Total Allocated 287 13076 **** Purify instrumented ./0.printf (pid 17047) **** * Program exited with status code 1. * 0 access errors, 0 total occurrences. * 11846 bytes leaked. * 0 bytes potentially leaked. * Basic memory usage (including Purify overhead): 955760 code 169520 data/bss 135168 heap (peak use) 2440 stack * Shared library memory usage (including Purify overhead): (0x7df000 - 0x9dc1f4) 2085364 /build/vitek/stdcxx-trunk/15d/lib/libstd15d.so_pure_p3_c0_104192053_269-42ELsmp_32 (shared code) (0x9dd000 - 0x9ebee8) 61160 /build/vitek/stdcxx-trunk/15d/lib/libstd15d.so_pure_p3_c0_104192053_269-42ELsmp_32 (private data) (0x590000 - 0x5d9bb0) 302000 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/tls/libm.so.6_pure_p3_c0_104192053_269-42ELsmp_32 (shared code) (0x5da000 - 0x5da2a0) 672 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/tls/libm.so.6_pure_p3_c0_104192053_269-42ELsmp_32 (private data) (0x111000 - 0x123684) 75396 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/libgcc_s.so.1_pure_p3_c0_104192053_269-42ELsmp_32 (shared code) (0x124000 - 0x1242b4) 692 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/libgcc_s.so.1_pure_p3_c0_104192053_269-42ELsmp_32 (private data) (0x6be000 - 0x6daa78) 117368 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/tls/libpthread.so.0_pure_p3_c0_104192053_269-42ELsmp_32 (shared code) (0x6db000 - 0x6dd4dc) 9436 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/tls/libpthread.so.0_pure_p3_c0_104192053_269-42ELsmp_32 (private data) (0x125000 - 0x129f08) 20232 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/libdl.so.2_pure_p3_c0_104192053_269-42ELsmp_32 (shared code) (0x12a000 - 0x12a274) 628 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/libdl.so.2_pure_p3_c0_104192053_269-42ELsmp_32 (private data) (0xa93000 - 0xa952e1) 8929 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/lib32/libinternal_stubs_nopthread.so.1.0 (shared code) (0xa962e4 - 0xa96870) 1420 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/lib32/libinternal_stubs_nopthread.so.1.0 (private data) (0x12b000 - 0x3e2594) 2848148 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/tls/libc.so.6_pure_p3_c0_104192053_269-42ELsmp_32 (shared code) (0x3e3000 - 0x3e88bc) 22716 /nfs/packages/mdx/rhas/utils/purifyplus/7.0/releases/purify.i386_linux2.7.0/cache/fornax/lib/tls/libc.so.6_pure_p3_c0_104192053_269-42ELsmp_32 (private data) (0x445000 - 0x459db4) 85428 /lib/ld-linux.so.2 (shared code) (0x45aca0 - 0x45b4f4) 2132 /lib/ld-linux.so.2 (private data) * Memory mapped usage: 4096 mmap'd at 0xb7884000