delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/07/01/13:15:44

Sender: ml AT delorie DOT com
Message-ID: <33B938C9.2EB5837D@cdata.tvnet.hu>
Date: Tue, 01 Jul 1997 19:05:13 +0200
From: Molnar Laszlo <molnarl AT cdata DOT tvnet DOT hu>
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Memory leak in bash
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970701192041 DOT 25924A-100000 AT is>

Eli Zaretskii wrote:
>         2) Why are you so sure it's a memory leak?  It can be just a
> result of known deficiencies in `malloc' and friends.  The fact that Bash
> requests more and more core from the DPMI host doesn't necessarily mean
> that it itself leaks memory (although it might).

Well I'm not so sure. But it's a little bit suspicious, isn't it? ;-)
Just look at the numbers! The first few steps can be because of the
malloc deficiencies (10-100K physical memory loss) but at #7 it's 300K ,
1.2M at #8, 5.0M at #9, and >20M at #10.

Why must bash alloc 20M??

0> > DPMI memory available: 22923 Kb
> > DPMI swap space available: 129297 Kb
1> > DPMI memory available: 22911 Kb
> > DPMI swap space available: 129309 Kb
2> > DPMI memory available: 22911 Kb
> > DPMI swap space available: 129309 Kb
3> > DPMI memory available: 22911 Kb
> > DPMI swap space available: 129309 Kb
4> > DPMI memory available: 22903 Kb
> > DPMI swap space available: 129317 Kb
5> > DPMI memory available: 22887 Kb
> > DPMI swap space available: 129333 Kb
6> > DPMI memory available: 22811 Kb
> > DPMI swap space available: 129217 Kb
7> > DPMI memory available: 22491 Kb
> > DPMI swap space available: 129025 Kb
8> > DPMI memory available: 21235 Kb
> > DPMI swap space available: 128617 Kb
9> > DPMI memory available: 16235 Kb
> > DPMI swap space available: 127345 Kb
10> > DPMI memory available: 119251 Kb
> > DPMI swap space available: 0 Kb

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019