{"action":"closed","issue":{"url":"https://api.github.com/repos/FRRouting/frr/issues/1878","repository_url":"https://api.github.com/repos/FRRouting/frr","labels_url":"https://api.github.com/repos/FRRouting/frr/issues/1878/labels{/name}","comments_url":"https://api.github.com/repos/FRRouting/frr/issues/1878/comments","events_url":"https://api.github.com/repos/FRRouting/frr/issues/1878/events","html_url":"https://github.com/FRRouting/frr/issues/1878","id":304587723,"node_id":"MDU6SXNzdWUzMDQ1ODc3MjM=","number":1878,"title":"ospf6d crashes when receiving routes","user":{"login":"Wouter0100","id":864520,"node_id":"MDQ6VXNlcjg2NDUyMA==","avatar_url":"https://avatars3.githubusercontent.com/u/864520?v=4","gravatar_id":"","url":"https://api.github.com/users/Wouter0100","html_url":"https://github.com/Wouter0100","followers_url":"https://api.github.com/users/Wouter0100/followers","following_url":"https://api.github.com/users/Wouter0100/following{/other_user}","gists_url":"https://api.github.com/users/Wouter0100/gists{/gist_id}","starred_url":"https://api.github.com/users/Wouter0100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wouter0100/subscriptions","organizations_url":"https://api.github.com/users/Wouter0100/orgs","repos_url":"https://api.github.com/users/Wouter0100/repos","events_url":"https://api.github.com/users/Wouter0100/events{/privacy}","received_events_url":"https://api.github.com/users/Wouter0100/received_events","type":"User","site_admin":false},"labels":[{"id":501651398,"node_id":"MDU6TGFiZWw1MDE2NTEzOTg=","url":"https://api.github.com/repos/FRRouting/frr/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-13T00:30:43Z","updated_at":"2018-11-03T14:17:26Z","closed_at":"2018-11-03T14:17:25Z","author_association":"NONE","body":"I've been playing with FRR lately to deploy IPv6 and to play with FRR, where I first had Quagga on VyOS, this issue unfortunately also occurred. But now everything is running on FRR, that's why I'm reporting it here.\r\n\r\nWe have a fairly easy setup: 2 Ubuntu 16.04.4 LTS machines (running FRR in Snaps) both interconnected and connected to 2 Juniper switches in a VC. When one of the Ubuntu machines reboots or the ospf6 is cleared (`clear ipv6 ospf6 neighbor`) the other its ospf6d service crashes.\r\n\r\nAfter the service is crashed, it's automatically restarted (by Snap, I suppose) and then it works. The behavior is kinda weird, as it (normally) works fine when starting and runs stable.\r\n\r\nCore dump:\r\n```\r\n2018/03/13 01:16:53 OSPF6: Assertion `current == route' failed in file ospf6_route.c, line 777, function ospf6_route_remove\r\n2018/03/13 01:16:53 OSPF6: Backtrace for 14 stack frames:\r\n2018/03/13 01:16:53 OSPF6: [bt 0] /usr/lib/libfrr.so.0(zlog_backtrace+0x3a) [0x7f8288af75da]\r\n2018/03/13 01:16:53 OSPF6: [bt 1] /usr/lib/libfrr.so.0(_zlog_assert_failed+0x5f) [0x7f8288af7b0f]\r\n2018/03/13 01:16:53 OSPF6: [bt 2] /snap/frr/49/sbin/ospf6d(ospf6_route_remove+0xe1) [0x41bb93]\r\n2018/03/13 01:16:53 OSPF6: [bt 3] /snap/frr/49/sbin/ospf6d(ospf6_route_remove+0x159) [0x41bc0b]\r\n2018/03/13 01:16:53 OSPF6: [bt 4] /snap/frr/49/sbin/ospf6d(ospf6_intra_prefix_lsa_remove+0x20a) [0x41f9c3]\r\n2018/03/13 01:16:53 OSPF6: [bt 5] /snap/frr/49/sbin/ospf6d(ospf6_lsdb_add+0x11c) [0x40ed6f]\r\n2018/03/13 01:16:53 OSPF6: [bt 6] /snap/frr/49/sbin/ospf6d(ospf6_install_lsa+0x18b) [0x41a0f9]\r\n2018/03/13 01:16:53 OSPF6: [bt 7] /snap/frr/49/sbin/ospf6d(ospf6_receive_lsa+0x4dd) [0x41a747]\r\n2018/03/13 01:16:53 OSPF6: [bt 8] /snap/frr/49/sbin/ospf6d(ospf6_receive+0x1590) [0x40b9e5]\r\n2018/03/13 01:16:53 OSPF6: [bt 9] /usr/lib/libfrr.so.0(thread_call+0x58) [0x7f8288ae6698]\r\n2018/03/13 01:16:53 OSPF6: [bt 10] /usr/lib/libfrr.so.0(frr_run+0x88) [0x7f8288b12f18]\r\n2018/03/13 01:16:53 OSPF6: [bt 11] /snap/frr/49/sbin/ospf6d(main+0xa9) [0x408c37]\r\n2018/03/13 01:16:53 OSPF6: [bt 12] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f8288506830]\r\n2018/03/13 01:16:53 OSPF6: [bt 13] /snap/frr/49/sbin/ospf6d(_start+0x29) [0x409009]\r\n2018/03/13 01:16:53 OSPF6: Current thread function ospf6_receive, scheduled from file ospf6_message.c, line 1530\r\n```\r\n\r\nSyslog:\r\n```\r\n2018-03-13T00:04:07Z frr.ospf6d[3882]: + [ -e /var/snap/frr/49/ospf6d.conf ]\r\n2018-03-13T00:04:07Z frr.ospf6d[3882]: + exec /snap/frr/49/sbin/ospf6d -f /var/snap/frr/49/ospf6d.conf --pid_file /var/snap/frr/49/ospf6d.pid --socket /var/snap/frr/49/zsock --vty_socket /var/snap/frr/49\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: showing active allocations in memory group libfrr\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Vector                        :   6220 *         16\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Vector index                  :   6220 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Link List                     :     66 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Link Node                     :    223 *         24\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  VTY                           :      3 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Graph                         :     16 *          8\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Graph Node                    :   3091 *         32\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Host config                   :      1 *         29\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Command Tokens                :   2574 *         64\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Command Token Text            :   1986 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Command Token Help            :   1986 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Prefix                        :     18 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Thread                        :     62 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Thread master                 :      1 *        504\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Thread stats                  :     36 *         64\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Interface                     :      6 *        184\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Connected                     :     14 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Buffer                        :      2 *         24\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route table                   :     41 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route node                    :    172 *         96\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Hash                          :     27 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Hash Bucket                   :    593 *         24\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Hash Index                    :     27 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map                     :      9 *         64\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map name                :     11 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map index               :      9 *        104\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map rule                :      1 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map rule str            :      1 *          8\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map compiled            :      1 *          8\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Route map dependency          :      1 *         24\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Stream                        :      2 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Stream data                   :      2 *       4096\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Logging                       :      1 *         72\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Prefix List                   :      1 *         80\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Prefix List Str               :      1 *          8\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Prefix List Entry             :      1 *        104\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Prefix List Trie Table        :      1 *       4096\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Zclient                       :      1 *       2896\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Redistribution instance IDs   :      4 *          2\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Privilege information         :      2 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Priority queue                :      2 *         32\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Priority queue data           :      2 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  VRF                           :      1 *        136\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  VRF bit-map                   :     96 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  Temporary memory              :      1 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: showing active allocations in memory group ospf6d\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 top                     :      1 *        576\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 area                    :      1 *        216\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 interface               :      3 *        208\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 neighbor                :      2 *        248\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 route                   :     49 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 message                 :      2 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 LSA                     :    104 * (variably sized)\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 LSA database            :     28 *         40\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 vertex                  :      3 *        232\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 nexthop                 :     38 *         20\r\n2018-03-13T00:08:29Z frr.ospf6d[3882]: log: memstats:  OSPF6 ext. info               :      6 *         32\r\n2018-03-13T00:08:30Z systemd[1]: snap.frr.ospf6d.service: Main process exited, code=dumped, status=6/ABRT\r\n2018-03-13T00:08:30Z systemd[1]: snap.frr.ospf6d.service: Unit entered failed state.\r\n2018-03-13T00:08:30Z systemd[1]: snap.frr.ospf6d.service: Failed with result 'core-dump'.\r\n2018-03-13T00:08:30Z systemd[1]: snap.frr.ospf6d.service: Service hold-off time over, scheduling restart.\r\n2018-03-13T00:08:30Z systemd[1]: Stopped Service for snap application frr.ospf6d.\r\n2018-03-13T00:08:30Z systemd[1]: Started Service for snap application frr.ospf6d.\r\n2018-03-13T00:08:30Z frr.ospf6d[4353]: + [ -e /var/snap/frr/49/ospf6d.conf ]\r\n2018-03-13T00:08:30Z frr.ospf6d[4353]: + exec /snap/frr/49/sbin/ospf6d -f /var/snap/frr/49/ospf6d.conf --pid_file /var/snap/frr/49/ospf6d.pid --socket /var/snap/frr/49/zsock --vty_socket /var/snap/frr/49\r\n```\r\n\r\nWhen searching for this issue, I found a (maybe) related issue in Quagga, which is still [open](https://bugzilla.quagga.net/show_bug.cgi?id=747). If needed, I'm more then happy to provide the necessary tcpdump or logs."}}
{"actor":{"display_login":"Wouter0100"}}