OpenSSL error when calling SSL_new () Library function

I am working with the OpenSSL library. When I execute the project, I am facing a crashing issue from this line of source code: m_pSslFd = SSL_new (m_pCtx);

The declaration and initialization part is correct. Execution works great the first time this library method is called. But it crashes when this library method is called second. I give you a gdb backtrace for this failure

(gdb) bt
#0  0x0000003dee876285 in malloc_consolidate () from /lib64/libc.so.6
#1  0x0000003dee879415 in _int_malloc () from /lib64/libc.so.6
#2  0x0000003dee87a9a1 in malloc () from /lib64/libc.so.6
#3  0x00000032c1c6abee in CRYPTO_malloc () from /usr/lib64/libcrypto.so.10
#4  0x00000032c202986a in ssl3_new () from /usr/lib64/libssl.so.10
#5  0x00000032c203bfae in dtls1_new () from /usr/lib64/libssl.so.10
#6  0x00000032c204534c in SSL_new () from /usr/lib64/libssl.so.10
#7  0x00007ffff7882bf7 in DTLSCore::DoDTLSClientNegotiation (this=0x858940, iFd=@0x7fff635fd3bc, speer=...)at src/afg/DTLSCore.cpp:236

      

Any suggestion would be helpful to me. Thank.

+3
c ++ openssl


source to share


No one has answered this question yet

Check out similar questions:

1146
How to create a self-signed certificate with OpenSSL
1138
Why do we need virtual functions in C ++?
343
Does using OpenSSL mean "not being able to write" random state "?
3
Undefined link for TLSv1_1_client_method, although "nm" says otherwise
2
Openssl X509_set_pubkey () Error in Android NDK
2
How do I compile Python 3.6 using custom Fips Openssl?
1
Fix bug due to SIGILL in OpenSSL
1
OpenSSL and Helgrind Themes
1
PHP exec return openssl error
1
Applications crash when loading C ++ jni library dynamically linked to openss-1.0.1h



All Articles
Loading...
X
Show
Funny
Dev
Pics