gpt4 book ai didi

c - OpenSSL ASN1_item_ex_d2i 内存泄漏

转载 作者:太空宇宙 更新时间:2023-11-04 04:46:50 25 4
gpt4 key购买 nike

我有一个 openSSL lib 问题,我有内存泄漏:

==9904== 
==9904== HEAP SUMMARY:
==9904== in use at exit: 163,350 bytes in 2,867 blocks
==9904== total heap usage: 5,104 allocs, 2,237 frees, 1,162,949 bytes allocated
==9904==
==9904== 4,808 (184 direct, 4,624 indirect) bytes in 1 blocks are definitely lost in loss record 279 of 284
==9904== at 0x4C28BED: malloc (vg_replace_malloc.c:263)
==9904== by 0x5106DFF: CRYPTO_malloc (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==9904== by 0x51A27EB: ??? (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==9904== by 0x51A517F: ASN1_item_ex_d2i (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==9904== by 0x51A5BF3: ASN1_item_d2i (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==9904== by 0x4E4789C: ??? (in /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0)
==9904== by 0x4E48ED7: ??? (in /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0)
==9904== by 0x4026BD: main (main.c:68)
==9904==
==9904== LEAK SUMMARY:
==9904== definitely lost: 184 bytes in 1 blocks
==9904== indirectly lost: 4,624 bytes in 103 blocks
==9904== possibly lost: 0 bytes in 0 blocks
==9904== still reachable: 158,542 bytes in 2,763 blocks
==9904== suppressed: 0 bytes in 0 blocks
==9904== Reachable blocks (those to which a pointer was found) are not shown.
==9904== To see them, rerun with: --leak-check=full --show-reachable=yes
==9904==
==9904== For counts of detected and suppressed errors, rerun with: -v
==9904== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 8 from 6)

你知道这个问题吗?你能帮帮我吗?

罗曼监督

最佳答案

您必须使用调试选项(即 ./config -d ...)重新编译 libssl.so.1.0.0 库才能追踪内存泄漏源

关于c - OpenSSL ASN1_item_ex_d2i 内存泄漏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20010711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com