From sec@ice.42.org  Sun Mar 11 09:01:22 2001
Return-Path: <sec@ice.42.org>
Received: from ice.42.org (ice.42.org [194.246.250.222])
	by hub.freebsd.org (Postfix) with ESMTP id 45EE737B71A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Mar 2001 09:01:22 -0800 (PST)
	(envelope-from sec@ice.42.org)
Received: by ice.42.org (Postfix, from userid 1000)
	id 7690FD6; Sun, 11 Mar 2001 18:01:20 +0100 (CET)
Message-Id: <20010311170120.7690FD6@ice.42.org>
Date: Sun, 11 Mar 2001 18:01:20 +0100 (CET)
From: sec@ice.42.org
Reply-To: sec@ice.42.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: bug-dc@gnu.org
Subject: dc :  memory leak?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         25707
>Category:       gnu
>Synopsis:       dc & memory leak?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 11 09:10:00 PST 2001
>Closed-Date:    Sun Mar 11 16:11:34 PST 2001
>Last-Modified:  Sun Mar 11 16:12:21 PST 2001
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

dc (GNU bc 1.06) 1.3

Copyright 1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.

	
>Description:

dc eats memory like hell in a recursion. Other dc's (like solaris and
irix dc) don't do this
>How-To-Repeat:

echo '[ p lb 2 + d sb + lax]sa 1sb 1 lax'|dc

This soon exhausts grows to > 60Mb, and then core dumps.

	
>Fix:

None known
	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sun Mar 11 16:11:34 PST 2001 
State-Changed-Why:  
Please take this up with the GNU maintainers.  Our version 
of dc is almost completely unmodified, and we don't maintain 
it internally. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25707 
>Unformatted:
