Openssl freeing BIO provokes traps in some cases

I wrote a code with openssl library.
It works but in some cases when the "BIO_free_all" is called, it generates a kernel trap with a "general protection".
see the log below:

Wed May 29 12:21:06 2019 kernel: [ 105.055844] traps: se-encrypt[7308] general protection ip:7f2140de6e16 sp:7ffea8635f48 error:0 in[7f2140dc5000+6a000]

I got the same kind of issue when 'EVP_CIPHER_CTX_free' is invoked too.

Does someone as an idea ?


I solved my problem.
Can be closed.
It was data corrupt due to bad memory allocation in my application.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.