Bug 228643 - net/frr does not run on FreeBSD 11.2-BETA2
Summary: net/frr does not run on FreeBSD 11.2-BETA2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Olivier Cochard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-31 15:33 UTC by mike
Modified: 2018-07-06 07:39 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (olivier)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike 2018-05-31 15:33:34 UTC
On a recent RELENG_11 (r334152) I am no longer able to start up the
routing daemons. I get an Abort at the end.  Anyone have any ideas what
this might be about ?

# zebra -A127.0.0.1
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 errors: ZEBRA: if_ioctl(SIOCGIFMEDIA) failed:
Invalid argument
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
2018/05/30 14:56:38 warnings: ZEBRA: ifam_read() doesn't read all socket
data
core_handler: showing active allocations in memory group libfrr
core_handler: memstats:  Work queue name string        :      1 *         22
core_handler: memstats:  Work queue item               :      1 *         24
core_handler: memstats:  Work queue                    :      2 *
(variably sized)
core_handler: memstats:  VRF                           :      1 *        160
core_handler: memstats:  Vector index                  :   2637 *
(variably sized)
core_handler: memstats:  Vector                        :   2637 *         16
core_handler: memstats:  Thread stats                  :      3 *         64
core_handler: memstats:  Thread master                 :      3 *
(variably sized)
core_handler: memstats:  Thread                        :     17 *
(variably sized)
core_handler: memstats:  Route node                    :    126 *
(variably sized)
core_handler: memstats:  Route table                   :     28 *         48
core_handler: memstats:  Prefix                        :     38 *         40
core_handler: memstats:  Priority queue data           :      1 *        256
core_handler: memstats:  Priority queue                :      1 *         32
core_handler: memstats:  Logical-Router Name           :      1 *         23
core_handler: memstats:  Logical-Router                :      1 *         72
core_handler: memstats:  Nexthop                       :     38 *        112
core_handler: memstats:  Temporary memory              :     15 *
(variably sized)
core_handler: memstats:  Logging                       :      1 *         72
core_handler: memstats:  Link Node                     :    145 *         24
core_handler: memstats:  Link List                     :     67 *         40
core_handler: memstats:  Connected                     :     20 *         40
core_handler: memstats:  Interface                     :     13 *        400
core_handler: memstats:  Hook entry                    :      2 *         48
core_handler: memstats:  Hash Index                    :     45 *
(variably sized)
core_handler: memstats:  Hash Bucket                   :    389 *         32
core_handler: memstats:  Hash                          :     90 *
(variably sized)
core_handler: memstats:  Graph Node                    :   1306 *         32
core_handler: memstats:  Graph                         :     11 *          8
core_handler: memstats:  Command Argument Name         :    101 *
(variably sized)
core_handler: memstats:  Command Token Help            :    855 *
(variably sized)
core_handler: memstats:  Command Token Text            :    855 *
(variably sized)
core_handler: memstats:  Command Tokens                :   1060 *         72
core_handler: memstats:  Host config                   :      1 *         23
core_handler: showing active allocations in memory group zebra
core_handler: memstats:  Zebra Name Space              :      1 *         88
core_handler: memstats:  RIB table info                :      4 *         16
core_handler: memstats:  RIB destination               :     38 *         48
core_handler: memstats:  Route Entry                   :     38 *         88
core_handler: memstats:  ZEBRA VRF                     :      1 *       8888
core_handler: showing active allocations in memory group Label Manager
Abort
Comment 1 Olivier Cochard freebsd_committer 2018-05-31 16:17:54 UTC
Hi, 
it runs here on a 11.2-BETA3.

But FRR 4.0 seems to have lot's of problem with GIF interfaces or other stability problems:
https://github.com/FRRouting/frr/issues/1907
https://github.com/FRRouting/frr/issues/1899
Comment 2 mike 2018-05-31 16:28:22 UTC
OK, narrowed it down a little. I can run it on this box, if there are no OpenVPN tun interfaces active. If there are no OpenVPN / tun interfaces, all is fine. Soon as I startup a single openvpn instance, zebra crashes with the above error.
I guess related to gif interface thing. 3.0 seems to be ok
Comment 3 mike 2018-05-31 17:08:25 UTC
I added 
https://github.com/FRRouting/frr/issues/2338
Comment 4 commit-hook freebsd_committer 2018-07-06 07:36:56 UTC
A commit references this bug:

Author: olivier
Date: Fri Jul  6 07:36:10 UTC 2018
New revision: 473998
URL: https://svnweb.freebsd.org/changeset/ports/473998

Log:
  New port: net/frr5 (5.0.1).

  PR:		229397
  Reported by: 	pi
  Sponsored by:	Orange

  Fix build with SNMP option.

  PR:		228159
  Reported by:	pautina@kharkiv.net

  Fix crash with gif/tun/gre interface.

  PR:		228643
  Reported by:	mike@sentex.net

Changes:
  head/net/Makefile
  head/net/frr3/Makefile
  head/net/frr4/Makefile
  head/net/frr5/
  head/net/frr5/Makefile
  head/net/frr5/distinfo
  head/net/frr5/files/patch-Makefile.am
  head/net/frr5/files/patch-configure.ac
  head/net/frr5/files/patch-lib_vty.h
  head/net/frr5/files/patch-zebra_ioctl.c
  head/net/frr5/pkg-message
  head/net/frr5/pkg-plist
  head/net/quagga/Makefile
Comment 5 Olivier Cochard freebsd_committer 2018-07-06 07:39:02 UTC
New net/frr5 (5.0.1) should resolve your problem.