valgrind: Supress racy cancellable source leak

Creating a socket source, creates a cancellable source internally. This
mechanism is racy and in order to workaround the race, the final unref
can be delayed. Unfortunatly, it seams that this is randomly leaked.
This affects users of glib 2.65 and up. Add a suppression on our side
in order to avoid this leak showing up randomly in our CI.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1400 for more
about the glib implementation detail. And follow this link for an
example of failing CI pipeline:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/jobs/51694889

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5688>
This commit is contained in:
Nicolas Dufresne 2023-11-17 14:32:37 -05:00
parent 2f7d402f7b
commit bac3de1d83

View file

@ -4085,3 +4085,13 @@
fun:generate_unwind_trace fun:generate_unwind_trace
fun:gst_debug_get_stack_trace fun:gst_debug_get_stack_trace
} }
# since glib 2.65 https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1400
{
glib 2.65+: program may exit before all cancellable sources are freed
Memcheck:Leak
...
fun:g_cancellable_source_new
...
fun:g_socket_create_source
}