Subject: bug#73618: gst-plugins-base 1.24.6 flaky multisocketsink test failure

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 03 Oct 2024 23:59:59 +0900

Hi,

I've seen this fail once:

--8<---------------cut here---------------start------------->8---
Running suite(s): multisocketsink

Unexpected critical/warning: object_ref: assertion '!object_already_finalized' failed

Stack trace:
gst_debug_get_stack_trace (/gnu/store/7jhl795q1b92s0bwqppl060h7gjrcmhn-gstreamer-1.24.6/lib/libgstreamer-1.0.so.0.2406.0:0x7ffff7ee82cb)
?? (/gnu/store/7jhl795q1b92s0bwqppl060h7gjrcmhn-gstreamer-1.24.6/lib/libgstcheck-1.0.so.0.2406.0:0x7ffff7ca0ae7)
g_logv (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libglib-2.0.so.0.8000.5:0x7ffff7d219d8)
g_log (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libglib-2.0.so.0.8000.5:0x7ffff7d21c9e)
?? (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libgobject-2.0.so.0.8000.5:0x7ffff7e20f5e)
g_object_ref (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libgobject-2.0.so.0.8000.5:0x7ffff7e20fcc)
g_cancellable_source_new (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libgio-2.0.so.0.8000.5:0x7ffff7b03e75)
g_socket_create_source (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libgio-2.0.so.0.8000.5:0x7ffff7b52200)
ensure_condition (gstmultisocketsink.c:1003)
gst_multi_socket_sink_socket_condition (gstmultisocketsink.c:1041)
?? (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libgio-2.0.so.0.8000.5:0x7ffff7b52083)
?? (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libglib-2.0.so.0.8000.5:0x7ffff7d1619f)
?? (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libglib-2.0.so.0.8000.5:0x7ffff7d190d3)
g_main_context_iteration (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libglib-2.0.so.0.8000.5:0x7ffff7d196bb)
gst_multi_socket_sink_thread (gstmultisocketsink.c:1162)
?? (/gnu/store/7qwncqckfsjm3lr5y0qq604bknznw3sm-glib-2.80.5/lib/libglib-2.0.so.0.8000.5:0x7ffff7d45819)
start_thread (/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6:0x7ffff79517f0)
__clone3 (/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6:0x7ffff79c85e4)

