[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83162] [Ruby trunk Bug#13982] Memory leak in Zlib.gunzip

From: k@...
Date: 2017-10-06 12:36:49 UTC
List: ruby-core #83162
Issue #13982 has been reported by rhenium (Kazuki Yamaguchi).

----------------------------------------
Bug #13982: Memory leak in Zlib.gunzip
https://bugs.ruby-lang.org/issues/13982

* Author: rhenium (Kazuki Yamaguchi)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-10-06 master 60128) [x86_64-linux]
* Backport: 2.3: DONTNEED, 2.4: REQUIRED
----------------------------------------
Zlib.gunzip which was added in Ruby 2.4 seems to leak memory every time it is called.

```
$ ruby -rzlib -e'END{puts File.readlines("/proc/self/status").grep(/RSS/)}' -e'd=Zlib.gzip("data"); 100_000.times{Zlib.gunzip(d)}'
VmRSS:	  829496 kB
```



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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next