Date: Tue, 30 Jan 2001 00:58:26 -0800 From: Julian Elischer <julian@elischer.org> To: Harti Brandt <brandt@fokus.gmd.de>, julian@freebsd.org, freebsd-net@freebsd.org, archie@freebsd.org Subject: Re: netgraph: problem in ng_base Message-ID: <3A768232.282B28E6@elischer.org> References: <Pine.BSF.4.21.0101291728520.460-100000@beagle.fokus.gmd.de> <3A767279.977B96CA@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <<DONE 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 show far: shutdown near: shutdown far: list DONE ngctl -f /tmp/it __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v 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?3A768232.282B28E6>