Frr: FRR fails to run on FreeBSD (NS initialisation failure)

Created on 16 Mar 2018  路  9Comments  路  Source: FRRouting/frr

This is with FRR master, git sha 6ca96cc (March 14, 2018)

Compiling works, but trying to run aborts zebra, ospfd etc immediatly with:

dut:~# zebra -d
2018/03/16 06:10:02 errors: ZEBRA: NS initialisation failure (No error: 0)
core_handler: showing active allocations in memory group libfrr
core_handler: memstats:  Host config                   :      1 *         10
core_handler: memstats:  Command Argument Name         :    101 * (variably sized)
[...]
bug

All 9 comments

@mwinter-osr , I would be happy to contribute if you could allocate me a freebsd access with the frr compilation folder installed, please.
thanks in advance,

Hi @mwinter-osr , any news on freebsd availability?

Hi @mwinter-osr , any news on freebsd availability?

Sorry, missed this earlier. Will get you a system online in the next hours

Was having a similar issue with zebra crashing and core handler dumping - turns out when I removed the three gif interfaces on the box it loaded up fine.

Very easy to reproduce on a fresh FreeBSD system with a "pkg add frr" and default empty FRR configuration files:

[root@router]~# ifconfig gif create
gif0
[root@router]~# ifconfig gif0 up
[root@router]~# gdb zebra
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/local/sbin/zebra
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no
 debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...2018/05/31 18:23:28 warnings: ZEBRA:
ifam_read() doesn't read all socket data
2018/05/31 18:23:28 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed: Invalid argument
2018/05/31 18:23:28 warnings: ZEBRA: ifam_read() doesn't read all socket data
2018/05/31 18:23:28 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed: Invalid argument
2018/05/31 18:23:28 warnings: ZEBRA: ifam_read() doesn't read all socket data
2018/05/31 18:23:28 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed: Invalid argument
2018/05/31 18:23:28 warnings: ZEBRA: ifam_read() doesn't read all socket data

Program received signal SIGSEGV, Segmentation fault.
0x000000000040e8f5 in connected_up ()
(gdb)

Same problem with tun, gre, gif interfaces.

I think this is already fixed... Will autoclose in 1 week if no responses.

@polychaeta autoclose in 1 week

Was this page helpful?
0 / 5 - 0 ratings