[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67553] [ruby-trunk - Bug #10735] Memory leak in openssl ossl_pkey_sign

From: e@...
Date: 2015-01-12 19:21:26 UTC
List: ruby-core #67553
Issue #10735 has been updated by Zachary Scott.

Assignee changed from Zachary Scott to openssl
Priority changed from High to Normal

----------------------------------------
Bug #10735: Memory leak in openssl ossl_pkey_sign
https://bugs.ruby-lang.org/issues/10735#change-50968

* Author: Viktor Vasilev
* Status: Assigned
* Priority: Normal
* Assignee: openssl
* ruby -v: ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Similar to the memory leak fixed in https://bugs.ruby-lang.org/issues/9743 there is an issue with ossl_pkey_sign. The ruby heap usage reported through GC.stat remains very stable, while the process heap grows linearly with the number of OpenSSL::PKey::RSA sign calls. 
The documentation at https://www.openssl.org/docs/crypto/EVP_SignInit.html (similar to EVP_VerifyInit) mentions that not disposing the context causes a leak.

To reproduce: https://gist.github.com/viktorium/f032cdc8906f43dac94e
A patch with a fix very similar to issue #9743: https://gist.github.com/viktorium/b466b72c83d2ab90182c



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next