About CRYPTO_mem_ctrl()

Amjad, Asad Ali asad.amjad at siemens.com
Tue Jun 28 22:48:29 UTC 2022


Hi,
Consider the following piece of code:

BIO *bio_err = NULL;
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
CRYPTO_mem_leaks(bio_err);
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF);

When run, it prints the following:
threads_none.c:43: OpenSSL internal error: Assertion failed: *(unsigned int *)lock == 1

Am I using the CRYPTO_mem_ctrl() correctly? If not, then please guide me what's the correct usage.


Regards,
Asad Ali Amjad

Siemens Industry Software (Private) Limited
Embedded Platform Solutions
Nucleus(tm) Real-Time Operating System
6th Floor, Ali Tower, M. M. Alam Road, Gulberg III,
Lahore, Pakistan. 54660.
Tel.: +92 (42) 36099239<tel:+924236099239>
Mobile: +92 (321) 4202636<tel:+923214202636>
Email : asad.amjad at siemens.com<mailto:asad.amjad at siemens.com>
www.sw.siemens.com<http://www.sw.siemens.com/>
www.siemens.com<http://www.siemens.com/>
[cid:image001.gif at 01D88B6B.15A29E10]
P Please do not print this e-mail unless necessary.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20220628/9748f51b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2730 bytes
Desc: image001.gif
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20220628/9748f51b/attachment.gif>


More information about the openssl-users mailing list