When adding virtual network interfaces, BIRD crashes sometimes...
Hi, When I'm using uml-utilities, specifically the command: sudo tunctl -t tap0 -u test sudo ifconfig tap0 11.1.1.2/16 Or, I've already had virtual network interfaces, I want to delete them: sudo tunctl -d tap0 Sometimes after entering these commands, BIRD(version 1.0.14, alreay been running OSPF protocol) works well and creates new LSAs to flood; but sometimes it crashes.But when I plug in or pull out a twisted pair of a real network interface, it seems that BIRD don't crash. So maybe it's a problem of the "virtual" interface as I thought when testing. But when actually using BIRD for routing in the lab maybe there's no chances to use virtual interfaces. So just reporting this bug. In the debugging file, here may be the related line: May 15 14:24:24 test-ubuntu kernel: [ 292.820382] bird[3797]: segfault at e0000021 ip 08065f83 sp bfee6590 error 5 in bird[8048000+45000] Thanks!
On Fri, May 15, 2009 at 03:12:05PM +0800, ChuYinsu wrote:
Hi,
When I'm using uml-utilities, specifically the command:
sudo tunctl -t tap0 -u test sudo ifconfig tap0 11.1.1.2/16
Or, I've already had virtual network interfaces, I want to delete them:
sudo tunctl -d tap0
Sometimes after entering these commands, BIRD(version 1.0.14, alreay been running OSPF protocol) works well and creates new LSAs to flood; but sometimes it crashes.
Can you try this version: http://artax.karlin.mff.cuni.cz/~zajio1am/temp/bird.tar.gz ? It is snapshot of my development branch that contains some fixes related to removing and adding interfaces in OSPF. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi, I've already had BIRD 1.0.14 installed via the repository(deb ftp://bird.network.cz/pub/bird/debian/ lenny/i386/), and it was installed by: sudo apt-get install bird So first I tried to uninstall it: sudo apt-get remove bird And I downloaded the source code in http://artax.karlin.mff.cuni.cz/~zajio1am/temp/bird.tar.gz, run: tar xvzf bird.tar.gz cd bird sudo ./configure sudo make sudo make install (I've had bison, build-essential, m4, make, libreadline-dev, etc. installed and after the configuration it displayed: BIRD was configured with the following options: Source directory: . Object directory: obj System configuration: ./sysdep/cf/linux-22.h Debugging: no Routing protocols: bgp ospf pipe rip static Client: yes So the configuration should be with no mistakes.) But when I tried to run bird: sudo bird And I checked the bird is not running: pgrep bird (no results returned) And the terminal cannot be open either: sudo birdc Unable to connect to server control socket (/usr/local/var/run/bird.ctl): No such file or directory Well, I tried to figure it out but I still don't know why this would happen... The operating system is Ubuntu 9.04. Thanks! 2009/5/15 Ondrej Zajicek <santiago@crfreenet.org>:
On Fri, May 15, 2009 at 03:12:05PM +0800, ChuYinsu wrote:
Hi,
When I'm using uml-utilities, specifically the command:
sudo tunctl -t tap0 -u test sudo ifconfig tap0 11.1.1.2/16
Or, I've already had virtual network interfaces, I want to delete them:
sudo tunctl -d tap0
Sometimes after entering these commands, BIRD(version 1.0.14, alreay been running OSPF protocol) works well and creates new LSAs to flood; but sometimes it crashes.
Can you try this version: http://artax.karlin.mff.cuni.cz/~zajio1am/temp/bird.tar.gz ?
It is snapshot of my development branch that contains some fixes related to removing and adding interfaces in OSPF.
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkoNHcIACgkQw1GB2RHercN3oQCfV2BnvM8WjUaVGlOcZQafpg9W QCYAnAi3YEacq1IsHneNP54JeO9R3p3d =4K5l -----END PGP SIGNATURE-----
On Fri, May 15, 2009 at 04:51:22PM +0800, ChuYinsu wrote:
And I checked the bird is not running: pgrep bird (no results returned)
And the terminal cannot be open either: sudo birdc Unable to connect to server control socket (/usr/local/var/run/bird.ctl): No such file or directory
Well, I tried to figure it out but I still don't know why this would happen...
BIRD (when compiled from sources) uses by default prefix /usr/local, therefore expects configuration file in /usr/local/etc/bird.conf and directory /usr/local/var/run for its socket. You can copy config file to that position (and create that directory if it does not exist) or recompile BIRD with different --prefix option. You can also compile BIRD with --enable-debug and then it expects to find config file in current directory. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi, It's great, BIRD don't crash when using the latest package you metioned in the link, at least on my Linux box, for virtual network interfaces. I entered these commands: sudo tunctl -t tap0 -u cys sudo ifconfig tap0 10.1.1.2/16 waiting OSPF to converge... sudo tunctl -d tap0 waiting OSPF to converge... ... and I did them for many many many times, BIRD didn't crash even once : ) 2009/5/15 Ondrej Zajicek <santiago@crfreenet.org>:
On Fri, May 15, 2009 at 04:51:22PM +0800, ChuYinsu wrote:
And I checked the bird is not running: pgrep bird (no results returned)
And the terminal cannot be open either: sudo birdc Unable to connect to server control socket (/usr/local/var/run/bird.ctl): No such file or directory
Well, I tried to figure it out but I still don't know why this would happen...
BIRD (when compiled from sources) uses by default prefix /usr/local, therefore expects configuration file in /usr/local/etc/bird.conf and directory /usr/local/var/run for its socket. You can copy config file to that position (and create that directory if it does not exist) or recompile BIRD with different --prefix option.
You can also compile BIRD with --enable-debug and then it expects to find config file in current directory.
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkoNX7kACgkQw1GB2RHercO53gCeO1D5RdsBR9g0qlTEhWDbgDQ1 4gcAn3S4Cid/cllHY2pLfA74l4YdNPvc =+vzW -----END PGP SIGNATURE-----
participants (2)
-
ChuYinsu -
Ondrej Zajicek