Networking

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • ospfd assertion `new_distance <= w->distance' failed

    6 answers - 18629 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello,
    I have configured a new test router (r3-test) with quagga-devel from CVS
    as of January 27th (the later changes doesn't have any influence on
    ospfd, as far as I can tell).
    The zebra daemon is running without any problems, but when starting
    ospfd it consistently crashes after a few seconds with the following
    stack trace:
    2007/02/04 18:55:45 SPF: Assertion `new_distance <= w->distance' failed
    in file ospf_spf.c, line 442, function ospf_spf_add_parent
    2007/02/04 18:55:45 SPF: Backtrace for 11 stack frames:
    2007/02/04 18:55:45 SPF: [bt 0]
    /usr/lib/libzebra.so.0(zlog_backtrace+0x1f) [0xb7f2cfe0]
    2007/02/04 18:55:45 SPF: [bt 1]
    /usr/lib/libzebra.so.0(_zlog_assert_failed+0x83) [0xb7f2d200]
    2007/02/04 18:55:45 SPF: [bt 2] /usr/lib/libospf.so.0 [0xb7f7b9d5]
    2007/02/04 18:55:45 SPF: [bt 3] /usr/lib/libospf.so.0 [0xb7f7bd73]
    2007/02/04 18:55:45 SPF: [bt 4] /usr/lib/libospf.so.0 [0xb7f7c07c]
    2007/02/04 18:55:45 SPF: [bt 5] /usr/lib/libospf.so.0 [0xb7f7c6d4]
    2007/02/04 18:55:45 SPF: [bt 6] /usr/lib/libospf.so.0 [0xb7f7c825]
    2007/02/04 18:55:45 SPF: [bt 7]
    /usr/lib/libzebra.so.0(thread_call+0x62) [0xb7f2281b]
    2007/02/04 18:55:45 SPF: [bt 8] /usr/lib/quagga/ospfd(main+0x28f)
    [0x80493f0]
    2007/02/04 18:55:45 SPF: [bt 9]
    /lib/tls/libc.so.6(__libc_start_main+0xf4) [0xb7d97974]
    2007/02/04 18:55:45 SPF: [bt 10] /usr/lib/quagga/ospfd [0x8049051]
    ospfd.conf and ospfd.log are attached (with passwords and IPs changed).
    A quick overview over the network layout follows:
    There are 2 network segments connected to this router running SPF:
    10.0.1.0/24 and 10.0.4.0/22. 10.0.0.0/24 is used /32 loop-back addresses
    on dummy interfaces.
    There are two main routers (r2 and r4), the test router that crashed
    above (r3-test), and some other routers that interface with other segments.
    r2 has IPs 10.0.0.2/32, 10.0.1.2/24, and 10.0.4.2/22.
    r4 has IPs 10.0.0.4/32, 10.0.1.4/24, and 10.0.4.4/22.
    r3-test has IPs 10.0.0.3/32, 10.0.1.3/24, and 10.0.4.3/22.
    r3-test is running Debian Sarge Linux.
    Let me know if any further information is needed - I am willing to try
    patches etc., and like I said, the crash happens consistently within
    seconds after starting ospfd.
    Regards,
    Anders K. Pedersen
    !
    hostname ospfd
    password XXX
    enable password XXX
    log file /var/log/quagga/ospfd.log
    log trap informational
    service password-encryption
    !
    !
    !
    interface lo
    !
    interface dummy0
    !
    interface eth0
    ip ospf authentication-key XXX
    ip ospf priority 0
    !
    interface eth1
    ip ospf authentication-key XXX
    ip ospf priority 0
    !
    router ospf
    ospf router-id 10.0.0.3
    redistribute connected
    redistribute static
    passive-interface dummy0
    network 10.0.0.3/32 area 0.0.0.0
    network 10.0.1.0/24 area 0.0.0.0
    network 10.0.4.0/22 area 10.0.4.0
    area 0 authentication
    area 10.0.4.0 authentication
    !
    access-list ADMIN permit 127.0.0.0/8
    !
    line vty
    access-class ADMIN
    !
    2007/02/04 18:55:30 SPF: ASBR[Status:1]: Update
    2007/02/04 18:55:30 SPF: ASBR[Status:2]: Update
    2007/02/04 18:55:30 SPF: ASBR[Status:2]: Already ASBR
    2007/02/04 18:55:30 SPF: SPFd 0.99.6 starting: vty@2604
    2007/02/04 18:55:30 SPF: interface 10.0.1.3 [1] join AllSPFRouters Multicast group.
    2007/02/04 18:55:30 SPF: interface 10.0.4.3 [2] join AllSPFRouters Multicast group.
    2007/02/04 18:55:30 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:30 SPF: DR-Election[1st]: Backup 10.0.5.240
    2007/02/04 18:55:30 SPF: DR-Election[1st]: DR 10.0.5.240
    2007/02/04 18:55:30 SPF: DR-Election[1st]: Backup 10.0.1.153
    2007/02/04 18:55:30 SPF: DR-Election[1st]: DR 10.0.1.153
    2007/02/04 18:55:31 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.166
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.166
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.10
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.10
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:31 SPF: Packet[DD]: Neighbor 10.0.0.2: Initial DBD from Slave, ignoring.
    2007/02/04 18:55:31 SPF: Packet[DD]: Neighbor 10.0.0.4 Negotiation done (Slave).
    2007/02/04 18:55:31 SPF: Packet[DD]: Neighbor 10.0.0.2 Negotiation done (Master).
    2007/02/04 18:55:31 SPF: Link State Update: Unknown Neighbor 10.0.0.4 on int: eth0:10.0.1.3
    2007/02/04 18:55:31 SPF: nsm_change_state(10.0.0.2, Loading -Full): scheduling new router-LSA origination
    2007/02/04 18:55:31 SPF: nsm_change_state(10.0.0.4, Loading -Full): scheduling new router-LSA origination
    2007/02/04 18:55:31 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:31 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:31 SPF: Link State Update: Unknown Neighbor 10.0.0.4 on int: eth0:10.0.1.3
    2007/02/04 18:55:31 SPF: Link State Update: Unknown Neighbor 10.0.0.4 on int: eth0:10.0.1.3
    2007/02/04 18:55:31 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:31 SPF: Link State Acknowledgment: Unknown Neighbor 10.0.0.4.
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.132
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:31 SPF: Packet[DD]: Neighbor 10.0.0.4 Negotiation done (Slave).
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:31 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:31 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:32 SPF: Link State Acknowledgment: Unknown Neighbor 10.0.1.194.
    2007/02/04 18:55:32 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:32 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:32 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:32 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:32 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:32 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:33 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:33 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:34 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:34 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:34 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:34 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:34 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:34 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:34 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:34 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:34 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:35 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:35 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:35 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:35 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:35 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:36 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:36 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:36 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:36 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:36 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:36 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:36 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:36 SPF: Link State Update: Unknown Neighbor 10.0.1.194 on int: eth0:10.0.1.3
    2007/02/04 18:55:36 SPF: nsm_change_state(10.0.0.4, Loading -Full): scheduling new router-LSA origination
    2007/02/04 18:55:36 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:36 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:36 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:36 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:36 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:37 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:37 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:37 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:37 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:37 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:37 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: Link State Acknowledgment: Unknown Neighbor 10.0.1.194.
    2007/02/04 18:55:38 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:38 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:39 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:39 SPF: DR-Election[1st]: DR 10.0.1.4
    2007/02/04 18:55:39 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:39 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:39 SPF: Packet[DD]: Neighbor 10.0.1.194 Negotiation done (Slave).
    2007/02/04 18:55:39 SPF: nsm_change_state(10.0.1.194, Loading -Full): scheduling new router-LSA origination
    2007/02/04 18:55:39 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:39 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:39 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:39 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:39 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:39 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:39 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:40 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:40 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:40 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:40 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:40 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:40 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:40 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:40 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:40 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:40 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:40 SPF: DR-Election[1st]: Backup 10.0.1.4
    2007/02/04 18:55:40 SPF: DR-Election[1st]: DR 10.0.1.194
    2007/02/04 18:55:40 SPF: DR-Election[1st]: Backup 10.0.4.2
    2007/02/04 18:55:40 SPF: DR-Election[1st]: DR 10.0.4.4
    2007/02/04 18:55:41 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:41 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:41 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:42 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:42 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:43 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:43 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:43 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:44 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:44 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:44 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:45 SPF: interface eth1:10.0.4.3: ospf_read authentication failed.
    2007/02/04 18:55:45 SPF: Assertion `new_distance <= w->distance' failed in file ospf_spf.c, line 442, function ospf_spf_add_parent
    2007/02/04 18:55:45 SPF: Backtrace for 11 stack frames:
    2007/02/04 18:55:45 SPF: [bt 0] /usr/lib/libzebra.so.0(zlog_backtrace+0x1f) [0xb7f2cfe0]
    2007/02/04 18:55:45 SPF: [bt 1] /usr/lib/libzebra.so.0(_zlog_assert_failed+0x83) [0xb7f2d200]
    2007/02/04 18:55:45 SPF: [bt 2] /usr/lib/libospf.so.0 [0xb7f7b9d5]
    2007/02/04 18:55:45 SPF: [bt 3] /usr/lib/libospf.so.0 [0xb7f7bd73]
    2007/02/04 18:55:45 SPF: [bt 4] /usr/lib/libospf.so.0 [0xb7f7c07c]
    2007/02/04 18:55:45 SPF: [bt 5] /usr/lib/libospf.so.0 [0xb7f7c6d4]
    2007/02/04 18:55:45 SPF: [bt 6] /usr/lib/libospf.so.0 [0xb7f7c825]
    2007/02/04 18:55:45 SPF: [bt 7] /usr/lib/libzebra.so.0(thread_call+0x62) [0xb7f2281b]
    2007/02/04 18:55:45 SPF: [bt 8] /usr/lib/quagga/ospfd(main+0x28f) [0x80493f0]
    2007/02/04 18:55:45 SPF: [bt 9] /lib/tls/libc.so.6(__libc_start_main+0xf4) [0xb7d97974]
    2007/02/04 18:55:45 SPF: [bt 10] /usr/lib/quagga/ospfd [0x8049051]
    Quagga-dev mailing list
    Quagga-dev (AT) lists (DOT) quagga.net
  • No.1 | | 1891 bytes | |

    Sun, 4 Feb 2007, Anders K. Pedersen wrote:

    I have configured a new test router (r3-test) with quagga-devel
    from CVS as of January 27th (the later changes doesn't have any
    influence on ospfd, as far as I can tell).

    The zebra daemon is running without any problems, but when starting
    ospfd it consistently crashes after a few seconds with the
    following stack trace:

    2007/02/04 18:55:45 SPF: Assertion `new_distance <= w->distance' failed
    in file ospf_spf.c, line 442, function ospf_spf_add_parent

    Ah, this is due to the patch at:

    2007/02/04 18:55:45 SPF: Backtrace for 11 stack frames:
    2007/02/04 18:55:45 SPF: [bt 0]
    /usr/lib/libzebra.so.0(zlog_backtrace+0x1f) [0xb7f2cfe0]
    2007/02/04 18:55:45 SPF: [bt 1]
    /usr/lib/libzebra.so.0(_zlog_assert_failed+0x83) [0xb7f2d200]
    2007/02/04 18:55:45 SPF: [bt 2] /usr/lib/libospf.so.0 [0xb7f7b9d5]
    2007/02/04 18:55:45 SPF: [bt 3] /usr/lib/libospf.so.0 [0xb7f7bd73]
    2007/02/04 18:55:45 SPF: [bt 4] /usr/lib/libospf.so.0 [0xb7f7c07c]
    2007/02/04 18:55:45 SPF: [bt 5] /usr/lib/libospf.so.0 [0xb7f7c6d4]
    2007/02/04 18:55:45 SPF: [bt 6] /usr/lib/libospf.so.0 [0xb7f7c825]
    2007/02/04 18:55:45 SPF: [bt 7]

    This trace isn't at all informative - however as the asserting
    function has only one caller anyway

    Let me know if any further information is needed - I am willing to try
    patches etc., and like I said, the crash happens consistently within
    seconds after starting ospfd.

    Could you run ospfd under GDB and when it asserts use the 'up'
    command to go up the stack frame of 'ospf_nexthop_calculation' then
    type 'list' (i.e. I want to see where in ospf_nexthop_calculation
    its calling ospf_spf_add_parent).

    Also, could you get logs with 'debug ospf event' set?

    regards,
  • No.2 | | 2010 bytes | |

    Paul Jakma wrote:
    Sun, 4 Feb 2007, Anders K. Pedersen wrote:
    >The zebra daemon is running without any problems, but when starting
    >ospfd it consistently crashes after a few seconds with the following
    >stack trace:
    >>

    >2007/02/04 18:55:45 SPF: Assertion `new_distance <= w->distance' failed
    >in file ospf_spf.c, line 442, function ospf_spf_add_parent


    Ah, this is due to the patch at:


    >Let me know if any further information is needed - I am willing to try
    >patches etc., and like I said, the crash happens consistently within
    >seconds after starting ospfd.


    Could you run ospfd under GDB and when it asserts use the 'up' command
    to go up the stack frame of 'ospf_nexthop_calculation' then type 'list'
    (i.e. I want to see where in ospf_nexthop_calculation its calling
    ospf_spf_add_parent).

    (gdb) run
    Starting program: /usr/lib/quagga/ospfd

    Program received signal SIGABRT, Aborted.
    [Switching to process 23162]
    0xb7d5883b in raise () from /lib/tls/libc.so.6
    (gdb) up
    #1 0xb7d59fa2 in abort () from /lib/tls/libc.so.6
    (gdb) up
    #2 0xb7edb208 in _zlog_assert_failed () from /usr/lib/libzebra.so.0
    (gdb) up
    #3 0xb7f299d5 in ospf_spf_add_parent (v=0x80dfe00, w=0x80deba0,
    newhop=0x80dec00,
    l=0x0) at ospf_spf.c:442
    442 ospf_spf.c: No such file or directory.
    in ospf_spf.c
    (gdb) up
    #4 0xb7f29d73 in ospf_nexthop_calculation (area=0x80bec00, v=0x80dfe00,
    w=0x80deba0,
    l=0x80d3a40) at ospf_spf.c:659
    659 in ospf_spf.c
    (gdb) list
    654 in ospf_spf.c

    Also, could you get logs with 'debug ospf event' set?

    Attached (gzip'ed due to size).

    Let me know if you need anything else.

    Regards,
    Anders K. Pedersen

    Quagga-dev mailing list
    Quagga-dev (AT) lists (DOT) quagga.net
  • No.3 | | 2016 bytes | |

    Anders K. Pedersen wrote:
    Paul Jakma wrote:
    >Sun, 4 Feb 2007, Anders K. Pedersen wrote:

    The zebra daemon is running without any problems, but when starting
    ospfd it consistently crashes after a few seconds with the following
    stack trace:

    2007/02/04 18:55:45 SPF: Assertion `new_distance <= w->distance' failed
    in file ospf_spf.c, line 442, function ospf_spf_add_parent
    >Ah, this is due to the patch at:
    >>

    >


    I had a look at ospf_spf.c to see, if I could figure out, why it hit the
    assertion. It seems that the following code in ospf_spf_next():

    /* calculate link cost D. */
    if (v->lsa->type == SPF_RUTER_LSA)
    distance = v->distance + ntohs (l->m[0].metric);
    else /* v is not a Router-LSA */
    distance = v->distance;

    /* Is there already vertex W in candidate list? */
    if (w_lsa->stat == LSA_SPF_NT_EXPLRED)
    {
    /* prepare vertex W. */
    w = ospf_vertex_new (w_lsa);
    w->distance = distance;

    /* Calculate nexthop to W. */
    if (ospf_nexthop_calculation (area, v, w, l))
    pqueue_enqueue (w, candidate);
    }

    for (v->lsa->type != SPF_RUTER_LSA) && (w_lsa->stat ==
    LSA_SPF_NT_EXPLRED) conflicts with ospf_spf_add_parent() (called via
    ospf_nexthop_calculation() above):

    new_distance = v->distance + ntohs (l->m[0].metric);

    /* We shouldn't get here unless callers have determined V(l)->W is
    * shortest / equal-shortest path.
    */
    assert (new_distance <= w->distance);

    where new_distance is unconditionally calculated as ospf_spf_next()
    would have done for (v->lsa->type == SPF_RUTER_LSA).

    My understanding of the code isn't good enough to tell which of the two
    functions is right, but I'm hoping that the above will help get the
    problem fixed.

    Regards,
    Anders K. Pedersen
  • No.4 | | 1068 bytes | |

    Sun, 11 Feb 2007, Anders K. Pedersen wrote:

    /* calculate link cost D. */
    if (v->lsa->type == SPF_RUTER_LSA)
    distance = v->distance + ntohs (l->m[0].metric);
    else /* v is not a Router-LSA */
    distance = v->distance;

    for (v->lsa->type != SPF_RUTER_LSA) && (w_lsa->stat ==
    LSA_SPF_NT_EXPLRED) conflicts with ospf_spf_add_parent() (called
    via ospf_nexthop_calculation() above):

    new_distance = v->distance + ntohs (l->m[0].metric);

    My understanding of the code isn't good enough to tell which of the
    two functions is right, but I'm hoping that the above will help get
    the problem fixed.

    Sighage, of course yes. the ospf_spf_next() way is correct.

    I've attached a patch to CVS which should fix this regression, by
    passing down 'distance' from ospf_spf_next and avoiding the
    replication. I've expanded the comment for
    ospf_spf_nexthop_calculation()

    Can you test and verify?

    Thanks for root-causing the problem!

    regards,
  • No.5 | | 361 bytes | |

    Thu, 22 Feb 2007, Paul Jakma wrote:

    I've attached a patch to CVS which should fix this regression, by
    passing down 'distance' from ospf_spf_next and avoiding the
    replication. I've expanded the comment for
    ospf_spf_nexthop_calculation()

    Grr, forgot to set root vertex distance. Fixed in attached patch.

    regards,
  • No.6 | | 747 bytes | |

    Hello Paul!

    Paul Jakma wrote:
    I've attached a patch to CVS which should fix this regression, by
    passing down 'distance' from ospf_spf_next and avoiding the replication.
    I've expanded the comment for ospf_spf_nexthop_calculation()

    Can you test and verify?

    Sorry for the delay - I have just had a chance to test this, and it does
    indeed fix the problem.

    For the record, I first made a few attempts with the old version to
    ensure that the problem was still reproducible there, which it was. I
    then updated to the current CVS version of quagga-devel, which was
    started and restarted a few times without any problems.

    Thank you very much.

    Regards,
    Anders K. Pedersen

Re: ospfd assertion `new_distance <= w->distance' failed


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Networking"

EMSDN.COM