Hi,

Tried enabling Google address sanitizer in VPP by looking at the following Wiki.
https://fd.io/docs/vpp/master/troubleshooting/sanitizer.html

After this, we are seeing that ASAN is detecting errors in VPP-API infra code 
and crashing.
One of the crash is as below.

==17226==ERROR: AddressSanitizer: use-after-poison on address 0x7fffc519aa5f at 
pc 0x7ffff6e9d67d bp 0x7fffb70318b0 sp 0x7fffb7031058
WRITE of size 61 at 0x7fffc519aa5f thread T0 (vpp_main)
#0 0x7ffff6e9d67c  (/lib64/libasan.so.5+0x9367c)
#1 0x7ffff6b90682 in vl_socket_read_ready 
/fdio.2005/src/vlibmemory/socket_api.c:240
#2 0x7ffff3358cf6 in linux_epoll_input_inline 
/fdio.2005/src/vlib/unix/input.c:322
#3 0x7ffff335959c in linux_epoll_input /fdio.2005/src/vlib/unix/input.c:372
#4 0x7ffff326b690 in dispatch_node /fdio.2005/src/vlib/main.c:1271
#5 0x7ffff327073b in vlib_main_or_worker_loop /fdio.2005/src/vlib/main.c:1958
#6 0x7ffff32724f7 in vlib_main_loop /fdio.2005/src/vlib/main.c:2141
#7 0x7ffff3273bdb in vlib_main /fdio.2005/src/vlib/main.c:2387
#8 0x7ffff335e22b in thread0 /fdio.2005/src/vlib/unix/main.c:673
#9 0x7ffff27010b7  
(/fdio.2005/build-root/install-vpp_debug-native/vpp/lib/libvppinfra.so.20.05.1+0xc90b7)

The problematic is pointing to

clib_error_t *
vl_socket_read_ready (clib_file_t * uf)
{
...
....

/* Ignore unprocessed_input for now, n describes input_buffer for now. */
*n = read (uf->file_descriptor, socket_main.input_buffer, vec_len 
(socket_main.input_buffer));      <<<<<<<<<<<<<<<<<<<<<< This is the line ASAN 
is pointing to.*
}

Is this a known issue (or) anything else we need to change to get it going with 
ASAN build.
Please let us know.

--
Thanks & Regards,
Murthy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18590): https://lists.fd.io/g/vpp-dev/message/18590
Mute This Topic: https://lists.fd.io/mt/80099837/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