88%: Checks: 9, Failures: 1, Errors: 0
../gstreamer-1.24.6/libs/gst/check/gstcheck.c:286:F:general:test_add_client:0: Unexpected critical/warning: object_ref: assertion '!object_already_finalized' failed
Check suite multisocketsink ran in 0.018s (tests failed: 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

 64/131 elements_playbin_complex                                       OK              0.11s
 65/131 elements_textoverlay                                           OK              3.08s
 66/131 elements_theoradec                                             OK              0.03s
 67/131 elements_vorbisdec                                             OK              0.03s
 68/131 elements_vorbistag                                             OK              0.03s
 69/131 pipelines_oggmux                                               OK              0.08s
 70/131 pipelines_tcp                                                  OK              0.03s
 71/131 pipelines_theoraenc                                            OK              0.04s
 72/131 pipelines_vorbisenc                                            OK              0.04s
 73/131 pipelines_vorbisdec                                            OK              0.03s
 74/131 libs_gstglapi                                                  OK              0.03s
 75/131 libs_gstglcolorconvert                                         OK              2.04s
 76/131 libs_gstglcontext                                              OK              0.60s
 77/131 libs_gstglfeature                                              OK              0.04s
 78/131 libs_gstglformat                                               OK              0.29s
 79/131 libs_gstglheaders                                              OK              0.13s
 80/131 libs_gstglmatrix                                               OK              0.07s
 81/131 libs_gstglmemory                                               OK              0.55s
 82/131 libs_gstglquery                                                OK              0.66s
 83/131 libs_gstglshader                                               OK              0.37s
 84/131 libs_gstglsl                                                   OK              0.03s
 85/131 libs_gstglslstage                                              OK              0.13s
 86/131 libs_gstglupload                                               OK              0.19s
 87/131 libs_gstglvideomixerelement                                    OK              0.03s
 88/131 elements_glimagesink                                           OK              0.12s
 89/131 elements_glbin                                                 OK              1.29s
 90/131 pipelines_gl_launch_lines                                      OK             28.38s
 91/131 elements_glfilter                                              OK              0.19s
 92/131 elements_glstereo                                              OK              0.19s
 93/131 elements_glmixer                                               OK              0.36s
 94/131 libs_gstlibscpp                                                OK              0.03s
 95/131 elements-videoscale-1                                          OK              0.07s
 96/131 elements-videoscale-2                                          OK              0.06s
 97/131 elements-videoscale-3                                          OK              0.07s
 98/131 elements-videoscale-4                                          OK              0.07s
 99/131 elements-videoscale-5                                          OK              0.06s
100/131 elements-videoscale-6                                          OK              0.07s
101/131 orc_audio                                                      OK              0.01s
102/131 orc_video                                                      OK              0.02s
103/131 orc_adder                                                      OK              0.01s
104/131 orc_audiomixer                                                 OK              0.01s
105/131 orc_compositor                                                 OK              0.01s
106/131 orc_volume                                                     OK              0.01s
107/131 orc_videotestsrc                                               OK              0.00s
108/131 validate.audiotestsrc.reverse                                  SKIP            0.01s
109/131 validate.videorate.10_to_1fps                                  SKIP            0.01s
110/131 validate.videorate.reverse.10_to_1fps                          SKIP            0.01s
111/131 validate.videorate.reverse.10_to_30fps                         SKIP            0.01s
112/131 validate.videorate.reverse.1_to_10fps                          SKIP            0.00s
113/131 validate.videorate.reverse.30fps                               SKIP            0.01s
114/131 validate.videorate.reverse.variable_to_10fps                   SKIP            0.01s
115/131 validate.videorate.change_rate_while_playing                   SKIP            0.01s
116/131 validate.videorate.change_rate_reverse_playback                SKIP            0.01s
117/131 validate.videorate.rate_0_5                                    SKIP            0.01s
118/131 validate.videorate.rate_0_5_with_decoder                       SKIP            0.01s
119/131 validate.videorate.rate_2_0                                    SKIP            0.01s
120/131 validate.videorate.rate_2_0_with_decoder                       SKIP            0.01s
121/131 validate.videorate.duplicate_on_eos                            SKIP            0.01s
122/131 validate.videorate.duplicate_on_eos_disbaled                   SKIP            0.01s
123/131 validate.videorate.duplicate_on_eos_half_sec                   SKIP            0.00s
124/131 validate.videorate.fill_segment_after_caps_changed_before_eos  SKIP            0.01s
125/131 validate.videorate.drop_out_of_segment                         SKIP            0.01s
126/131 validate.compositor.renogotiate_failing_unsupported_src_format SKIP            0.01s
127/131 validate.giosrc.read-growing-file                              SKIP            0.01s
128/131 validate.encodebin.set-encoder-properties                      SKIP            0.01s
129/131 validate.uridecodebin.expose_raw_pad_caps                      SKIP            0.01s
130/131 validate.fakevideodec.encoded                                  SKIP            0.01s
131/131 validate.fakevideodec.simple                                   SKIP            0.01s

Summary of Failures:

 63/131 elements_multisocketsink                                       FAIL            0.05s   exit status 1

Ok:                 106 
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            24  
Timeout:            0   

Full log written to /tmp/guix-build-gst-plugins-base-1.24.6.drv-0/build/meson-logs/testlog.txt
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "meson" arguments: ("test" "--print-errorlogs" "-t" "0") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `check' failed after 90.6 seconds
--8<---------------cut here---------------end--------------->8---

Couldn't trigger it on a 2nd run.

-- 
Thanks,
Maxim