[ruby-core:89010] Re: [Ruby trunk Bug#11174] threads memory leak

From: Eric Wong <normalperson@...>
Date: 2018-09-14 11:25:13 UTC
List: ruby-core #89010
> It seems specific to glibc

That should be "glibc malloc"; and only old versions.  The bug
is fixed in glibc 2.28, at least; likely earlier.  (glibc takes
forever to build) It's present in 2.24-11+deb9 on Debian.

MALLOC_ARENA_MAX=1 MALLOC_ARENA_TEST=1 does not seem to help.

I forgot one other parameter which IS the culprit in older glibc versions:

MALLOC_MMAP_THRESHOLD_=131072  # or whatever fixed value you want

So the sliding mmap threshold was the problem in glibc; but it's
fixed upstream, at least.  Just have to wait for distros to roll
it out...

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

In This Thread

Prev Next