Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGP daemon crash a L2VNI in unconfigured #3333

Closed
karamalla0406 opened this issue Nov 14, 2018 · 2 comments
Closed

BGP daemon crash a L2VNI in unconfigured #3333

karamalla0406 opened this issue Nov 14, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@karamalla0406
Copy link
Contributor

karamalla0406 commented Nov 14, 2018

How to submit an issue

BGP daemon crashed when L2VNI is unconfigured with a "no vni xxxxx" command. This happens when the impport/export route-target for the VNI is not auo-derived. The crash is caused by the double freeing of the route-target obejcts.

Thread 1 "bgpd" received signal SIGABRT, Aborted.
0x00007fda51f8d428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007fda51f8d428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007fda51f8f02a in __GI_abort () at abort.c:89
#2  0x00007fda51fcf7ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fda520e82e0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007fda51fd7e0a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7fda520e83a8 "double free or corruption (fasttop)", action=3) at malloc.c:5004
#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3865
#5  0x00007fda51fdb98c in __GI___libc_free (mem=<optimized out>) at malloc.c:2966
#6  0x00007fda52c9893e in qfree (mt=<optimized out>, ptr=<optimized out>) at lib/memory.c:130
#7  0x000000000042ae10 in ecommunity_free (ecom=ecom@entry=0x7ffdfda3d290) at bgpd/bgp_ecommunity.c:67
#8  0x000000000042bfc2 in evpn_xxport_delete_ecomm (val=<optimized out>) at bgpd/bgp_evpn.c:385
#9  0x00007fda52c95963 in list_delete_all_node (list=0x2274030) at lib/linklist.c:236
#10 0x00000000004b1ce5 in evpn_unconfigure_export_rt (bgp=bgp@entry=0x26aea60, vpn=vpn@entry=0x27163a0, ecomdel=ecomdel@entry=0x0) at bgpd/bgp_evpn_vty.c:1770
#11 0x00000000004b2187 in evpn_delete_vni (vpn=0x27163a0, bgp=0x26aea60) at bgpd/bgp_evpn_vty.c:1944
#12 no_bgp_evpn_vni (self=<optimized out>, vty=<optimized out>, argc=<optimized out>, argv=<optimized out>) at bgpd/bgp_evpn_vty.c:4162
#13 0x00007fda52c808e6 in cmd_execute_command_real (vline=vline@entry=0x26aafc0, vty=vty@entry=0x2770d80, cmd=cmd@entry=0x0, filter=FILTER_RELAXED) at lib/command.c:1049
#14 0x00007fda52c82a35 in cmd_execute_command (vline=vline@entry=0x26aafc0, vty=vty@entry=0x2770d80, cmd=cmd@entry=0x0, vtysh=vtysh@entry=0) at lib/command.c:1103
#15 0x00007fda52c82b50 in cmd_execute (vty=vty@entry=0x2770d80, cmd=cmd@entry=0x2771370 "no vni 200", matched=matched@entry=0x0, vtysh=vtysh@entry=0) at lib/command.c:1254
#16 0x00007fda52cb5ebf in vty_command (vty=vty@entry=0x2770d80, buf=0x2771370 "no vni 200") at lib/vty.c:528
#17 0x00007fda52cb60bb in vty_execute (vty=vty@entry=0x2770d80) at lib/vty.c:1380
#18 0x00007fda52cb8090 in vtysh_read (thread=<optimized out>) at lib/vty.c:2219
#19 0x00007fda52cb2c3d in thread_call (thread=thread@entry=0x7ffdfda3fa18) at lib/thread.c:1595
#20 0x00007fda52c953f1 in frr_run (master=0x226fe80) at lib/libfrr.c:947
#21 0x000000000041d7aa in main (argc=4, argv=0x7ffdfda3fd68) at bgpd/bgp_main.c:468

Components

bgpd

Versions

  • FRR: 6.0
@karamalla0406
Copy link
Contributor Author

The crash was caused in the deletion of import and export route target. Fixed it.

@karamalla0406 karamalla0406 reopened this Nov 30, 2018
@karamalla0406
Copy link
Contributor Author

The crash was caused in the deletion of import and export route target. Fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants