FreeRangeRouting Github Pull Request Testing

Build: #8604 was successful

Job: AddressSanitizer Topotest was successful

Job result summary

Completed
Duration
82 minutes
Flags
Custom revisionCustom build
Successful since
#8400 ()

Error summary

The build generated some errors. See the full build log for more details.

    [288, 336) 'p'
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow lib/prefix.c:776 prefix_cmp
Shadow bytes around the buggy address:
  0x10004bf79d60: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00
  0x10004bf79d70: 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3
  0x10004bf79d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10004bf79d90: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
  0x10004bf79da0: 04 f4 f4 f4 f2 f2 f2 f2 00 04 f4 f4 f2 f2 f2 f2
=>0x10004bf79db0: 00 04 f4 f4 f2 f2 f2 f2 00 00[f4]f4 f2 f2 f2 f2
  0x10004bf79dc0: 00 00 00 00 00 00 f4 f4 f3 f3 f3 f3 00 00 00 00
  0x10004bf79dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10004bf79de0: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 02 f4 f4 f4
  0x10004bf79df0: f2 f2 f2 f2 04 f4 f4 f4 f2 f2 f2 f2 00 00 f4 f4
  0x10004bf79e00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
2019-08-13 13:16:11,231 ERROR: assert failed at "bgp_rfapi_basic_sanity_config2.test_bgp_rfapi_basic_sanity_config2/test_memory_leak": r2: Daemon bgpd not running - killed by AddressSanitizer

r2: bgpd triggered an exception by AddressSanitizer
ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe5fc0edd0 at pc 0x00000068069a bp 0x7ffe5fc0c2c0 sp 0x7ffe5fc0c2b0
READ of size 1 at 0x7ffe5fc0edd0 thread T0
    #0 0x680699 in prefix_cmp lib/prefix.c:776
    #1 0x584afc in rfapiItBiIndexSearch bgpd/rfapi/rfapi_import.c:2230
    #2 0x584afc in rfapiBgpInfoFilteredImportVPN bgpd/rfapi/rfapi_import.c:3520
    #3 0x5879e7 in rfapiProcessWithdraw bgpd/rfapi/rfapi_import.c:4071
    #4 0x4c2a53 in bgp_withdraw bgpd/bgp_route.c:3735
    #5 0x482912 in bgp_nlri_parse_vpn bgpd/bgp_mplsvpn.c:237
    #6 0x496663 in bgp_nlri_parse bgpd/bgp_packet.c:314
    #7 0x49b725 in bgp_update_receive bgpd/bgp_packet.c:1600
    #8 0x49b725 in bgp_process_packet bgpd/bgp_packet.c:2278
    #9 0x6b3c3f in thread_call lib/thread.c:1581
    #10 0x652481 in frr_run lib/libfrr.c:1054
    #11 0x42c98f in main bgpd/bgp_main.c:478
    #12 0x7fc46093b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #13 0x42b4e8 in _start (/usr/lib/frr/bgpd+0x42b4e8)

Address 0x7ffe5fc0edd0 is located in stack of thread T0 at offset 240 in frame
    #0 0x482135 in bgp_nlri_parse_vpn bgpd/bgp_mplsvpn.c:103

  This frame has 5 object(s):
    [32, 36) 'label'
    [96, 108) 'rd_as'
    [160, 172) 'rd_ip'
    [224, 240) 'prd' <== Memory access at offset 240 overflows this variable
    [288, 336) 'p'
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow lib/prefix.c:776 prefix_cmp
Shadow bytes around the buggy address:
  0x10004bf79d60: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00
  0x10004bf79d70: 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3
  0x10004bf79d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10004bf79d90: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
  0x10004bf79da0: 04 f4 f4 f4 f2 f2 f2 f2 00 04 f4 f4 f2 f2 f2 f2
=>0x10004bf79db0: 00 04 f4 f4 f2 f2 f2 f2 00 00[f4]f4 f2 f2 f2 f2
  0x10004bf79dc0: 00 00 00 00 00 00 f4 f4 f3 f3 f3 f3 00 00 00 00
  0x10004bf79dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10004bf79de0: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 02 f4 f4 f4
  0x10004bf79df0: f2 f2 f2 f2 04 f4 f4 f4 f2 f2 f2 f2 00 00 f4 f4
  0x10004bf79e00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
r2: Daemon bgpd killed by AddressSanitizer2019-08-13 13:16:13,938 ERROR: assert failed at "bgp_rfapi_basic_sanity_config2.test_bgp_rfapi_basic_sanity_config2/test_memory_leak":
r2: Daemon bgpd killed by AddressSanitizer