Hi experts,
Here is an ASAN error when run vpp with ASAN enabled.

> 
> [root@localhost vpp]# make
> VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON build&&make debug
> make[1]: Entering directory `/home/dev/code/vpp/build-root'
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for external @@@@
> @@@@ Makefile fragment found in
> /home/dev/code/vpp/build-data/packages/external.mk @@@@
> @@@@ Source found in /home/dev/code/vpp/build @@@@
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for vpp @@@@
> @@@@ Makefile fragment found in
> /home/dev/code/vpp/build-data/packages/vpp.mk @@@@
> @@@@ Source found in /home/dev/code/vpp/src @@@@
> @@@@ Configuring external: nothing to do @@@@
> @@@@ Building external: nothing to do @@@@
> @@@@ Installing external: nothing to do @@@@
> @@@@ Configuring vpp: nothing to do @@@@
> @@@@ Building vpp: nothing to do @@@@
> @@@@ Installing vpp: nothing to do @@@@
> make[1]: Leaving directory `/home/dev/code/vpp/build-root'
> WARNING: STARTUP_CONF not defined or file doesn't exist.
> Running with minimal startup config:  unix { interactive cli-listen
> /run/vpp/cli.sock gid 0 } dpdk { no-pci } \n
> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> 
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> /home/dev/code/vpp/build-root/install-vpp_debug-native/vpp/bin/vpp...done.
> 
> Signal        Stop      Print   Pass to program Description
> SIGUSR1       No        No      Yes             User defined signal 1
> (gdb) r
> Starting program:
> /home/dev/code/vpp/build-root/install-vpp_debug-native/vpp/bin/vpp \ unix\
> \{\ interactive\ cli-listen\ /run/vpp/cli.sock\ gid\ 0\ \ \}\ \ dpdk \{
> no-pci \}\ \
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> =================================================================
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff73de5c1 in __asan::FakeStack::AddrIsInFakeStack(unsigned long,
> unsigned long*, unsigned long*) () from /lib64/libasan.so.5
> Missing separate debuginfos, use: debuginfo-install
> libasan5-9.3.1-2.el7.x86_64 libgcc-4.8.5-44.el7.x86_64
> libstdc++-4.8.5-44.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64
> mbedtls-2.7.17-1.el7.x86_64 numactl-libs-2.0.12-5.el7.x86_64
> pkcs11-helper-1.11-3.el7.x86_64
> (gdb) bt
> #0  0x00007ffff73de5c1 in __asan::FakeStack::AddrIsInFakeStack(unsigned
> long, unsigned long*, unsigned long*) () from /lib64/libasan.so.5
> #1  0x00007ffff74c5a11 in
> __asan::ThreadStackContainsAddress(__sanitizer::ThreadContextBase*, void*)
> () from /lib64/libasan.so.5
> #2  0x00007ffff74dfdc2 in
> __sanitizer::ThreadRegistry::FindThreadContextLocked(bool
> (*)(__sanitizer::ThreadContextBase*, void*), void*) ()
> from /lib64/libasan.so.5
> #3  0x00007ffff74c6e5a in __asan::FindThreadByStackAddress(unsigned long)
> () from /lib64/libasan.so.5
> #4  0x00007ffff73d8fb6 in __asan::GetStackAddressInformation(unsigned
> long, unsigned long, __asan::StackAddressDescription*) ()
> from /lib64/libasan.so.5
> #5  0x00007ffff73da3f9 in
> __asan::AddressDescription::AddressDescription(unsigned long, unsigned
> long, bool) () from /lib64/libasan.so.5
> #6  0x00007ffff73dce51 in __asan::ErrorGeneric::ErrorGeneric(unsigned int,
> unsigned long, unsigned long, unsigned long, unsigned long, bool, unsigned
> long) () from /lib64/libasan.so.5
> #7  0x00007ffff74c0c2a in __asan::ReportGenericError(unsigned long,
> unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned
> int, bool) () from /lib64/libasan.so.5
> #8  0x00007ffff7411f9c in __interceptor_strlen.part.0 () from
> /lib64/libasan.so.5
> #9  0x00007ffff376e2ec in string_key_sum (h=0x7fffb5c89550,
> key=140736179430656) at /home/dev/code/vpp/src/vppinfra/hash.c:947
> #10 0x00007ffff376af15 in key_sum (h=0x7fffb5c89550, key=140736179430656)
> at /home/dev/code/vpp/src/vppinfra/hash.c:333
> #11 0x00007ffff376bf76 in lookup (v=0x7fffb5c89598, key=140736179430656,
> op=GET, new_value=0x0, old_value=0x0)
> at /home/dev/code/vpp/src/vppinfra/hash.c:557
> #12 0x00007ffff376c59d in _hash_get_pair (v=0x7fffb5c89598,
> key=140736179430656) at /home/dev/code/vpp/src/vppinfra/hash.c:653
> #13 0x000000000042e885 in lookup_hash_index (name=0x7fffb1fb6500
> "/mem/stat segment") at /home/dev/code/vpp/src/vpp/stats/stat_segment.c:69
> 
> #14 0x0000000000431790 in stat_segment_new_entry (name=0x7fffb1fb6500
> "/mem/stat segment", t=STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE)
> at /home/dev/code/vpp/src/vpp/stats/stat_segment.c:402
> #15 0x00000000004401fb in vlib_stats_register_mem_heap
> (heap=0x7ffba3a00000) at
> /home/dev/code/vpp/src/vpp/stats/stat_segment_provider.c:96
> #16 0x00000000004327fa in vlib_map_stat_segment_init () at
> /home/dev/code/vpp/src/vpp/stats/stat_segment.c:493
> #17 0x00007ffff40a7796 in vlib_main (vm=0x7fffafd97680,
> input=0x7fffa5d46f70) at /home/dev/code/vpp/src/vlib/main.c:1939
> #18 0x00007ffff419dc2a in thread0 (arg=140736143652480) at
> /home/dev/code/vpp/src/vlib/unix/main.c:671
> #19 0x00007ffff3779504 in clib_calljmp () at
> /home/dev/code/vpp/src/vppinfra/longjmp.S:123
> #20 0x00007fffffffc850 in ?? ()
> #21 0x00007ffff419e984 in vlib_unix_main (argc=5, argv=0x7fffffffde58) at
> /home/dev/code/vpp/src/vlib/unix/main.c:751
> #22 0x000000000040b482 in main (argc=5, argv=0x7fffffffde58) at
> /home/dev/code/vpp/src/vpp/vnet/main.c:336
> (gdb)
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19570): https://lists.fd.io/g/vpp-dev/message/19570
Mute This Topic: https://lists.fd.io/mt/83572860/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to