check.gstreamer.elements_capsfilter.test_unfixed_downstream_caps occasionally fails
Fedora 29, gst 1.15.1 ec5e781e
From a gst-build
checkout, I can reproduce it somewhat reliably, 25 failures / 500 runs, with the following command:
./gst-uninstalled.py gst-validate-launcher check.gstreamer.elements_capsfilter.test_unfixed_downstream_caps -F --n-runs 500 -fs --mute --dump-on-failure --no-display --meson-no-rebuild
And here is the gdb
trace:
check.gstreamer.elements_capsfilter.test_unfixed_downstream_caps: Timeout 'Application timed out: 20.0 secs'
You can reproduce with: CK_FORK='no' GST_REGISTRY='/home/alatiera/centricular/gst-build/build/subprojects/gstreamer/tests/check/elements_capsfilter.registry' GST_PLUGIN_LOADING_WHITELIST='gstreamer' GST_CHECKS='test_unfixed_downstream_caps' GST_PLUGIN_SCANNER_1_0='/home/alatiera/centricular/gst-build/build/subprojects/gstreamer/libs/gst/helpers/gst-plugin-scanner' GST_PLUGIN_SYSTEM_PATH_1_0='' GST_STATE_IGNORE_ELEMENTS='' GST_PLUGIN_PATH_1_0='/home/alatiera/centricular/gst-build/build' DISPLAY=':0' /home/alatiera/centricular/gst-build/build/subprojects/gstreamer/tests/check/elements_capsfilter
Dumping log files on failure
Dumping contents of /home/alatiera/centricular/gst-build/validate-output/logs/check/gstreamer/elements_capsfilter/test_unfixed_downstream_caps
=================
Test name: check.gstreamer.elements_capsfilter.test_unfixed_downstream_caps
Command: '/home/alatiera/centricular/gst-build/build/subprojects/gstreamer/tests/check/elements_capsfilter'
=================
Running suite(s): capsfilter
0%: Checks: 1, Failures: 1, Errors: 0
../subprojects/gstreamer/libs/gst/check/gstcheck.c:632:F:general:test_unfixed_downstream_caps:0: check pad_peer (0x1f66770) refcount is 3 instead of 2
Check suite capsfilter ran in 0.002s (tests failed: 1)
== Stack trace: ==
[New LWP 20114]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
38 cmpq $-4095, %rax /* Check %rax for error. */
Thread 2 (Thread 0x7fd7295b8700 (LWP 20114)):
#0 0x00007fd729aadefd in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007fd729c34003 in g_cond_wait (cond=cond@entry=0x1f6a0b0, mutex=mutex@entry=0x1f6a068) at gthread-posix.c:1402
#2 0x00007fd729e13e4b in gst_task_func (task=0x1f6a050 [GstTask]) at ../subprojects/gstreamer/gst/gsttask.c:313
#3 0x00007fd729c15e93 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:307
#4 0x00007fd729c1548a in g_thread_proxy (data=0x1ef8e30) at gthread.c:784
#5 0x00007fd729b8458e in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007fd729ab36a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 1 (Thread 0x7fd72969bf40 (LWP 20113)):
#0 0x00007fd729aadefd in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007fd729c34003 in g_cond_wait (cond=cond@entry=0x1efef00, mutex=0x1eff910) at gthread-posix.c:1402
#2 0x00007fd729c165fc in g_thread_pool_free (pool=0x1efeee0, immediate=0, wait_=<optimized out>) at gthreadpool.c:776
#3 0x00007fd729e14d8a in default_cleanup (pool=0x1efa910 [GstTaskPool]) at ../subprojects/gstreamer/gst/gsttaskpool.c:88
#4 0x00007fd729e13f0d in init_klass_pool (klass=<optimized out>) at ../subprojects/gstreamer/gst/gsttask.c:161
#5 0x00007fd729e140e2 in gst_task_cleanup_all () at ../subprojects/gstreamer/gst/gsttask.c:381
#6 0x00007fd729d975b4 in gst_deinit () at ../subprojects/gstreamer/gst/gst.c:1095
#7 0x00007fd729d45e19 in gst_check_deinit () at ../subprojects/gstreamer/libs/gst/check/gstcheck.c:331
#8 0x00007fd7299f0ccc in __run_exit_handlers (status=1, listp=0x7fd729b76738 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#9 0x00007fd7299f0e00 in __GI_exit (status=<optimized out>) at exit.c:139
#10 0x00007fd7299da41a in __libc_start_main (main=0x4023c0 <main>, argc=1, argv=0x7ffcce598b28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcce598b18) at ../csu/libc-start.c:342
#11 0x00000000004024be in _start () at ../subprojects/gstreamer/tests/check/elements/capsfilter.c:493
[Inferior 1 (process 20113) detached]