Similar crash on FreeBSD 9.3
root@debugtest:/home/mdtancsa/quagga-1.0.20160309 # gdb bgpd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run
Starting program: /usr/local/sbin/bgpd
[New LWP 100119]
[New Thread 801807400 (LWP 100119/bgpd)]
2016/03/11 20:54:57 BGP: BGPd 1.0.20160309 starting: vty@2605,
bgp@<all>:179 pid 28839
2016/03/11 20:54:57 BGP: stream_getl: Attempt to get long out of bounds
2016/03/11 20:54:57 BGP: &(struct stream): 0x8019280d0, size: 4096,
getp: 33, endp: 35
2016/03/11 20:54:57 BGP: Assertion `0' failed in file stream.c, line
413, function stream_getl
2016/03/11 20:54:57 BGP: No backtrace available on this platform.
2016/03/11 20:54:57 BGP: Current thread function zclient_read, scheduled
from file zclient.c, line 1131
Program received signal SIGABRT, Aborted.
[Switching to Thread 801807400 (LWP 100119/bgpd)]
0x00000008012d397c in kill () at kill.S:3
3 RSYSCALL(kill)
Current language: auto; currently asm
(gdb) bt
#0 0x00000008012d397c in kill () at kill.S:3
#1 0x00000008012d255b in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#2 0x00000008009485c2 in _zlog_assert_failed (assertion=Could not find
the frame base for "_zlog_assert_failed".
) at log.c:669
#3 0x00000008009436cb in stream_getl (s=0x8019280d0) at stream.c:413
#4 0x00000000004470a0 in zebra_read_ipv4 (command=7,
zclient=0x8018d3280, length=27, vrf_id=0) at bgp_zebra.c:270
#5 0x00000008009507e9 in zclient_read (thread=0x7fffffffe9d0) at
zclient.c:1034
#6 0x0000000800934256 in thread_call (thread=0x7fffffffe9d0) at
thread.c:1260
#7 0x0000000000407c9b in main (argc=1, argv=0x7fffffffeac0) at
bgp_main.c:481
(gdb) up 3
#3 0x00000008009436cb in stream_getl (s=0x8019280d0) at stream.c:413
413 STREAM_BOUND_WARN (s, "get long");
Current language: auto; currently c
(gdb) list
408
409 STREAM_VERIFY_SANE(s);
410
411 if (STREAM_READABLE (s) < sizeof (u_int32_t))
412 {
413 STREAM_BOUND_WARN (s, "get long");
414 return 0;
415 }
416
417 l = s->data[s->getp++] << 24;
(gdb)
On 3/11/2016 8:09 AM, Donald Sharp wrote:
> Martin -
>
> If I could get a decode of this:
>
> 2016/03/09 09:42:20 BGP: [bt 3] bgpd(+0x5c2f0) [0x7f495cb132f0]
>
> I could probably fix/narrow down the problem real fast.
>
> thanks!
>
> donald
>
>
>
> On Thu, Mar 10, 2016 at 8:59 PM, Martin Winter
> <[email protected] <mailto:[email protected]>>
> wrote:
>
> (New thread so people actually see it)
>
> I really wish my suggestion to Donald/Paul would have been followed
> and we would have created a RC version first
> or at least updated Master first with giving me a few days for some
> checks… :-(
>
> Anyway, the brand new version 1.0.20160309 crashes in my BGP Tests:
>
> 2016/03/09 09:42:20 BGP: vty[??]@# exit
> 2016/03/09 09:42:20 BGP: stream_getl: Attempt to get long out of bounds
> 2016/03/09 09:42:20 BGP: &(struct stream): 0x7f495d91f6b0, size:
> 4096, getp: 23, endp: 25
>
> 2016/03/09 09:42:20 BGP: Assertion `0' failed in file stream.c, line
> 413, function stream_getl
> 2016/03/09 09:42:20 BGP: Backtrace for 9 stack frames:
> 2016/03/09 09:42:20 BGP: [bt 0]
> /usr/lib/libzebra.so.0(zlog_backtrace+0x2b) [0x7f495c661c10]
> 2016/03/09 09:42:20 BGP: [bt 1]
> /usr/lib/libzebra.so.0(_zlog_assert_failed+0xa1) [0x7f495c66234c]
> 2016/03/09 09:42:20 BGP: [bt 2]
> /usr/lib/libzebra.so.0(stream_getl+0x7f) [0x7f495c65ef69]
> 2016/03/09 09:42:20 BGP: [bt 3] bgpd(+0x5c2f0) [0x7f495cb132f0]
> 2016/03/09 09:42:20 BGP: [bt 4] /usr/lib/libzebra.so.0(+0x34141)
> [0x7f495c666141]
> 2016/03/09 09:42:20 BGP: [bt 5]
> /usr/lib/libzebra.so.0(thread_call+0x7e) [0x7f495c656728]
> 2016/03/09 09:42:20 BGP: [bt 6] bgpd(main+0x417) [0x7f495caec22a]
> 2016/03/09 09:42:20 BGP: [bt 7]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f495bf88ec5]
> 2016/03/09 09:42:20 BGP: [bt 8] bgpd(+0x35267) [0x7f495caec267]
> 2016/03/09 09:42:20 BGP: Current thread function zclient_read,
> scheduled from file zclient.c, line 1131
>
> This is on Ubuntu 14.04
>
> I’ll start digging into the details, just wanted to give a heads up.
>
> Any hints on differences to the Proposed/6 branch?
>
> - Martin
> (Would like to be excited on 1.0…)
>
> _______________________________________________
> Quagga-dev mailing list
> [email protected] <mailto:[email protected]>
> https://lists.quagga.net/mailman/listinfo/quagga-dev
>
>
>
>
> _______________________________________________
> Quagga-dev mailing list
> [email protected]
> https://lists.quagga.net/mailman/listinfo/quagga-dev
>
--
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, [email protected]
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada http://www.tancsa.com/
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev