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

Memory sanitizer reports clippy error during compile #2258

Closed
louberger opened this issue May 18, 2018 · 0 comments
Closed

Memory sanitizer reports clippy error during compile #2258

louberger opened this issue May 18, 2018 · 0 comments
Assignees
Labels

Comments

@louberger
Copy link
Member

louberger commented May 18, 2018

Note, must use clang not gcc.
Configured using:

'./configure' '--disable-nhrpd' '--enable-static' '--disable-shared' '--prefix=/usr' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--enable-vtysh' '--enable-pimd' '--enable-multipath=64' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' --enable-memory-sanitizer CC=clang

see:

make[2]: Entering directory '...'
LSAN_OPTIONS="suppressions=./tools/lsan-suppressions.txt" ./lib/clippy ./python/clidef.py -o ospfd/ospf_vty_clippy.c ospfd/ospf_vty.c
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x724000008000, 32)
==18114==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7f87aedc857d  (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x7157d)
    #1 0x7f87aedc8d75  (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x71d75)
    #2 0x7f87aedcba6f  (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x74a6f)
    #3 0x7f87aedcc5c8 in PyTokenizer_Get (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x755c8)
    #4 0x7f87aedc7851  (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x70851)
    #5 0x7f87aef0083c in PyParser_ASTFromFileObject (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1a983c)
    #6 0x7f87aef00ea4 in PyRun_FileExFlags (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1a9ea4)
    #7 0x7f87aef0104e in PyRun_SimpleFileExFlags (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1aa04e)
    #8 0x556aac07c2a6 in main .../lib/clippy.c:83:6
    #9 0x7f87ad7b91c0 in __libc_start_main /build/glibc-itYbWN/glibc-2.26/csu/../csu/libc-start.c:308
    #10 0x556aac007ec9 in _start (.../lib/clippy+0x20ec9)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x7157d) 
Exiting
Makefile:4921: recipe for target 'ospfd/ospf_vty_clippy.c' failed
make[2]: *** [ospfd/ospf_vty_clippy.c] Error 77
make[2]: Leaving directory '...'
Makefile:4426: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '...'
Makefile:1960: recipe for target 'all' failed
make: *** [all] Error 2
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

2 participants