From owner-freebsd-current Wed Oct 7 23:09:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA28510 for freebsd-current-outgoing; Wed, 7 Oct 1998 23:09:40 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles134.castles.com [208.214.165.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA28505 for ; Wed, 7 Oct 1998 23:09:35 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id XAA01484; Wed, 7 Oct 1998 23:14:20 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810080614.XAA01484@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Alex cc: Mike Smith , Darren Whittaker , freebsd-current@FreeBSD.ORG Subject: Re: problem in 3.0 In-reply-to: Your message of "Wed, 07 Oct 1998 23:05:59 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Oct 1998 23:14:19 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 > > 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