[ 
https://issues.apache.org/jira/browse/HADOOP-10705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenwu Peng updated HADOOP-10705:
--------------------------------

    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)


  was:
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 
==10462== Memcheck, a memory error detector
==10462== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==10462== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==10462== Command: ./namenode-rpc-unit
==10462== 
==10462== HEAP SUMMARY:
==10462==     in use at exit: 428 bytes in 12 blocks
==10462==   total heap usage: 91 allocs, 79 frees, 16,056 bytes allocated
==10462== 
==10462== 16 bytes in 1 blocks are indirectly lost in loss record 1 of 12
==10462==    at 0x4C2B6CD: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10462==    by 0x557EB99: __nss_lookup_function (nsswitch.c:456)
==10462==    by 0x604863E: ???
==10462==    by 0x553744C: getpwuid_r@@GLIBC_2.2.5 (getXXbyYY_r.c:256)
==10462==    by 0x42681E: geteuid_string (user.c:67)
==10462==    by 0x425ABD: main (namenode-rpc-unit.c:71)


> Fix namenode-rpc-unit  warning reported by memory leak check tool(valgrind)
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-10705
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10705
>             Project: Hadoop Common
>          Issue Type: Sub-task
>    Affects Versions: HADOOP-10388
>            Reporter: Wenwu Peng
>         Attachments: vargrind.log
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to