From owner-freebsd-net@freebsd.org Fri Oct 11 09:09:17 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9F8361446D5 for ; Fri, 11 Oct 2019 09:09:17 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from sfo.monkeybrains.net (sfo.monkeybrains.net [208.69.40.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.monkeybrains.net", Issuer "AlphaSSL CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46qMb04Nl4z4Dl4 for ; Fri, 11 Oct 2019 09:09:16 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from Rudys-iMac.local (148-64-102-151.PUBLIC.monkeybrains.net [148.64.102.151] (may be forged)) (authenticated bits=0) by sfo.monkeybrains.net (8.15.2/8.15.2) with ESMTPSA id x9B999A8077330 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 11 Oct 2019 02:09:09 -0700 (PDT) (envelope-from crapsh@monkeybrains.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=monkeybrains.net; s=dkim; t=1570784949; bh=CUE0pup90j8nID6Woq0VgeAeRbJFXvlKJDBeoYMmQ7M=; h=To:From:Subject:Date; b=JMqrd1RX4LEx7Xlpp83AS0MjkfVeKfy92PP+06AN7LaJpLxR2WKqufouKLU04SN2Q qQpIXF4HEuATZmvHwgovo6LFQFjwBilXeLpbMsCjmT2vxBMKxf9+UmMew5ckRyHm5X fNf2zGflGYTDVt9GWpaXSd1tv1Vb+o2TSjZuMQmM= X-Authentication-Warning: mail.monkeybrains.net: Host 148-64-102-151.PUBLIC.monkeybrains.net [148.64.102.151] (may be forged) claimed to be Rudys-iMac.local To: freebsd-net@freebsd.org From: Rudy Subject: FRR on FreeBSD 12 - problems with OSPFv3 Message-ID: Date: Fri, 11 Oct 2019 02:09:09 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.100.2 at mail.monkeybrains.net X-Virus-Status: Clean X-Rspamd-Queue-Id: 46qMb04Nl4z4Dl4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=monkeybrains.net header.s=dkim header.b=JMqrd1RX; dmarc=pass (policy=none) header.from=monkeybrains.net; spf=pass (mx1.freebsd.org: domain of crapsh@monkeybrains.net designates 208.69.40.9 as permitted sender) smtp.mailfrom=crapsh@monkeybrains.net X-Spamd-Result: default: False [-5.77 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[monkeybrains.net:s=dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[monkeybrains.net.dwl.dnswl.org : 127.0.5.1]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[monkeybrains.net:+]; DMARC_POLICY_ALLOW(-0.50)[monkeybrains.net,none]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.77)[ipnet: 208.69.40.0/22(-4.88), asn: 32329(-3.92), country: US(-0.05)]; ASN(0.00)[asn:32329, ipnet:208.69.40.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 09:09:17 -0000 I just upgraded from FreeBSD 11 to 12 and upgrade from quagga to FRR at the same time. I've tried frr6 and frr7 and get the same errors. bgpd and ospfd work fine, but ospf6 doesn't work.  Not sure what I'm going wrong. If I commend out all the interfaces EXCEPT lo0, ospf6d does not crash. router ospf6  ospf6 router-id 172.17.18.98  redistribute connected route-map MONKEY-ospf6  redistribute static route-map MONKEY-AND-MORE-ospf6  !interface cxl1 area 0.0.0.0  !interface cxl2 area 0.0.0.0  !interface cxl3 area 0.0.0.0  interface lo0 area 0.0.0.0 As soon as I get routes from my network, ospf6d tanks. Any thoughts? Here is the output from zebra and ospf6. *** LOGS *** 2019/10/10 23:19:31 OSPF6: Scheduling cxl1 for sso 2019/10/10 23:19:31 OSPF6: SPF: Scheduled in 0 msec 2019/10/10 23:19:31 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 sec 5 usec, Reason: L+ 2019/10/10 23:19:31 OSPF6: Scheduling cxl2 for sso 2019/10/10 23:19:31 OSPF6: SPF: Scheduled in 50 msec 2019/10/10 23:19:31 OSPF6: Scheduling cxl3 for sso 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: [Down]->[Init] (HelloReceived) 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: [Init]->[ExStart] (2-WayReceived) 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: [ExStart]->[ExChange] (NegotiationDone) 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: [ExChange]->[Loading] (ExchangeDone) 2019/10/10 23:19:31 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 sec 109 usec, Reason: R+, R-, L+ 2019/10/10 23:19:31 OSPF6: SPF: Scheduled in 83 msec 2019/10/10 23:19:31 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 sec 116 usec, Reason: R+, N+, L+ 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: [Down]->[Init] (HelloReceived) 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: [Init]->[ExStart] (2-WayReceived) 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: [ExStart]->[ExChange] (NegotiationDone) 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: [ExChange]->[Loading] (ExchangeDone) 2019/10/10 23:19:33 OSPF6: SPF: Scheduled in 0 msec 2019/10/10 23:19:33 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 sec 99 usec, Reason: R+, R- 2019/10/10 23:19:36 OSPF6: Neighbor state change 172.17.24.25%cxl3: [Loading]->[Full] (LoadingDone) 2019/10/10 23:19:36 OSPF6: SPF: Scheduled in 0 msec 2019/10/10 23:19:31 ZEBRA: client 32 says hello and bids fair to announce only ospf6 routes vrf=0 2019/10/10 23:19:38 ZEBRA: [EC 4043309117] Client 'ospf6' encountered an error and is shutting down. 2019/10/10 23:19:38 ZEBRA: release_daemon_table_chunks: Released 0 table chunks 2019/10/10 23:19:38 ZEBRA: release_daemon_label_chunks: Released 0 label chunks 2019/10/10 23:19:39 ZEBRA: client 32 disconnected. 100 ospf6 routes removed from the rib *** CRASH *** If I run on the command line and don't background, it bombs after 7 seconds: # ospf6d Illegal instruction Here is the end of truss: # truss ospf6d ... mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34863378432 (0x81e04f000) mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34863382528 (0x81e050000) mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34863386624 (0x81e051000) mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34863390720 (0x81e052000) SIGNAL 11 (SIGSEGV) code=SEGV_ACCERR trapno=12 addr=0x7fffdffffff8 process killed, signal = 4 I wasn't seeing any CORE files when the process dumped, so I turned this knob: sysctl kern.sugid_coredump=1 Now there is a 1 GByte core file! # /usr/obj/usr/src/amd64.amd64/gnu/usr.bin/gdb/gdb/gdb /usr/local/sbin/ospf6d ospf6d.core (gdb) bt #0  0x000000080030678c in hash_get () from /usr/local/lib/libfrr.so.0 #1  0x000000080033a9b2 in route_node_lookup () from /usr/local/lib/libfrr.so.0 #2  0x0000000000241345 in ospf6_route_lookup () #3  0x000000000022e718 in ospf6_abr_examin_summary () #4  0x000000000022f13b in ospf6_abr_examin_brouter () #5  0x00000000002473ad in ospf6_top_init () #6  0x000000000022efda in ospf6_abr_examin_summary () #7  0x000000000022f13b in ospf6_abr_examin_brouter () #8  0x00000000002473ad in ospf6_top_init () #9  0x000000000022efda in ospf6_abr_examin_summary () #10 0x000000000022f13b in ospf6_abr_examin_brouter () #11 0x00000000002473ad in ospf6_top_init () .... lines #3 - #5 repeat to over #8500 ... I stopped hitting ENTER around there and quit. *** The CONFIG *** ! ! Zebra configuration saved from vty !   2019/10/10 23:58:21 ! frr version 7.1 frr defaults traditional ! hostname red-ospf6 password r3moved log file /var/log/frr/ospf6d.log service advanced-vty ! debug ospf6 neighbor state ! ! interface cxl1  ipv6 ospf6 cost 1  ipv6 ospf6 priority 0  ipv6 ospf6 network point-to-point ! interface cxl2  ipv6 ospf6 cost 1  ipv6 ospf6 priority 0  ipv6 ospf6 network point-to-point ! interface cxl3  ipv6 ospf6 cost 1  ipv6 ospf6 priority 0  ipv6 ospf6 network point-to-point ! interface lo0  ipv6 ospf6 cost 1  ipv6 ospf6 network broadcast ! router ospf6  ospf6 router-id 172.17.17.17  (made example IP)  redistribute connected route-map MONKEY-ospf6  !redistribute static route-map MONKEY-AND-MORE-ospf6  interface lo0 area 0.0.0.0  interface cxl1 area 0.0.0.0  interface cxl2 area 0.0.0.0  interface cxl3 area 0.0.0.0 ! access-list access4 permit 127.0.0.1/32 ! ipv6 access-list access6 permit ::1/128 ! ipv6 prefix-list CustomerOspf seq 5 permit 2620:62:c000::/48 le 64 ipv6 prefix-list CustomerOspf seq 99 deny any ipv6 prefix-list DefaultOnly seq 5 permit ::/0 ipv6 prefix-list DefaultOnly seq 99 deny any ipv6 prefix-list MonkeyOspf seq 5 permit 2607:f598::/32 le 64 ipv6 prefix-list MonkeyOspf seq 10 permit 2607:f598:0:dada::/64 le 128 ipv6 prefix-list MonkeyOspf seq 99 deny any ipv6 prefix-list SFMix seq 5 permit 2001:504:30::/64 ipv6 prefix-list SFMix seq 99 deny any ! route-map MONKEY-AND-MORE-ospf6 permit 10  match ipv6 address prefix-list CustomerOspf  set metric-type type-2  set metric 21 ! route-map MONKEY-AND-MORE-ospf6 permit 20  match ipv6 address prefix-list MonkeyOspf  set metric 21 ! route-map MONKEY-AND-MORE-ospf6 permit 30  match ipv6 address prefix-list DefaultOnly  set metric 21 ! route-map MONKEY-AND-MORE-ospf6 permit 40  match ipv6 address prefix-list SFMix  set metric 221 ! route-map MONKEY-ospf6 permit 10  match ipv6 address prefix-list MonkeyOspf  set metric-type type-2  set metric 21 ! route-map MONKEY-ospf6 permit 20  match ipv6 address prefix-list SFMix  set metric 20  set metric-type type-2 ! route-map MONKEY-ospf6 permit 30  set metric 22 ! line vty  access-class access4  ipv6 access-class access6  exec-timeout 0 0 ! Any help would be appreciated. Rudy