Debian Bug report logs - #493465
libncurses5: allocates memory that is never freed

version graph

Package: libncurses5; Maintainer for libncurses5 is Craig Small <[email protected]>; Source for libncurses5 is src:ncurses (PTS, buildd, popcon).

Reported by: "brian m. carlson" <[email protected]>

Date: Sat, 2 Aug 2008 19:33:04 UTC

Severity: normal

Found in version ncurses/5.6+20080713-1

Full log


Message #35 received at [email protected] (full text, mbox, reply):

Received: (at 493465) by bugs.debian.org; 8 May 2009 22:02:50 +0000
From [email protected] Fri May 08 22:02:50 2009
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 42; hammy, 81; neutral, 49; spammy,
	10. spammytokens:0.998-1--H*rp:U*dickey, 0.998-1--H*F:U*dickey,
	0.997-1--H*a:doing, 0.997-1--H*a:owned, 0.997-1--H*a:process
	hammytokens:0.000-+--H*c:PLAIN, 0.000-+--Hcc:D*org, 0.000-+--Hcc:D*debian.org,
	 0.000-+--libncurses5, 0.000-+--ncurses
X-Spam-Status: No, score=-6.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER,
	SPF_PASS autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Return-path: <[email protected]>
Received: from smtp105.his.com ([216.194.225.42])
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <[email protected]>)
	id 1M2Y9a-0001vy-Hf
	for [email protected]; Fri, 08 May 2009 22:02:50 +0000
Received: from localhost (localhost [127.0.0.1])
	by smtp105.his.com (Postfix) with ESMTP id 3A31C518181;
	Fri,  8 May 2009 18:02:44 -0400 (EDT)
Received: from smtp105.his.com ([127.0.0.1])
	by localhost (smtp105.his.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 21339-04; Fri, 8 May 2009 18:02:42 -0400 (EDT)
Received: from mail101.his.com (mail101b.his.com [216.194.192.39])
	by smtp105.his.com (Postfix) with ESMTP id 8817F51817E;
	Fri,  8 May 2009 18:02:42 -0400 (EDT)
Received: from mail101.his.com (localhost [127.0.0.1])
	by mail101.his.com (8.14.3/8.13.3) with ESMTP id n48M221i004484
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 8 May 2009 18:02:02 -0400 (EDT)
	(envelope-from [email protected])
Received: from localhost (dickey@localhost)
	by mail101.his.com (8.14.3/8.13.4/Submit) with ESMTP id n48M22mE004481;
	Fri, 8 May 2009 18:02:02 -0400 (EDT)
	(envelope-from [email protected])
X-Authentication-Warning: mail101.his.com: dickey owned process doing -bs
Date: Fri, 8 May 2009 18:02:02 -0400 (EDT)
From: Thomas Dickey <[email protected]>
To: Lars Doelle <[email protected]>, [email protected]
cc: [email protected], Daniel Baumann <[email protected]>
Subject: Re: Bug#493465: libncurses5: allocates memory that is never freed
In-Reply-To: <[email protected]>
Message-ID: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Virus-Scanned: Debian amavisd-new at smtp105.his.com
On Fri, 8 May 2009, Lars Doelle wrote:

> Hi,
>
> i stumbled over this bug, too, and write to ask what the state of resolution is.
> The libncurses5-dbg is not distributed with --disable-leaks, at time of writing.

--disable-leaks won't (by itself) free "all" leaks.
For that, you'd need the non-public function which frees all memory.

But doing that, some features of ncurses (like any curses implementation)
would not work.  In short the _nc_freeall, etc., are only useful for
debugging, not for a production library.

>
> If no semantic issues are know i would suggest not only to build the debugging
> library with --disable-leaks, but the production libraries, as well, to allow to build
> memory balanced applications and up-stream libraries.
>
> Thanks,
>
>  Lars
>
>
>
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 16 05:11:44 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.