Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2011 20:56:36 GMT
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161668: Critical patch for Quagga
Message-ID:  <201110142056.p9EKuarv012670@red.freebsd.org>
Resent-Message-ID: <201110142100.p9EL0FXi087766@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161668
>Category:       ports
>Synopsis:       Critical patch for Quagga
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 21:00:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Mike Tancsa
>Release:        RELENG_8
>Organization:
Sentex Communications
>Environment:
8.2-STABLE FreeBSD 8.2-STABLE #2: Fri Oct 14 07:30:09 EDT 2011 
>Description:
There is a needed patch for quagga, specifically bgpd that prevents it from leaking memory.  On a busy router, it leaks about 1MB every 10min. Description of the problem and patch are found 
http://lists.quagga.net/pipermail/quagga-users/2011-October/012529.html

>How-To-Repeat:
startup quagga with bgp and a full table.  Watch memory usage grow.
>Fix:
--- bgpd/bgp_attr.c
+++ bgpd/bgp_attr.c
@@ -675,6 +675,7 @@ bgp_attr_unintern (struct attr **attr)
     }

   bgp_attr_unintern_sub (&tmp);
+  bgp_attr_extra_free (&tmp);
 }

 void
--

The above patch can be added into the files directory of the port and I added 
PORTREVISION=   1
to the port's Makefile

>Release-Note:
>Audit-Trail:
>Unformatted:



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