Re: scanimage -T using Purify...

From: Petter Reinholdtsen (pere@hungry.com)
Date: Thu May 10 2001 - 15:43:47 PDT

  • Next message: Paul Nixon: "Acer 620UT USB now fails"

    I ran scanimage -T on the latest CVS source. This is the current
    result. Not much left. :-)

    **** Purify instrumented /export/home/pere/gnu/bin/scanimage (pid 4903 at Thu May 10 23:37:53 2001)
      * Purify 5.3 Solaris 2 (32-bit), Copyright (C) 1992-2001 Rational Software Corp. All rights reserved.
      * For contact information type: "purify -help"
      * For TTY output, use the option "-windows=no"
      * Command-line: /export/home/pere/gnu/bin/scanimage -T
      * Options settings: -purify \
        -purify-home=/store/store/palantir/purify/ver-1.7/opt/purify/releases/purify-5.3-solaris2@sun4os58
      * License successfully checked out.
      * Command-line: /export/home/pere/gnu/bin/scanimage -T

    **** Purify instrumented /export/home/pere/gnu/bin/scanimage (pid 4903) ****
    UMR: Uninitialized memory read (2 times):
      * This is occurring while in:
            sane_umax_init [umax.c:5337]
            init [dll.c:400]
            sane_dll_get_devices [dll.c:661]
            sane_get_devices [dll-s.c:15]
            main [scanimage.c:1468]
            _start [crt1.o]
      * Reading 1 byte from 0xffbeebcf on the stack.
      * Address 0xffbeebcf is 1041 bytes below frame pointer in function sane_umax_init.

    **** Purify instrumented /export/home/pere/gnu/bin/scanimage (pid 4903) ****
    UMR: Uninitialized memory read (3 times):
      * This is occurring while in:
            bin_w_word [sanei_codec_bin.c:98]
            sanei_w_word [sanei_wire.c:215]
            sanei_w_array [sanei_wire.c:161]
            w_option_value [sanei_net.c:125]
            sanei_w_control_option_req [sanei_net.c:148]
            sanei_w_call [sanei_wire.c:405]
      * Reading 4 bytes from 0xffbef12c on the stack.

    **** Purify instrumented /export/home/pere/gnu/bin/scanimage (pid 4903) ****
    Current file descriptors in use: 7
    FIU: file descriptor 0: <stdin>
    FIU: file descriptor 1: <stdout>
    FIU: file descriptor 2: <stderr>
    FIU: file descriptor 3: "/export/home/pere/gnu/etc/sane.d/net.conf", O_RDONLY
       * File info: srw-rw-rw- 0 root root 0 May 10 23:38
       * This file descriptor was allocated from:
            __open [libc.so.1]
            _open [libc.so.1]
            _endopen [libc.so.1]
            fopen [libc.so.1]
            sanei_config_open [sanei_config.c:122]
            sane_net_init [net.c:356]
    FIU: file descriptor 4: "/etc/.name_service_door", O_RDONLY
       * File info: ?r--r--r-- 1 root root 0 Apr 26 2000
       * This file descriptor was allocated from:
            __open64 [libc.so.1]
            _open64 [libc.so.1]
            _nsc_trydoorcall [libc.so.1]
            _door_gethostbyname_r [gethostby_door.c]
            _get_hostserv_inetnetdir_byname [netdir_inet.c]
            gethostbyname_r [gethostbyname_r.c]
    FIU: file descriptor 26: <reserved for Purify internal use>
    FIU: file descriptor 27: <reserved for Purify internal use>

    **** Purify instrumented /export/home/pere/gnu/bin/scanimage (pid 4903) ****
    Purify: Searching for all memory leaks...

    Memory leaked: 3596 bytes (37.5%); potentially leaked: 0 bytes (0%)

    MLK: 1263 bytes leaked in 29 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_option_descriptor [sanei_wire.c:325]
            sanei_w_ptr [sanei_wire.c:194]
      * Block of 156 bytes at 0x26f9d8
      * Block of 89 bytes at 0x280c80
      * Block of 78 bytes at 0x27db68
      * Block of 74 bytes at 0x270280
      * Block of 69 bytes at 0x26f7f8
      * Block of 67 bytes at 0x280ec8
      * Block of 64 bytes at 0x26f480
      * Block of 60 bytes at 0x27e080
      * Block of 53 bytes at 0x281098
      * Block of 49 bytes at 0x270708
      * Block of 47 bytes at 0x26f030
      * Block of 45 bytes at 0x26f250
      * Block of 42 bytes (2 times); last block at 0x2813e0
      * Block of 38 bytes (2 times); last block at 0x2820c0
      * Block of 34 bytes (2 times); last block at 0x281c88
      * Block of 32 bytes at 0x27ded0
      * Block of 31 bytes at 0x26fc68
      * Block of 27 bytes (2 times); last block at 0x2822e8
      * Block of 25 bytes at 0x2825b0
      * Block of 21 bytes at 0x270068
      * Block of 17 bytes at 0x2815a8
      * Block of 1 byte (4 times); last block at 0x2818e8

    MLK: 1044 bytes leaked in 29 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_ptr [sanei_wire.c:186]
            sanei_w_option_descriptor_ptr [sanei_wire.c:363]
            sanei_w_array [sanei_wire.c:161]
            sanei_w_option_descriptor_array [sanei_net.c:131]
            sanei_w_call [sanei_wire.c:410]
      * Block of 36 bytes (29 times); last block at 0x282468

    MLK: 393 bytes leaked in 29 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_option_descriptor [sanei_wire.c:324]
            sanei_w_ptr [sanei_wire.c:194]
      * Block of 23 bytes at 0x26f788
      * Block of 18 bytes (3 times); last block at 0x282280
      * Block of 17 bytes (2 times); last block at 0x270218
      * Block of 16 bytes (4 times); last block at 0x282548
      * Block of 15 bytes (3 times); last block at 0x282058
      * Block of 13 bytes (3 times); last block at 0x280e60
      * Block of 12 bytes (2 times); last block at 0x281038
      * Block of 11 bytes (4 times); last block at 0x281c28
      * Block of 10 bytes (4 times); last block at 0x2816e8
      * Block of 9 bytes (2 times); last block at 0x281888
      * Block of 8 bytes at 0x27de70

    MLK: 242 bytes leaked in 27 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_option_descriptor [sanei_wire.c:323]
            sanei_w_ptr [sanei_wire.c:194]
      * Block of 18 bytes at 0x282218
      * Block of 17 bytes at 0x2701b0
      * Block of 16 bytes (2 times); last block at 0x2824e0
      * Block of 15 bytes at 0x26f3b0
      * Block of 13 bytes at 0x26f720
      * Block of 12 bytes (4 times); last block at 0x281318
      * Block of 11 bytes (3 times); last block at 0x27e370
      * Block of 10 bytes at 0x281688
      * Block of 9 bytes at 0x26f190
      * Block of 8 bytes at 0x27de10
      * Block of 7 bytes at 0x280fd8
      * Block of 6 bytes (2 times); last block at 0x270a58
      * Block of 5 bytes (3 times); last block at 0x281bc8
      * Block of 1 byte (5 times); last block at 0x281830

    MLK: 172 bytes leaked in 28 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_array [sanei_wire.c:161]
            sanei_w_option_descriptor [sanei_wire.c:354]
            sanei_w_ptr [sanei_wire.c:194]
      * Block of 11 bytes (2 times); last block at 0x270980
      * Block of 10 bytes (2 times); last block at 0x27e238
      * Block of 9 bytes (2 times); last block at 0x27e1d8
      * Block of 8 bytes at 0x27e178
      * Block of 7 bytes (4 times); last block at 0x281190
      * Block of 6 bytes (3 times); last block at 0x27e298
      * Block of 5 bytes (6 times); last block at 0x270920
      * Block of 4 bytes (5 times); last block at 0x282680
      * Block of 3 bytes (2 times); last block at 0x2826d8
      * Block of 2 bytes at 0x280d30

    MLK: 144 bytes leaked in 8 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            sanei_w_option_descriptor [sanei_wire.c:354]
            sanei_w_ptr [sanei_wire.c:194]
            sanei_w_option_descriptor_ptr [sanei_wire.c:363]
            sanei_w_array [sanei_wire.c:161]
      * Block of 28 bytes at 0x270320
      * Block of 24 bytes (2 times); last block at 0x270790
      * Block of 20 bytes at 0x27e110
      * Block of 16 bytes at 0x281128
      * Block of 12 bytes (2 times); last block at 0x282620
      * Block of 8 bytes at 0x270b18

    MLK: 116 bytes leaked at 0x27da38
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            sanei_w_option_descriptor_array [sanei_net.c:131]
            sanei_w_call [sanei_wire.c:410]
            fetch_options [net.c:254]
            sane_net_control_option [net.c:720]

    MLK: 84 bytes leaked in 7 blocks
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_ptr [sanei_wire.c:186]
            sanei_w_option_descriptor [sanei_wire.c:337]
            sanei_w_ptr [sanei_wire.c:194]
            sanei_w_option_descriptor_ptr [sanei_wire.c:363]
            sanei_w_array [sanei_wire.c:161]
      * Block of 12 bytes (7 times); last block at 0x281d00

    MLK: 20 bytes leaked at 0x271f50
      * This memory was allocated from:
            malloc [rtlib.o]
            attach [as6e.c:841]
            sane_as6e_init [as6e.c:627]
            init [dll.c:400]
            sane_dll_get_devices [dll.c:661]
            sane_get_devices [dll-s.c:15]

    MLK: 16 bytes leaked at 0x26c2b0
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_ptr [sanei_wire.c:186]
            sanei_w_device_ptr [sanei_wire.c:314]
            sanei_w_array [sanei_wire.c:161]
            sanei_w_get_devices_reply [sanei_net.c:79]
            sanei_w_call [sanei_wire.c:410]

    MLK: 16 bytes leaked at 0x272de0
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_device [sanei_wire.c:306]
            sanei_w_ptr [sanei_wire.c:194]

    MLK: 16 bytes leaked at 0x274f70
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_device [sanei_wire.c:308]
            sanei_w_ptr [sanei_wire.c:194]

    MLK: 16 bytes leaked at 0x275070
      * This memory was allocated from:
            malloc [rtlib.o]
            strdup [libc.so.1]
            sane_net_get_devices [net.c:520]
            sane_dll_get_devices [dll.c:664]
            sane_get_devices [dll-s.c:15]
            main [scanimage.c:1468]

    MLK: 16 bytes leaked at 0x27d5e0
      * This memory was allocated from:
            malloc [rtlib.o]
            strdup [libc.so.1]
            sane_net_get_devices [net.c:522]
            sane_dll_get_devices [dll.c:664]
            sane_get_devices [dll-s.c:15]
            main [scanimage.c:1468]

    MLK: 12 bytes leaked at 0x270c68
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_device [sanei_wire.c:305]
            sanei_w_ptr [sanei_wire.c:194]

    MLK: 11 bytes leaked at 0x2756b8
      * This memory was allocated from:
            malloc [rtlib.o]
            strdup [libc.so.1]
            attach [as6e.c:845]
            sane_as6e_init [as6e.c:627]
            init [dll.c:400]
            sane_dll_get_devices [dll.c:661]

    MLK: 7 bytes leaked at 0x274f10
      * This memory was allocated from:
            malloc [rtlib.o]
            sanei_w_array [sanei_wire.c:146]
            bin_w_string [sanei_codec_bin.c:84]
            sanei_w_string [sanei_wire.c:221]
            sanei_w_device [sanei_wire.c:307]
            sanei_w_ptr [sanei_wire.c:194]

    MLK: 7 bytes leaked at 0x27d580
      * This memory was allocated from:
            malloc [rtlib.o]
            strdup [libc.so.1]
            sane_net_get_devices [net.c:521]
            sane_dll_get_devices [dll.c:664]
            sane_get_devices [dll-s.c:15]
            main [scanimage.c:1468]

    MLK: 1 byte leaked at 0x27a248
      * This memory was allocated from:
            malloc [rtlib.o]
            strndup [strndup.c:33]
            sanei_config_get_string [sanei_config.c:172]
            sane_avision_init [avision.c:1393]
            init [dll.c:400]
            sane_dll_get_devices [dll.c:661]

    Purify Heap Analysis (combining suppressed and unsuppressed blocks)
                             Blocks Bytes
                  Leaked 169 3596
      Potentially Leaked 0 0
                  In-Use 187 5990
      ----------------------------------------
         Total Allocated 356 9586

    **** Purify instrumented /export/home/pere/gnu/bin/scanimage (pid 4903) ****
      * Program exited with status code 0.
      * 2 access errors, 5 total occurrences.
      * 3596 bytes leaked.
      * 0 bytes potentially leaked.
      * Basic memory usage (including Purify overhead):
        2183556 code
        206292 data/bss
        262144 heap (peak use)
        2608 stack
      * Shared library memory usage (including Purify overhead):
        1456 libpure_solaris2_init.so.1 (shared code)
        252 libpure_solaris2_init.so.1 (private data)
        57186 libsocket.so.1_pure_p3_c0_530_58_32_70260 (shared code)
        4680 libsocket.so.1_pure_p3_c0_530_58_32_70260 (private data)
        952598 libnsl.so.1_pure_p3_c0_530_58_32_883500 (shared code)
        134416 libnsl.so.1_pure_p3_c0_530_58_32_883500 (private data)
        128338 libm.so.1_pure_p3_c0_530_58_32_102424 (shared code)
        1188 libm.so.1_pure_p3_c0_530_58_32_102424 (private data)
        254590 libjpeg.so.62_pure_p3_c0_530_58_32_146784 (shared code)
        2476 libjpeg.so.62_pure_p3_c0_530_58_32_146784 (private data)
        2092 libdl.so.1_pure_p3_c0_530_58_32_4308 (shared code)
        4 libdl.so.1_pure_p3_c0_530_58_32_4308 (private data)
        1067444 libc.so.1_pure_p3_c0_530_58_32_1113260 (shared code)
        31140 libc.so.1_pure_p3_c0_530_58_32_1113260 (private data)
        13248 libinternal_stubs.so.1 (shared code)
        896 libinternal_stubs.so.1 (private data)
        16440 libmp.so.2_pure_p3_c0_530_58_32_24968 (shared code)
        868 libmp.so.2_pure_p3_c0_530_58_32_24968 (private data)
        14108 libc_psr.so.1_pure_p3_c0_530_58_32 (shared code)
        0 libc_psr.so.1_pure_p3_c0_530_58_32 (private data)
        28445 nss_files.so.1_pure_p3_c0_530_58_32_43576 (shared code)
        1652 nss_files.so.1_pure_p3_c0_530_58_32_43576 (private data)

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Thu May 10 2001 - 15:30:44 PDT