[ruby-core:82502] [Ruby trunk Bug#13846] Openbsd possible memory leak when using Thread

From: kadmos@...
Date: 2017-08-29 08:14:45 UTC
List: ruby-core #82502
Issue #13846 has been reported by parhs (Gibon M).

----------------------------------------
Bug #13846: Openbsd possible memory leak when using Thread
https://bugs.ruby-lang.org/issues/13846

* Author: parhs (Gibon M)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.4
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
On openBSD 5.9 running this code causes RSS memory to increase without limit. This does not happen in ubuntu or other linux.

~~~ ruby
loop do
  thr = Thread.new { puts "thread test" }
  thr.join
  GC.start
end

~~~
This is related to other things too, like when calling Open3.* , virtually everything that is using threads...
I have attached a screenshot with RSS memory plot I did.

---Files--------------------------------
Screen Shot 2017-08-29 at 11.11.42 AM.png (51.7 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