2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 05:47:55 +00:00
ovs/tests/glibc.supp
Ben Pfaff 93f558421a ovs-vswitchd: Avoid or suppress memory leak warning for glibc aio.
The asynchronous IO library in glibc starts threads that show up as memory
leaks in valgrind.  This commit attempts to avoid the warnings by flushing
all the asynchronous I/O to the log file before exiting.  This only does
part of the job for glibc since it keeps the threads around for some
undefined idle time before killing them, so in addition this commit adds a
valgrind suppression to stop displaying these warnings in any case.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: William Tu <u9012063@gmai.com>
2018-02-01 11:27:08 -08:00

27 lines
335 B
Plaintext

# suppress what appear to unavoidable error reports from glibc
{
timer_create
Memcheck:Leak
fun:malloc
fun:timer_create
}
{
timer_create
Memcheck:Param
timer_create(evp)
...
fun:set_up_timer
}
{
aio
Memcheck:Leak
fun:calloc
...
fun:allocate_stack
...
fun:__aio_create_helper_thread
}