From owner-freebsd-net Tue Jan 30 0:59: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 108BB37B69B; Tue, 30 Jan 2001 00:58:48 -0800 (PST) Received: from muzak.iinet.net.au (muzak.iinet.net.au [203.59.24.237]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id QAA03934; Tue, 30 Jan 2001 16:58:45 +0800 Received: from elischer.org (reggae-02-2.nv.iinet.net.au [203.59.91.2]) by muzak.iinet.net.au (8.8.5/8.8.5) with ESMTP id QAA13881; Tue, 30 Jan 2001 16:56:25 +0800 Message-ID: <3A768232.282B28E6@elischer.org> Date: Tue, 30 Jan 2001 00:58:26 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Harti Brandt , julian@freebsd.org, freebsd-net@freebsd.org, archie@freebsd.org Subject: Re: netgraph: problem in ng_base References: <3A767279.977B96CA@elischer.org> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Julian Elischer wrote: > > Firstly, thanks for the report. > And thanks for spending the time to look into it. >[...] > > it seems like there is a problem with node reference counts. I have a > > test program, that instantiates a chain of nodes like this: > > > > ng_atm -----------> ng_sscop --------------> ng_sscf ---------> ng_socket > > | ^ > > +--------------------------------------+ [...] > can you send me a copy of your ng_sccop node so I can try simulate this? > in the meanwhile I'll try using the 'hole' node to simulate it. > using ngctl and 'hole' nodes in this configuration I cannot make this happen. here's the sequence I used: + mkpeer hole aaa aaa + name aaa near + mkpeer hole bbb bbb + name bbb far + connect near: far: ccc ccc + connect lnc0: far: orphans ddd + list There are 4 total nodes: Name: far Type: hole ID: 00000008 Num hooks: 3 Name: near Type: hole ID: 00000007 Num hooks: 2 Name: ngctl192 Type: socket ID: 00000006 Num hooks: 2 Name: lnc0 Type: ether ID: 00000005 Num hooks: 1 + show far: Name: far Type: hole ID: 00000008 Num hooks: 3 Local hook Peer name Peer type Peer ID Peer hook ---------- --------- --------- ------- --------- ddd lnc0 ether 00000005 orphans ccc near hole 00000007 ccc bbb ngctl192 socket 00000006 bbb + shutdown near: + shutdown far: + list There are 2 total nodes: Name: lnc0 Type: ether ID: 00000009 Num hooks: 0 Name: ngctl192 Type: socket ID: 00000006 Num hooks: 0 + no messages were printed on the console... can you repeat this sequence using your nodes and see if you get an error when it is done by hand (slowely?). I'll try it again from a script using ngctl -f [later] no, it still doesn't complain.. can you try this: ( I assume atm is permanent like lnc0: ) cat > tmp/it < X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message