• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    C/C++內存問題檢查利器—Purify文件描述符問題

    發布: 2009-4-20 17:29 | 作者: 陳皓 | 來源: 測試時代采編 | 查看: 112次 | 進入軟件測試論壇討論

    領測軟件測試網

     

    MILY: 宋體">下面,是一個Purify生成的ASCII文本文件的樣子:

    > ./hello

    ****  Purify instrumented hello (pid 25698 at Wed Dec 10 22:29:33 2003)

      * Purify 2003.06.00 Solaris 2 (32-bit) Copyright (C) 1992-2002 Rational Software Corp.  All rights reserved. 

      * For contact information type: "purify -help"

      * Options settings: -follow-child-processes=yes -purify -windows=no \

        -purify-home=/usr/rational/releases/purify.sol.2003.06.00 \

        -gcc3_path=/usr/local/bin/gcc \

        -cache-dir=/usr/rational/releases/purify.sol.2003.06.00/cache \

        -demangle_program=/usr/local/bin/c++filt

      * License successfully checked out.

      * Command-line: ./hello

     

    ****  Purify instrumented hello (pid 25698)  ****

    ABR: Array bounds read:

      * This is occurring while in:

            strlen         [rtlib.o]

            _doprnt        [libc.so.1]

            printf         [libc.so.1]

            main           [hello.c:11]

            _start         [crt1.o]

      * Reading 13 bytes from 0x8ea08 in the heap (1 byte at 0x8ea14 illegal).

      * Address 0x8ea08 is at the beginning of a malloc'd block of 12 bytes.

      * This block was allocated from:

            malloc         [rtlib.o]

            main           [hello.c:8]

            _start         [crt1.o]

    Hello, World

     

    ****  Purify instrumented hello (pid 25698)  ****

    Current file descriptors in use: 5

    FIU: file descriptor 0: <stdin>

    FIU: file descriptor 1: <stdout>

    FIU: file descriptor 2: <stderr>

    FIU: file descriptor 26: <reserved for Purify internal use>

    FIU: file descriptor 27: <reserved for Purify internal use>

     

    ****  Purify instrumented hello (pid 25698)  ****

    Purify: Searching for all memory leaks...

     

    Memory leaked: 12 bytes (100%); potentially leaked: 0 bytes (0%)

     

    MLK: 12 bytes leaked at 0x8ea08

      * This memory was allocated from:

            malloc         [rtlib.o]

            main           [hello.c:8]

            _start         [crt1.o]

     

    Purify Heap Analysis (combining suppressed and unsuppressed blocks)

                             Blocks        Bytes

                  Leaked          1           12

      Potentially Leaked          0            0

                  In-Use          0            0

      ----------------------------------------

         Total Allocated          1           12

     

    ****  Purify instrumented hello (pid 25698)  ****

      * Program exited with status code 13.

      * 1 access error, 1 total occurrence.

      * 12 bytes leaked.

      * 0 bytes potentially leaked.

      * Basic memory usage (including Purify overhead):

        351348 code

        101724 data/bss

        8192 heap (peak use)

        1272 stack

      * Shared library memory usage (including Purify overhead):

        992 libpure_solaris2_init.so.1 (shared code)

        280 libpure_solaris2_init.so.1 (private data)

        1079516 libc.so.1_pure_p3_c0_111202132_58_32_1158500S (shared code)

        31404 libc.so.1_pure_p3_c0_111202132_58_32_1158500S (private data)

        2324 libdl.so.1_pure_p3_c0_111202132_58_32_4624S (shared code)

        4 libdl.so.1_pure_p3_c0_111202132_58_32_4624S (private data)

        14048 libinternal_stubs.so.1 (shared code)

        940 libinternal_stubs.so.1 (private data)

     

     

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/

    54/5<12345>

    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>