If your backtrace is to be trusted, your stack is corrupted:

> #0  0x00007ffff3bce8c9 in clib_memcpy_fast (dst=0x1881349000d2f00,
> src=0x13010b390b3b0b, n=4182438362655424791)

Pointers and size look definitely wrong here.
If the crash always happen at the same place, I'd recommend to break right 
before it and step-by-step to try to figure what is going on.

ben

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of chetan bhasin
> Sent: mardi 25 mai 2021 09:21
> To: vpp-dev <vpp-dev@lists.fd.io>
> Subject: [vpp-dev] Facing Abort in VPP with Sanitizer
> 
> Hello Everyone,
> 
> 
> We have back-merged ASAN related changes to vpp_1908 . We are using
> devtool-set-9 for our compilation of SANITIZER build. Application is
> getting abort in
> File : src/vpp/api/api_format.c
> Function : void vat_api_hookup (vat_main_t * vam)
> Code :
> 22191   /* API messages we can send */
> 22192 #define _(n,h) hash_set_mem (vam->function_by_name, #n, api_##n);
> 22193   foreach_vpe_api_msg;
> 22194 #undef _
> 
>  Any help here would be appreciated.
> 
> 
> console logs
> 
> Starting program: /opt/opwv/integra/99.9/tools/vpp_asan/./bin/vpp -c
> root_startup.conf
> Missing separate debuginfo for
> /opt/opwv/integra/99.9/tools/vpp_asan/bin/../lib/libasan.so.5
> Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-
> id/1e/00d6f3d73b509f1b159047be658313f3dc681d.debug
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> ==10089==AddressSanitizer: libc interceptors initialized
> || `[0x10007fff8000, 0x7fffffffffff]` || HighMem    ||
> || `[0x02008fff7000, 0x10007fff7fff]` || HighShadow ||
> || `[0x00008fff7000, 0x02008fff6fff]` || ShadowGap  ||
> || `[0x00007fff8000, 0x00008fff6fff]` || LowShadow  ||
> || `[0x000000000000, 0x00007fff7fff]` || LowMem     ||
> MemToShadow(shadow): 0x00008fff7000 0x000091ff6dff 0x004091ff6e00
> 0x02008fff6fff
> redzone=16
> max_redzone=2048
> quarantine_size_mb=256M
> thread_local_quarantine_size_kb=1024K
> malloc_context_size=30
> SHADOW_SCALE: 3
> SHADOW_GRANULARITY: 8
> SHADOW_OFFSET: 0x7fff8000
> ==10089==Installed the sigaction for signal 11
> ==10089==Installed the sigaction for signal 7
> ==10089==Installed the sigaction for signal 8
> ==10089==T0: stack [0x7fffff7ff000,0x7ffffffff000) size 0x800000;
> local=0x7fffffffdee4
> AddressSanitizer: reading suppressions file at
> /opt/opwv/integra/99.9/tools/vpp_asan/asan-suppression
> ==10089==AddressSanitizer Init done
> ==10089==poisoning: 0x7fffffffce20 1000
> vlib_plugin_early_init:361: plugin path
> /opt/opwv/integra/SystemActivePath/tools/vpp_asan/lib/vpp_plugins
> 
> GDB back trace
> #0  0x00007ffff3bce8c9 in clib_memcpy_fast (dst=0x1881349000d2f00,
> src=0x13010b390b3b0b, n=4182438362655424791)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vppinfra/memcpy_sse3.h:187
> #1  0x00007ffff3be0758 in lookup (v=0x7fffae6b2be8, key=6960224, op=SET,
> new_value=0x7fffaea3a2d0, old_value=0x0)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vppinfra/hash.c:622
> #2  0x00007ffff3be1a9c in _hash_set3 (v=0x7fffae6b2be8, key=6960224,
> value=0x7fffaea3a2d0, old_value=0x0)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vppinfra/hash.c:851
> #3  0x0000000000632b86 in vat_api_hookup (vam=0x70c180 <vat_main>)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vpp/api/api_format.c:22193
> #4  0x0000000000655e85 in vat_api_hookup_shim (vm=0x7ffff48d4640
> <vlib_global_main>)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vpp/api/api_format.c:22217
> #5  0x00007ffff44b4ea2 in call_init_exit_functions_internal
> (vm=0x7ffff48d4640 <vlib_global_main>,
>     headp=0x7ffff491b0c8 <vlib_global_main+289416>, call_once=1,
> do_sort=1)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vlib/init.c:350
> #6  0x00007ffff44b4f1d in vlib_call_init_exit_functions (vm=0x7ffff48d4640
> <vlib_global_main>,
>     headp=0x7ffff491b0c8 <vlib_global_main+289416>, call_once=1)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vlib/init.c:364
> #7  0x00007ffff7fa1777 in vl_api_clnt_process (vm=0x7ffff48d4640
> <vlib_global_main>, node=0x7fffaea36000, f=0x0)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vlibmemory/vlib_api.c:285
> #8  0x00007ffff450c727 in vlib_process_bootstrap (_a=140736129047184)
>     at /vlad/p4/gcc9/ngp/mainline_gcc/third-
> party/vpp/vpp_1908/src/vlib/main.c:2911
> #9  0x00007ffff3bec458 in clib_calljmp () from
> /opt/opwv/integra/99.9/tools/vpp_asan/bin/../lib/libvppinfra.so.19.08.1
> #10 0x00007fffaefa9a40 in ?? ()
> 
> 
> Thanks,
> Chetan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19451): https://lists.fd.io/g/vpp-dev/message/19451
Mute This Topic: https://lists.fd.io/mt/83071004/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