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


source to share





All Articles