Crash in mainloop
Hi,
I ran into a weird crash in the mainloop, I see the following three threads that may be relevant in the backtrace (I do have a coredump and can grab more information):
I believe this happened some time while creating/pre-rolling/starting a pipeline with a pipewiresrc.
The crashing line is in loop_iterate
loop.c:343, which reads:
spa_loop_control_hook_after(&impl->hooks_list);
Thread 14 (Thread 0x7fffc5ffb700 (LWP 22174)):
#0 0x00007ffff6984987 in epoll_wait () from /lib64/libc.so.6
#1 0x00007fffd5ce7132 in loop_iterate (ctrl=0x7fffc8013288, timeout=-1) at ../../../../Projects/jhbuild/checkout/pipewire/spa/plugins/support/loop.c:340
#2 0x00007fffd5b53216 in do_loop (user_data=0x7fffc800fbb0) at ../../../../Projects/jhbuild/checkout/pipewire/src/pipewire/thread-loop.c:165
#3 0x00007ffff65e358e in start_thread () from /lib64/libpthread.so.0
#4 0x00007ffff6984653 in clone () from /lib64/libc.so.6
Thread 11 (Thread 0x7fffc67fc700 (LWP 22169)):
#0 0x00007ffff65e977c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007fffd5b5368e in pw_thread_loop_wait (loop=0x7fffc800fbb0) at ../../../../Projects/jhbuild/checkout/pipewire/src/pipewire/thread-loop.c:272
#2 0x00007fffd5d058e9 in gst_pipewire_src_create (psrc=0x7fffc800ddf0, buffer=0x7fffc67fb740) at ../../../../Projects/jhbuild/checkout/pipewire/src/gst/gstpipewiresrc.c:862
#3 0x00007ffff4054e10 in gst_push_src_create (bsrc=0x7fffc800ddf0, offset=18446744073709551615, length=4096, ret=0x7fffc67fb740)
at ../../../../Projects/jhbuild/checkout/gstreamer/libs/gst/base/gstpushsrc.c:131
#4 0x00007ffff4037898 in gst_base_src_get_range (src=0x7fffc800ddf0, offset=18446744073709551615, length=4096, buf=0x7fffc67fb7e8)
at ../../../../Projects/jhbuild/checkout/gstreamer/libs/gst/base/gstbasesrc.c:2512
#5 0x00007ffff4038b46 in gst_base_src_loop (pad=0x7fffc8010060) at ../../../../Projects/jhbuild/checkout/gstreamer/libs/gst/base/gstbasesrc.c:2836
#6 0x00007ffff6bf34e1 in gst_task_func (task=0x7fffdc04ba70) at ../../../../Projects/jhbuild/checkout/gstreamer/gst/gsttask.c:332
--Type <RET> for more, q to quit, c to continue without paging--
#7 0x00007ffff6bf46bc in default_func (tdata=0xa239c0, pool=0x465110) at ../../../../Projects/jhbuild/checkout/gstreamer/gst/gsttaskpool.c:69
#8 0x00007ffff76d7e3c in g_thread_pool_thread_proxy (data=0x468740) at /home/benjamin/Projects/jhbuild/checkout/glib/glib/gthreadpool.c:307
#9 0x00007ffff76d7862 in g_thread_proxy (data=0x7fffcc002230) at /home/benjamin/Projects/jhbuild/checkout/glib/glib/gthread.c:784
#10 0x00007ffff65e358e in start_thread () from /lib64/libpthread.so.0
#11 0x00007ffff6984653 in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7fffe4e54700 (LWP 22163)):
#0 0x00007fffc80d65b0 in ?? ()
#1 0x00007fffd5ce7204 in loop_iterate (ctrl=0x7fffc801b3f8, timeout=-1) at ../../../../Projects/jhbuild/checkout/pipewire/spa/plugins/support/loop.c:343
#2 0x00007fffd5b306d7 in do_loop (user_data=0x7fffc800ef50) at ../../../../Projects/jhbuild/checkout/pipewire/src/pipewire/data-loop.c:37
#3 0x00007ffff65e358e in start_thread () from /lib64/libpthread.so.0
#4 0x00007ffff6984653 in clone () from /lib64/libc.so.6