Skip to content

ASAN crash in master: SEGV zebra/zebra_pw.c:137 in zebra_pw_enabled #17041

@mwinter-osr

Description

@mwinter-osr

Description

Since sha a4fb596 we have a crash in the ASAN testing of FRR master in ldp_snmp: test_ldp_snmp_topo1 test

# cat ldp_snmp.test_ldp_snmp_topo1/r1.asan.zebra.31837
=================================================================
==31837==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000000ac (pc 0x56046c00d496 bp 0x7ffd69950950 sp 0x7ffd69950950 T0)
==31837==The signal is caused by a READ memory access.
==31837==Hint: address points to the zero page.
    #0 0x56046c00d496 in zebra_pw_enabled zebra/zebra_pw.c:137
    #1 0x56046c011426 in zebra_pw_handle_dplane_results zebra/zebra_pw.c:214
    #2 0x56046c01981d in rib_process_dplane_results zebra/zebra_rib.c:4959
    #3 0x7fc5cf2da301 in event_call lib/event.c:1996
    #4 0x7fc5cf20dcf6 in frr_run lib/libfrr.c:1238
    #5 0x56046bf2f3b3 in main zebra/main.c:526
    #6 0x7fc5ced0c249 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #7 0x7fc5ced0c304 in __libc_start_main_impl ../csu/libc-start.c:360
    #8 0x56046bf03790 in _start (/usr/lib/frr/zebra+0x1a4790)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV zebra/zebra_pw.c:137 in zebra_pw_enabled
==31837==ABORTING

Most likely candidate is PR #17009

Version

Master as of sha a4fb596 and newer

How to reproduce

ASAN run (AddressSanitizer Debian 12 amd64 Part 7 on CI)

Expected behavior

passing

Actual behavior

crashing

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions