From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28072 invoked by alias); 8 Aug 2018 14:03:11 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 28061 invoked by uid 89); 8 Aug 2018 14:03:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:TCP, 304, Old, EMail X-HELO: brunni.mail.netestate.de Received: from brunni.mail.netestate.de (HELO brunni.mail.netestate.de) (81.209.177.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Aug 2018 14:03:08 +0000 Received: (qmail 21740 invoked from network); 8 Aug 2018 14:03:06 -0000 Received: from localhost.netestate.de (HELO fiano.netestate.de) (127.0.0.1) by localhost.netestate.de with ESMTP; 8 Aug 2018 14:03:06 -0000 Received: from fiano.netestate.de (81.209.177.7) by brunni.mail.netestate.de with SMTP via TCP; Wed, 08 Aug 2018 16:03:06 +0200 Received: (qmail 2312 invoked by uid 503); 8 Aug 2018 14:03:05 -0000 Date: Wed, 08 Aug 2018 14:03:00 -0000 From: Michael Brunnbauer To: libc-help@sourceware.org Subject: Re: Old Python binary eats all mem after upgrade to 2.28 Message-ID: <20180808140305.GA2306@netestate.de> References: <20180808135439.GA2177@netestate.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <20180808135439.GA2177@netestate.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00020.txt.bz2 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2686 hi all, I should have provided more strace-context. This is what happens shortly=20 before the endless mremap starts: stat64("/home/zope/2.6.0/lib/python2.1/site-packages", {st_mode=3DS_IFDIR|0= 775, st_size=3D304, ...}) =3D 0 openat(AT_FDCWD, "/home/zope/2.6.0/lib/python2.1/site-packages", O_RDONLY|O= _NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) =3D 4 fstat64(4, {st_mode=3DS_IFDIR|0775, st_size=3D304, ...}) =3D 0 brk(0x812c000) =3D 0x812c000 getdents(4, /* 10 entries */, 32768) =3D 244 mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)= =3D 0xf73e2000 mremap(0xf73e2000, 135168, 139264, MREMAP_MAYMOVE) =3D 0xf73c0000 ... cu, brunni On Wed, Aug 08, 2018 at 03:54:39PM +0200, Michael Brunnbauer wrote: >=20 > hi all, >=20 > I just upgraded to glibc 2.28 and everything seems to run fine - except t= his > old binary of Python 2.1.3 from 2002 that came precompiled with Zope 2.6.= 0. > When I start it on the command line, it starts eating up all memory until > it gets killed by the oom-killer. strace looks like this: >=20 > mremap(0xe64aa000, 225259520, 225263616, MREMAP_MAYMOVE) =3D 0xe64aa000 > mremap(0xe64aa000, 225263616, 225267712, MREMAP_MAYMOVE) =3D 0xe64aa000 > mremap(0xe64aa000, 225267712, 225271808, MREMAP_MAYMOVE) =3D 0xe64aa000 > mremap(0xe64aa000, 225271808, 225275904, MREMAP_MAYMOVE) =3D 0xe64aa000 > mremap(0xe64aa000, 225275904, 225280000, MREMAP_MAYMOVE) =3D 0xe64aa000 > mremap(0xe64aa000, 225280000, 225284096, MREMAP_MAYMOVE) =3D 0xe64aa000 > ... >=20 > I am in the very difficult process of moving away from that particular le= gacy=20 > but this will take time. Also I'm concerned about other old binaries that= may=20 > stop working. >=20 > Any idea what is going on? >=20 > Regards, >=20 > Michael Brunnbauer >=20 > --=20 > ++ Michael Brunnbauer > ++ netEstate GmbH > ++ Geisenhausener Stra=DFe 11a > ++ 81379 M=FCnchen > ++ Tel +49 89 32 19 77 80 > ++ Fax +49 89 32 19 77 89=20 > ++ E-Mail brunni@netestate.de > ++ https://www.netestate.de/ > ++ > ++ Sitz: M=FCnchen, HRB Nr.142452 (Handelsregister B M=FCnchen) > ++ USt-IdNr. DE221033342 > ++ Gesch=E4ftsf=FChrer: Michael Brunnbauer, Franz Brunnbauer > ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel --=20 ++ Michael Brunnbauer ++ netEstate GmbH ++ Geisenhausener Stra=DFe 11a ++ 81379 M=FCnchen ++ Tel +49 89 32 19 77 80 ++ Fax +49 89 32 19 77 89=20 ++ E-Mail brunni@netestate.de ++ https://www.netestate.de/ ++ ++ Sitz: M=FCnchen, HRB Nr.142452 (Handelsregister B M=FCnchen) ++ USt-IdNr. DE221033342 ++ Gesch=E4ftsf=FChrer: Michael Brunnbauer, Franz Brunnbauer ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 163 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAltq+BkACgkQvo+oDi22HrlL7wCffWhINdJyVEum8lKf8E/a0Mzm PzYAmwSKRguu9wijWy/ZS7V4s3+xiEtm =DGTM -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--