[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #30096] ext2fs leaks memory on multiple execs from same process
From: |
Carl Fredrik Hammar |
Subject: |
[bug #30096] ext2fs leaks memory on multiple execs from same process |
Date: |
Wed, 09 Jun 2010 14:15:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100501 Iceweasel/3.5.9 (like Firefox/3.5.9) |
URL:
<http://savannah.gnu.org/bugs/?30096>
Summary: ext2fs leaks memory on multiple execs from same
process
Project: The GNU Hurd
Submitted by: hammy
Submitted on: Wed 09 Jun 2010 04:15:13 PM CEST
Category: Hurd
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Reproducibility: None
Size (loc): None
Planned Release: None
Effort: 0.00
Wiki-like text discussion box:
_______________________________________________________
Details:
If you run a program which does nothing else than call exec() on its own
executable then ext2fs and gnumach slowly uses more and more memory.
At this point, gnumach grows quicker than ext2fs. If only run for a
short while killing the execing process only results in some of this
memory being freed. But if you let the process do 100 000 execs or so
before you kill it, then ext2fs memory usage explodes to 100's of megs,
and after that, consumes ~200 kb whenever setauth() is called or a setuid
binary is executed.
I have attached a program that execs itself and prints out how many
calls it has done every 100th call. A convenient way to track memory
usage of gnumach and ext2fs, respectively, is:
while ps -u 2 3; do sleep 1; done
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 09 Jun 2010 04:15:13 PM CEST Name: exec-spam.c Size: 430B By:
hammy
<http://savannah.gnu.org/bugs/download.php?file_id=20710>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30096>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #30096] ext2fs leaks memory on multiple execs from same process,
Carl Fredrik Hammar <=