OpenSSL 1.1.1n int fd = my_socket; SSL *ssl = SSLnew (ctx); SSLsetfd (ssl, fd);…
- User
OpenSSL 1.1.1n int fd = my_socket; SSL *ssl = SSL_new (ctx); SSL_set_fd (ssl, fd); SSL_accept (ssl); Почему ошибка ==5779== 56 bytes in 1 blocks are still reachable in loss record 493 of 618 ==5779== at 0x483577F: malloc (vg_replace_malloc.c:299) ==5779== by 0x4A708D8: CRYPTO_zalloc (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1) ==5779== by 0x4AD6396: CRYPTO_THREAD_lock_new (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1) ==5779== by 0x4A6C3D4: ??? (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1) ==5779== by 0x4BDC996: __pthread_once_slow (pthread_once.c:116) ==5779== by 0x4AD6468: CRYPTO_THREAD_run_once (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1) ==5779== by 0x4A6C665: OPENSSL_init_crypto (in /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1) ==5779== by 0x4883D80: OPENSSL_init_ssl (in /usr/lib/x86_64-linux-gnu/libssl.so.1.1) ==5779== by 0x10EAB5: ssl_ctx_int (https.h:9)
- Assistant
- User
malloc (vg_replace_malloc.c:299) ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6) ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6) ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6) sqlite3_vmprintf (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6) sqlite3_mprintf (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
- Assistant
The lines you're showing are part of a stack trace provided by Valgrind. It appears that Valgrind is reporting memory allocations possibly related to SQLite based on the inclusion of . The and functions are convenience functions provided by SQLite for formatted string creation, where the resulting string is allocated on the heap.