Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10388 Pure native hadoop client
  3. HADOOP-10705

Fix namenode-rpc-unit warning reported by memory leak check tool(valgrind)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • HADOOP-10388
    • None
    • None
    • None

    Description

      Rum valgrind to check memory leak for namenode-rpc.unit.
      There are many warning, need to fix it.

      valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./namenode-rpc-unit
      ==24085==
      ==24085== HEAP SUMMARY:
      ==24085== in use at exit: 1,216 bytes in 20 blocks
      ==24085== total heap usage: 89 allocs, 69 frees, 12,222 bytes allocated
      ==24085==
      ==24085== 128 bytes in 1 blocks are definitely lost in loss record 18 of 20
      ==24085== at 0x4A069EE: malloc (vg_replace_malloc.c:270)
      ==24085== by 0x4A06B62: realloc (vg_replace_malloc.c:662)
      ==24085== by 0x4C2BD6A: uv__io_start (core.c:679)
      ==24085== by 0x4C31868: uv_signal_init (signal.c:225)
      ==24085== by 0x4C3000E: uv__loop_init (loop.c:136)
      ==24085== by 0x4275EF: hrpc_reactor_create (reactor.c:183)
      ==24085== by 0x426829: hrpc_messenger_create (messenger.c:83)
      ==24085== by 0x42590F: main (namenode-rpc-unit.c:115)
      ==24085==
      ==24085== LEAK SUMMARY:
      ==24085== definitely lost: 128 bytes in 1 blocks
      ==24085== indirectly lost: 0 bytes in 0 blocks
      ==24085== possibly lost: 0 bytes in 0 blocks
      ==24085== still reachable: 1,088 bytes in 19 blocks
      ==24085== suppressed: 0 bytes in 0 blocks
      ==24085== Reachable blocks (those to which a pointer was found) are not shown.
      ==24085== To see them, rerun with: --leak-check=full --show-reachable=yes
      ==24085==
      ==24085== For counts of detected and suppressed errors, rerun with: -v
      ==24085== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 6 from 6)

      Attachments

        1. vargrind.log
          7 kB
          Wenwu Peng

        Issue Links

          Activity

            People

              gujilangzi Wenwu Peng
              gujilangzi Wenwu Peng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: