From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 11 20:40:09 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99977106566C for ; Sat, 11 Feb 2012 20:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 55DB28FC13 for ; Sat, 11 Feb 2012 20:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1BKe9ao048781 for ; Sat, 11 Feb 2012 20:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1BKe99n048773; Sat, 11 Feb 2012 20:40:09 GMT (envelope-from gnats) Resent-Date: Sat, 11 Feb 2012 20:40:09 GMT Resent-Message-Id: <201202112040.q1BKe99n048773@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09ACC1065672 for ; Sat, 11 Feb 2012 20:33:28 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grosbein.pp.ru [89.189.172.146]) by mx1.freebsd.org (Postfix) with ESMTP id 5EB1F8FC0A for ; Sat, 11 Feb 2012 20:33:26 +0000 (UTC) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.5/8.14.5) with ESMTP id q1BJ5FCP003099 for ; Sun, 12 Feb 2012 02:05:15 +0700 (NOVT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.5/8.14.5/Submit) id q1BJ5F37003098; Sun, 12 Feb 2012 02:05:15 +0700 (NOVT) (envelope-from eugen) Message-Id: <201202111905.q1BJ5F37003098@grosbein.pp.ru> Date: Sun, 12 Feb 2012 02:05:15 +0700 (NOVT) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/165003: [patch] icecast-2.3.2 may leak memory and take extra CPU time X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2012 20:40:09 -0000 >Number: 165003 >Category: ports >Synopsis: [patch] icecast-2.3.2 may leak memory and take extra CPU time >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 11 20:40:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.2-STABLE amd64 >Organization: RDTC JSC >Environment: System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #14: Mon Jan 16 21:33:53 NOVT 2012 root@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV amd64 >Description: icecast2-2.3.2_7,1 built from ports tree may leak memory. When it leaks, its size grows and CPU time grows enormously too. After it reaches 2Gb for i386 system, it is killed with a signal. >How-To-Repeat: Run busy icecast2 server. >Fix: The following 2 years old patch was taken from http://old.nabble.com/Memory-leak-on-Icecast-2.3.2---Debian---td26691536.html It eliminates the problem fixing memory leak. --- src/stats.c.orig 2012-02-11 22:28:24.000000000 +0400 +++ src/stats.c 2012-02-11 22:29:17.000000000 +0400 @@ -973,7 +973,11 @@ if (event->source) { if (show_mount && strcmp (event->source, show_mount) != 0) + { + xmlFree (value); + xmlFree (name); break; + } srcnode = _find_xml_node(event->source, &src_nodes, node); } else >Release-Note: >Audit-Trail: >Unformatted: