Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2001 12:01:18 +0100 (CET)
From:      Harti Brandt <brandt@fokus.gmd.de>
To:        <julian@freebsd.org>
Cc:        <net@freebsd.org>
Subject:   Netgraph is leaking node references
Message-ID:  <Pine.BSF.4.33.0103091154590.470-100000@beagle.fokus.gmd.de>

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

Hi,

it seems that netgraph is leaking references. One simple experiment to do
is to repeat 'ngctl types' several times:

500 [root] (beagle) netgraph_atm/tests/ccatm # ngctl types
There are 5 total types:
      Type name   Number of living nodes
      ---------   ----------------------
         socket       9
          sscfu       0
          sscop       1
            atm       2
            tee       0
501 [root] (beagle) netgraph_atm/tests/ccatm # ngctl types
There are 5 total types:
      Type name   Number of living nodes
      ---------   ----------------------
         socket      10
          sscfu       0
          sscop       1
            atm       2
            tee       0
502 [root] (beagle) netgraph_atm/tests/ccatm # ngctl types
There are 5 total types:
      Type name   Number of living nodes
      ---------   ----------------------
         socket      11
          sscfu       0
          sscop       1
            atm       2
            tee       0
503 [root] (beagle) netgraph_atm/tests/ccatm # exit

See the number of socket type nodes increasing. A ngctl list shows only
the two persistant atm nodes and the ngctl socket node. Dumping the node
list shows, that all the nodes have 0 hooks, are INVALID and CLOSING, but
have references. This happens for all types (the sscop nodes above is one
of these stuck nodes). The leaking references are probably hook
references, because the number of dangling references in the dead nodes
depends on the number of hooks it previously had.

So what is the problem?
harti

PS:
FreeBSD beagle.fokus.gmd.de 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Thu Mar  8 11:42:04 CET 2001
hbb@beagle.fokus.gmd.de:/opt/obj/usr/src/sys/BEAGLE  i386
-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              brandt@fokus.gmd.de, harti@begemot.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0103091154590.470-100000>