This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Old Python binary eats all mem after upgrade to 2.28


hi all,

I should have provided more strace-context. This is what happens shortly 
before the endless mremap starts:

stat64("/home/zope/2.6.0/lib/python2.1/site-packages", {st_mode=S_IFDIR|0775, st_size=304, ...}) = 0
openat(AT_FDCWD, "/home/zope/2.6.0/lib/python2.1/site-packages", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
fstat64(4, {st_mode=S_IFDIR|0775, st_size=304, ...}) = 0
brk(0x812c000)                          = 0x812c000
getdents(4, /* 10 entries */, 32768)    = 244
mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf73e2000
mremap(0xf73e2000, 135168, 139264, MREMAP_MAYMOVE) = 0xf73c0000
...

cu,
brunni

On Wed, Aug 08, 2018 at 03:54:39PM +0200, Michael Brunnbauer wrote:
> 
> hi all,
> 
> I just upgraded to glibc 2.28 and everything seems to run fine - except this
> 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:
> 
> mremap(0xe64aa000, 225259520, 225263616, MREMAP_MAYMOVE) = 0xe64aa000
> mremap(0xe64aa000, 225263616, 225267712, MREMAP_MAYMOVE) = 0xe64aa000
> mremap(0xe64aa000, 225267712, 225271808, MREMAP_MAYMOVE) = 0xe64aa000
> mremap(0xe64aa000, 225271808, 225275904, MREMAP_MAYMOVE) = 0xe64aa000
> mremap(0xe64aa000, 225275904, 225280000, MREMAP_MAYMOVE) = 0xe64aa000
> mremap(0xe64aa000, 225280000, 225284096, MREMAP_MAYMOVE) = 0xe64aa000
> ...
> 
> I am in the very difficult process of moving away from that particular legacy 
> but this will take time. Also I'm concerned about other old binaries that may 
> stop working.
> 
> Any idea what is going on?
> 
> Regards,
> 
> Michael Brunnbauer
> 
> -- 
> ++  Michael Brunnbauer
> ++  netEstate GmbH
> ++  Geisenhausener Straße 11a
> ++  81379 München
> ++  Tel +49 89 32 19 77 80
> ++  Fax +49 89 32 19 77 89 
> ++  E-Mail brunni@netestate.de
> ++  https://www.netestate.de/
> ++
> ++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
> ++  USt-IdNr. DE221033342
> ++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
> ++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel



-- 
++  Michael Brunnbauer
++  netEstate GmbH
++  Geisenhausener Straße 11a
++  81379 München
++  Tel +49 89 32 19 77 80
++  Fax +49 89 32 19 77 89 
++  E-Mail brunni@netestate.de
++  https://www.netestate.de/
++
++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
++  USt-IdNr. DE221033342
++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]