Skip to content

WIP: tests/element: test to show releasing request-pads is unsafe

Håvard Graff requested to merge hgr/gstreamer:release-request-pad-unsafe into master

This test demonstrates a crash we have been seeing in the simplest possible form.

Basically if you try to release a request pad while the element is shutting down, this can crash.

We believe there are opportunities for improvements here, but would like to discuss it with a wider audience.

Unexpected critical/warning: gst_element_release_request_pad: assertion 'GST_PAD_PARENT (pad) == element' failed

Stack trace:
gst_debug_get_stack_trace (gstinfo.c:3128)
gst_check_log_critical_func (gstcheck.c:281)
g_logv (gmessages.c:1382)
g_log (gmessages.c:1451)
_release_pad_func (gstelement.c:923)
g_thread_proxy (gthread.c:826)
start_thread (/usr/lib64/libpthread-2.33.so:0x7ffff78a7295)
__clone (/usr/lib64/libc-2.33.so:0x7ffff7bc869f)

90%: Checks: 10, Failures: 1, Errors: 0
../subprojects/gstreamer/libs/gst/check/gstcheck.c:286:F:element tests:test_release_pads_during_dispose:0: Unexpected critical/warning: gst_element_release_request_pad: assertion 'GST_PAD_PARENT (pad) == element' failed
Edited by Nicolas Dufresne

Merge request reports