"make valgrind-test" fails

Issue #12 resolved
Kota Tsuyuzaki created an issue

"make valgrind-test" fails at running test/alg_sig_test with reporting 3 blocks memory leak.

Though not sure, that seems not to liberausurecode but jerasure because it occurred when calling a jerasure (or perhaps gf-complete) function named "galois_single_multiply".

@kmgreen2 do you have any thought for this?

Leak summary from valgrind is as follows:

==24326== Memcheck, a memory error detector  
==24326== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==24326== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==24326== Command: ./test/alg_sig_test
==24326==
Tests pass!!!
==24326==
==24326== FILE DESCRIPTORS: 3 open at exit.  
==24326== Open file descriptor 2: /dev/pts/38
==24326==    <inherited from parent>
==24326==
==24326== Open file descriptor 1: /dev/pts/38
==24326==    <inherited from parent>
==24326==
==24326== Open file descriptor 0: /dev/pts/38
==24326==    <inherited from parent>
==24326==
==24326==
==24326== HEAP SUMMARY:
==24326==     in use at exit: 1,188,360 bytes in 6 blocks
==24326==   total heap usage: 140 allocs, 134 frees, 3,762,767 bytes allocated
==24326==
==24326== 139,432 (48 direct, 139,384 indirect) bytes in 1 blocks are definitely lost in loss record 
2 of 6
==24326==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24326==    by 0x5803389: ???
==24326==    by 0x5803552: ???
==24326==    by 0x4012FD: init_alg_sig (/home/tsuyuzaki/git_repos/liberasurecode/src/utils/chksum/alg
_sig.c:106)
==24326==    by 0x400B87: main (/home/tsuyuzaki/git_repos/liberasurecode/test/utils/chksum/test_alg_s
ig.c:93)
==24326==
==24326== 524,464 (48 direct, 524,416 indirect) bytes in 1 blocks are definitely lost in loss record 
5 of 6
==24326==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24326==    by 0x5803389: ???
==24326==    by 0x5803552: ???
==24326==    by 0x40119A: init_alg_sig (/home/tsuyuzaki/git_repos/liberasurecode/src/utils/chksum/alg
_sig.c:169)
==24326==    by 0x40086A: main (/home/tsuyuzaki/git_repos/liberasurecode/test/utils/chksum/test_alg_sig.c:195)
==24326==
==24326== 524,464 (48 direct, 524,416 indirect) bytes in 1 blocks are definitely lost in loss record 6 of 6
==24326==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24326==    by 0x5803389: ???
==24326==    by 0x5803552: ???
==24326==    by 0x40119A: init_alg_sig (/home/tsuyuzaki/git_repos/liberasurecode/src/utils/chksum/alg_sig.c:169)
==24326==    by 0x4009EE: main (/home/tsuyuzaki/git_repos/liberasurecode/test/utils/chksum/test_alg_sig.c:144)
==24326==
==24326== LEAK SUMMARY:
==24326==    definitely lost: 144 bytes in 3 blocks
==24326==    indirectly lost: 1,188,216 bytes in 3 blocks
==24326==      possibly lost: 0 bytes in 0 blocks
==24326==    still reachable: 0 bytes in 0 blocks
==24326==         suppressed: 0 bytes in 0 blocks
==24326==
==24326== For counts of detected and suppressed errors, rerun with: -v
==24326== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
make: *** [valgrind-test] Error 1

Comments (3)

  1. Log in to comment