Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12368

Bug#951704: cannot allocate memory in static TLS block

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Faidon Liambotis <paravoid@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.devel.mentors, linux.debian.maint.python
Subject Bug#951704: cannot allocate memory in static TLS block
Date Tue, 17 Mar 2020 13:00:02 +0100
Message-ID <zLj34-18h-7@gated-at.bofh.it> (permalink)
References <zK0OS-2L7-7@gated-at.bofh.it> <zKfbb-35T-5@gated-at.bofh.it> <zKmml-7zH-1@gated-at.bofh.it> <zKxUt-6bj-1@gated-at.bofh.it> <zBRIJ-658-1@gated-at.bofh.it> <zKxUt-6bj-1@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Mar 17 11:57:08 2020
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score 0.2
Reply-To Faidon Liambotis <paravoid@debian.org>, 951704@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
X-Debian-Pr-Message followup 951704
X-Debian-Pr-Package libjemalloc2
X-Debian-Pr-Keywords patch
X-Debian-Pr-Source jemalloc
X-Spam-Bayes score:0.0000 Tokens: new, 8; hammy, 150; neutral, 238; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--H*u:1.10.1, 0.000-+--H*UA:1.10.1, 0.000-+--H*u:2018-07-13, 0.000-+--H*UA:2018-07-13
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tty.gr; s=scrooge; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=G3Qju6mwwlkqzlVNN255hjT0fUAUYHx3jecI2I1WEzI=; b=KkYiZLkLNL86UuVYWcB9vAGL2Y /4EnnUZOlHrpDDg2p9q8ueGEmqGhhr9591h/D8+ywI627FsldtaZns75yEnRsFWEtXIBQKgwK+7BD XRBR7v16OP/hDozKyIIv3hnxkwbaTOQQuQIKazMaCzy4aMxMA8tNq4MscaYInFDJPBcM=;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Greylist delayed 1351 seconds by postgrey-1.36 at buxtehude; Tue, 17 Mar 2020 11:52:37 UTC
X-Crossassassin-Score 2
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1590850
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 77
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 953832@bugs.debian.org, 951704@bugs.debian.org, Debian Mentors List <debian-mentors@lists.debian.org>, Debian Python <debian-python@lists.debian.org>
X-Original-Date Tue, 17 Mar 2020 13:29:59 +0200
X-Original-Message-ID <20200317112958.GA3771@tty.gr>
X-Original-References <37cc18dc-9b5a-5b4e-56b8-6ae7ef7ae5ed@debian.org> <20200314133008.GB5878@an3as.eu> <875zf6vdmu.fsf@paluero> <20200315093320.GH5878@an3as.eu> <CA+7wUswcffpvAiDQBWZjgSf8U-gjakXzt5xiCXj4yU2bBDHrjw@mail.gmail.com> <20200315093320.GH5878@an3as.eu>
Xref csiph.com linux.debian.bugs.dist:1000161 linux.debian.devel.mentors:43457 linux.debian.maint.python:12368

Cross-posted to 3 groups.

Show key headers only | View raw


Hi Andreas,

Thanks for reaching out. It sounds like this is already reported as
#951704 (Cc'ed now). I'll need to give this a closer look, but I hope I
can have an update within the next couple of weeks. Does this work?

Thanks!
Faidon

On Sun, Mar 15, 2020 at 10:33:20AM +0100, Andreas Tille wrote:
> Hi Faidon,
> 
> could you imagine to build jemalloc with --disable-initial-exec-tls
> as Sergio suggests below to fix the issue in drmaa (and possibly other
> packages)?
> 
> Should I open a separate bug report against jemalloc to request this?
> 
> Kind regards
> 
>       Andreas.
> 
> On Sat, Mar 14, 2020 at 05:18:49PM -0400, Sergio Durigan Junior wrote:
> > > $ python3
> > > Python 3.7.6 (default, Jan 19 2020, 22:34:52) 
> > > [GCC 9.2.1 20200117] on linux
> > > Type "help", "copyright", "credits" or "license" for more information.
> > >>>> import drmaa
> > > Traceback (most recent call last):
> > >   File "<stdin>", line 1, in <module>
> > >   File "/home/andreas/debian-maintain/salsa/med-team/python-drmaa/drmaa/__init__.py", line 65, in <module>
> > >     from .session import JobInfo, JobTemplate, Session
> > >   File "/home/andreas/debian-maintain/salsa/med-team/python-drmaa/drmaa/session.py", line 39, in <module>
> > >     from drmaa.helpers import (adapt_rusage, Attribute, attribute_names_iterator,
> > >   File "/home/andreas/debian-maintain/salsa/med-team/python-drmaa/drmaa/helpers.py", line 36, in <module>
> > >     from drmaa.wrappers import (drmaa_attr_names_t, drmaa_attr_values_t,
> > >   File "/home/andreas/debian-maintain/salsa/med-team/python-drmaa/drmaa/wrappers.py", line 58, in <module>
> > >     _lib = CDLL(libpath, mode=RTLD_GLOBAL)
> > >   File "/usr/lib/python3.7/ctypes/__init__.py", line 364, in __init__
> > >     self._handle = _dlopen(self._name, mode)
> > > OSError: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2: cannot allocate memory in static TLS block
> > 
> > This is an issue with jemalloc's handling of the TLS model when being
> > dlopened..  See:
> > 
> >   https://github.com/jemalloc/jemalloc/issues/1237
> > 
> > The recommended way to build a libjemalloc that is suitable for being
> > dlopened is to use '--disable-initial-exec-tls' when building it.  Take
> > a look at the INSTALL.md file, and look for this option:
> > 
> >   https://github.com/jemalloc/jemalloc/blob/dev/INSTALL.md
> > 
> > There is a way to workaround this bug by doing an LD_PRELOAD of
> > libjemalloc when invoking python, but this will only mask the problem
> > and we can't expect users to do/know this.
> > 
> > The way I see it, you can try to convince jemalloc's maintainer to
> > enable that flag.
> > 
> > BTW, the reason 'find_library' can't find drmaa's library is because the
> > .so is being installed in a non-standard directory.  I don't know why
> > the package was made like this, though.
> > 
> > Thanks,
> > 
> > -- 
> > Sergio
> > GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
> > Please send encrypted e-mail if possible
> > http://sergiodj.net/
> 
> 
> 
> -- 
> http://fam-tille.de
> 

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

Bug#951704: cannot allocate memory in static TLS block Faidon Liambotis <paravoid@debian.org> - 2020-03-17 13:00 +0100

csiph-web