Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Oct 1998 23:14:19 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Alex <garbanzo@hooked.net>
Cc:        Mike Smith <mike@smith.net.au>, Darren Whittaker <djw@sage1.sagecorp.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: problem in 3.0 
Message-ID:  <199810080614.XAA01484@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 07 Oct 1998 23:05:59 PDT." <Pine.BSF.4.00.9810072304510.758-100000@zippy.dyn.ml.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Wed, 7 Oct 1998, Mike Smith wrote:
> [...]
> > I'm afraid you're going to have to supply some more detail before we 
> > can help you further here.
> 
> #include <stdio.h>
> 
> int main()
> {
> 	for (;;) {
> 	pclose(popen("/usr/sbin/pstat -sk", "r"));
> 	}
> }
> 
> Compile and run this.  Watch top on another pty as this is running. Unless
> my understanding of popen is flawed, this shouldn't continue to grab more
> and more memory.

We're aware of this leak; it has to do with popen using vfork and the 
address space sharing semantics that come with it.

This isn't the problem that's being reported though.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810080614.XAA01484>