Skip to content

Conversation

@tenderlove
Copy link
Member

extconf.rb generates the header file, so we should not check it in.

zzak pushed a commit that referenced this pull request Jul 22, 2015
extconf.h should not be checked in
@zzak zzak merged commit ac529a2 into ruby:master Jul 22, 2015
peterzhu2118 added a commit that referenced this pull request Nov 15, 2025
OpenSSL::Provider does not automatically unload at shutdown, causing it
to be reported as a memory leak by memory leak checkers when using
RUBY_FREE_AT_EXIT. For example, LSAN reports many memory leaks that looks
like this:

    #15 0x78dd17e2dfb4  (/lib/x86_64-linux-gnu/libcrypto.so.3+0x22dfb4)
    #16 0x78dd17e2b195 in OSSL_PROVIDER_try_load (/lib/x86_64-linux-gnu/libcrypto.so.3+0x22b195)
    #17 0x78dd35ba8751 in ossl_provider_s_load ext/openssl/ossl_provider.c:60:16

This commit adds a hook at shutdown to unload all the OpenSSL providers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants