Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chainmaker valgrind check #1330

Open
Cavalierliu opened this issue Dec 15, 2022 · 0 comments
Open

chainmaker valgrind check #1330

Cavalierliu opened this issue Dec 15, 2022 · 0 comments
Assignees
Labels
bug Something isn't working Priority/P0 Top priority. Features that will be implemented in the latest version. Severity/critical Critical features.

Comments

@Cavalierliu
Copy link
Contributor

==510686== HEAP SUMMARY:
==510686== in use at exit: 113,204 bytes in 1,538 blocks
==510686== total heap usage: 44,287 allocs, 42,749 frees, 4,622,047 bytes allocated
==510686==
==510686== 1,648 (72 direct, 1,576 indirect) bytes in 1 blocks are definitely lost in loss record 276 of 292
==510686== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==510686== by 0x1172C6: protobuf_c_message_unpack (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x113AED: BoatChainmakerTxRequest.constprop.0 (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x114219: BoatChainmakerContractInvoke (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x110C0E: main (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686==
==510686== 2,152 (80 direct, 2,072 indirect) bytes in 1 blocks are definitely lost in loss record 281 of 292
==510686== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==510686== by 0x1172C6: protobuf_c_message_unpack (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x1142A1: BoatChainmakerContractInvoke (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x110C0E: main (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686==
==510686== 21,884 (1,616 direct, 20,268 indirect) bytes in 1 blocks are definitely lost in loss record 290 of 292
==510686== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==510686== by 0x4B6C09D: CRYPTO_zalloc (in /usr/lib/x86_64-linux-gnu/libcrypto.so.3)
==510686== by 0x494AF24: SSL_CTX_new_ex (in /usr/lib/x86_64-linux-gnu/libssl.so.3)
==510686== by 0x128B5B: BoatTlsInit (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x1185B7: http2SubmitRequest (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x113ABF: BoatChainmakerTxRequest.constprop.0 (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x114219: BoatChainmakerContractInvoke (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x110C0E: main (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686==
==510686== 21,884 (1,616 direct, 20,268 indirect) bytes in 1 blocks are definitely lost in loss record 291 of 292
==510686== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==510686== by 0x4B6C09D: CRYPTO_zalloc (in /usr/lib/x86_64-linux-gnu/libcrypto.so.3)
==510686== by 0x494AF24: SSL_CTX_new_ex (in /usr/lib/x86_64-linux-gnu/libssl.so.3)
==510686== by 0x128B5B: BoatTlsInit (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x1185B7: http2SubmitRequest (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x113ABF: BoatChainmakerTxRequest.constprop.0 (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x1145C1: BoatChainmakerContractQuery (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x110CD5: main (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686==
==510686== 28,718 (1,616 direct, 27,102 indirect) bytes in 1 blocks are definitely lost in loss record 292 of 292
==510686== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==510686== by 0x4B6C09D: CRYPTO_zalloc (in /usr/lib/x86_64-linux-gnu/libcrypto.so.3)
==510686== by 0x494AF24: SSL_CTX_new_ex (in /usr/lib/x86_64-linux-gnu/libssl.so.3)
==510686== by 0x128B5B: BoatTlsInit (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x1185B7: http2SubmitRequest (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x113ABF: BoatChainmakerTxRequest.constprop.0 (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x1140B3: BoatChainmakerContractInvoke (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686== by 0x110C0E: main (in /home/liu/1215_chainmaker/BoAT-X-Framework/build/demo/demo_chainmaker/demo_chainmaker_onetime)
==510686==
==510686== LEAK SUMMARY:
==510686== definitely lost: 5,000 bytes in 5 blocks
==510686== indirectly lost: 71,286 bytes in 1,495 blocks
==510686== possibly lost: 0 bytes in 0 blocks
==510686== still reachable: 36,918 bytes in 38 blocks
==510686== suppressed: 0 bytes in 0 blocks
==510686== Reachable blocks (those to which a pointer was found) are not shown.
==510686== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==510686==
==510686== For lists of detected and suppressed errors, rerun with: -s
==510686== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)

@Cavalierliu Cavalierliu added bug Something isn't working Severity/critical Critical features. Priority/P0 Top priority. Features that will be implemented in the latest version. labels Dec 15, 2022
@Cavalierliu Cavalierliu self-assigned this Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority/P0 Top priority. Features that will be implemented in the latest version. Severity/critical Critical features.
Projects
None yet
Development

No branches or pull requests

1 participant