Skip to content

Instantly share code, notes, and snippets.

@l4l
Created March 4, 2017 11:18
Show Gist options
  • Save l4l/e099c70903c36143c0ff78907bbe61a8 to your computer and use it in GitHub Desktop.
Save l4l/e099c70903c36143c0ff78907bbe61a8 to your computer and use it in GitHub Desktop.
==17735== Memcheck, a memory error detector
==17735== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==17735== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==17735== Command: test_bin/peer_service_with_json_test
==17735==
Running main() from gtest_main.cc
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from peer_service_with_json_test
[ RUN ] peer_service_with_json_test.initialize_peer_test
1488625847 DEBUG [config] load json is {
"me":{
"ip":"172.17.0.6",
"name":"samari",
"publicKey":"Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=",
"privateKey":"aGIuSZRhnGfFyeoKNm/NbTylnAvRfMu3KumOEfyT2HPf36jSF22m2JXWrdCmKiDoshVqjFtZPX3WXaNuo9L8WA=="
},
"group":[
{
"ip":"172.17.0.3",
"name":"mizuki",
"publicKey":"jDQTiJ1dnTSdGH+yuOaPPZIepUj1Xt3hYOvLQTME3V0="
},
{
"ip":"172.17.0.4",
"name":"natori",
"publicKey":"Q5PaQEBPQLALfzYmZyz9P4LmCNfgM5MdN1fOuesw3HY="
},
{
"ip":"172.17.0.5",
"name":"kabohara",
"publicKey":"f5MWZUZK9Ga8XywDia68pH1HLY/Ts0TWBHsxiFDR0ig="
},
{
"ip":"172.17.0.6",
"name":"samari",
"publicKey":"Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU="
}
]
}
172.17.0.3
jDQTiJ1dnTSdGH+yuOaPPZIepUj1Xt3hYOvLQTME3V0=
1
172.17.0.4
Q5PaQEBPQLALfzYmZyz9P4LmCNfgM5MdN1fOuesw3HY=
1
172.17.0.5
f5MWZUZK9Ga8XywDia68pH1HLY/Ts0TWBHsxiFDR0ig=
1
172.17.0.6
Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=
1
API:: address =
API:: publicKey =
[ OK ] peer_service_with_json_test.initialize_peer_test (1338 ms)
[ RUN ] peer_service_with_json_test.add_peer_test
1488625848 WARNING [validate addPeer] DuplicationIPException : IP = ip_high
1488625848 WARNING [addPeer] DuplicationIPException : IP = ip_high
ip_high
publicKey2
1.5
172.17.0.3
jDQTiJ1dnTSdGH+yuOaPPZIepUj1Xt3hYOvLQTME3V0=
1
172.17.0.4
Q5PaQEBPQLALfzYmZyz9P4LmCNfgM5MdN1fOuesw3HY=
1
172.17.0.5
f5MWZUZK9Ga8XywDia68pH1HLY/Ts0TWBHsxiFDR0ig=
1
172.17.0.6
Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=
1
ip_low
publicKey1
0.5
[ OK ] peer_service_with_json_test.add_peer_test (65 ms)
[ RUN ] peer_service_with_json_test.update_peer_test
1488625848 WARNING [updatePeer] UnExistFindPeerException : publicKey = dummy
1488625848 WARNING [updatePeer] UnExistFindPeerException : publicKey = dummy
ip_high
publicKey2
1.5
172.17.0.3
jDQTiJ1dnTSdGH+yuOaPPZIepUj1Xt3hYOvLQTME3V0=
1
172.17.0.4
Q5PaQEBPQLALfzYmZyz9P4LmCNfgM5MdN1fOuesw3HY=
1
172.17.0.5
f5MWZUZK9Ga8XywDia68pH1HLY/Ts0TWBHsxiFDR0ig=
1
172.17.0.6
Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=
1
updated_ip
publicKey1
0.1
[ OK ] peer_service_with_json_test.update_peer_test (23 ms)
[ RUN ] peer_service_with_json_test.remove_peer_test
1488625848 WARNING [validate removePeer] UnExistFindPeerException : publicKey = publicKey1
1488625848 WARNING [removePeer] UnExistFindPeerException : publicKey = publicKey1
ip_high
publicKey2
1.5
172.17.0.3
jDQTiJ1dnTSdGH+yuOaPPZIepUj1Xt3hYOvLQTME3V0=
1
172.17.0.4
Q5PaQEBPQLALfzYmZyz9P4LmCNfgM5MdN1fOuesw3HY=
1
172.17.0.5
f5MWZUZK9Ga8XywDia68pH1HLY/Ts0TWBHsxiFDR0ig=
1
172.17.0.6
Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=
1
[ OK ] peer_service_with_json_test.remove_peer_test (15 ms)
[ RUN ] peer_service_with_json_test.leader_peer_check_test
[ OK ] peer_service_with_json_test.leader_peer_check_test (18 ms)
[----------] 5 tests from peer_service_with_json_test (1471 ms total)
[----------] Global test environment tear-down
[==========] 5 tests from 1 test case ran. (1530 ms total)
[ PASSED ] 5 tests.
==17735== Invalid free() / delete / delete[] / realloc()
==17735== at 0x4C2C20A: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17735== by 0x56CC4F: __gnu_cxx::new_allocator<grpc::ServerCompletionQueue*>::deallocate(grpc::ServerCompletionQueue**, unsigned long) (new_allocator.h:110)
==17735== by 0x56CC1F: std::allocator_traits<std::allocator<grpc::ServerCompletionQueue*> >::deallocate(std::allocator<grpc::ServerCompletionQueue*>&, grpc::ServerCompletionQueue**, unsigned long) (alloc_traits.h:442)
==17735== by 0x56CBBA: std::_Vector_base<grpc::ServerCompletionQueue*, std::allocator<grpc::ServerCompletionQueue*> >::_M_deallocate(grpc::ServerCompletionQueue**, unsigned long) (stl_vector.h:178)
==17735== by 0x56CB08: std::_Vector_base<grpc::ServerCompletionQueue*, std::allocator<grpc::ServerCompletionQueue*> >::~_Vector_base() (stl_vector.h:160)
==17735== by 0x56C4F7: std::vector<grpc::ServerCompletionQueue*, std::allocator<grpc::ServerCompletionQueue*> >::~vector() (stl_vector.h:427)
==17735== by 0x569E92: grpc::ServerBuilder::~ServerBuilder() (server_builder.h:61)
==17735== by 0x643B98F: __run_exit_handlers (in /usr/lib/libc-2.24.so)
==17735== by 0x643B9E9: exit (in /usr/lib/libc-2.24.so)
==17735== by 0x6426297: (below main) (in /usr/lib/libc-2.24.so)
==17735== Address 0x100000001 is not stack'd, malloc'd or (recently) free'd
==17735==
==17735==
==17735== HEAP SUMMARY:
==17735== in use at exit: 17,721 bytes in 297 blocks
==17735== total heap usage: 36,142 allocs, 35,846 frees, 652,284 bytes allocated
==17735==
==17735== LEAK SUMMARY:
==17735== definitely lost: 0 bytes in 0 blocks
==17735== indirectly lost: 0 bytes in 0 blocks
==17735== possibly lost: 0 bytes in 0 blocks
==17735== still reachable: 17,721 bytes in 297 blocks
==17735== suppressed: 0 bytes in 0 blocks
==17735== Rerun with --leak-check=full to see details of leaked memory
==17735==
==17735== For counts of detected and suppressed errors, rerun with: -v
==17735== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment