[quagga-dev 4574] Re: ospfd assertion `new_distance <= w->distance' failed

Anders K. Pedersen mailnews+router-quagga-dev at news.cohaesio.com
Mon Feb 5 10:24:09 GMT 2007


Paul Jakma wrote:
> On 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 OSPF: 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:
> 
> http://bugzilla.quagga.net/show_bug.cgi?id=330

...

>> 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 --daemon

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ospfd.log.gz
Type: application/gzip
Size: 13454 bytes
Desc: not available
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20070205/b8e7d105/attachment-0001.bin>


More information about the Quagga-dev mailing list