Jump to content
  • 1

v2012: gst_read1.0 coredumps (segfault in libglib-2.0.so)


Thorsten Hirsch

Question

I'm trying to get my webcam working in Citrix Workspace App 20.12, but the gstreamer-1.0 libraries seem to be broken with an up-to-date installation of archlinux. Here's what happens:

➜  ICAClient cd /opt/Citrix/ICAClient/util
➜  util ./gst_read 

(gst_read:39266): GStreamer-WARNING **: 23:09:16.639: free_priv_data: object finalizing but still has parent (object:0x7f447c074240, parent:0x561e59c58d20)

(gst_read:39266): GStreamer-WARNING **: 23:09:16.639: free_priv_data: object finalizing but still has 1 parents (object:0x7f447c074240)

(gst_read:39266): GStreamer-CRITICAL **: 23:09:16.639: gst_mini_object_unlock: assertion 'GST_MINI_OBJECT_IS_LOCKABLE (object)' failed

(gst_read:39266): GStreamer-WARNING **: 23:09:16.755: free_priv_data: object finalizing but still has parent (object:0x7f447c0746c0, parent:0x561e59c58c40)

(gst_read:39266): GStreamer-WARNING **: 23:09:16.755: free_priv_data: object finalizing but still has 1 parents (object:0x7f447c0746c0)

(gst_read:39266): GStreamer-CRITICAL **: 23:09:16.755: gst_mini_object_unlock: assertion 'GST_MINI_OBJECT_IS_LOCKABLE (object)' failed

(gst_read:39266): GStreamer-WARNING **: 23:09:16.883: free_priv_data: object finalizing but still has parent (object:0x7f447c0747e0, parent:0x7f447c03ab60)

(gst_read:39266): GStreamer-WARNING **: 23:09:16.883: free_priv_data: object finalizing but still has 1 parents (object:0x7f447c0747e0)

(gst_read:39266): GStreamer-CRITICAL **: 23:09:16.883: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed

(gst_read:39266): GStreamer-CRITICAL **: 23:09:16.883: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed

(gst_read:39266): GStreamer-WARNING **: 23:09:17.007: free_priv_data: object finalizing but still has parent (object:0x7f447c074900, parent:0x7f447c03ac40)

(gst_read:39266): GStreamer-WARNING **: 23:09:17.007: free_priv_data: object finalizing but still has 1 parents (object:0x7f447c074900)

(gst_read:39266): GStreamer-CRITICAL **: 23:09:17.007: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed

(gst_read:39266): GStreamer-CRITICAL **: 23:09:17.007: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed

(gst_read:39266): GStreamer-WARNING **: 23:09:17.131: free_priv_data: object finalizing but still has parent (object:0x7f447c0747e0, parent:0x7f447c03ad20)

(gst_read:39266): GStreamer-WARNING **: 23:09:17.131: free_priv_data: object finalizing but still has 1 parents (object:0x7f447c0747e0)

(gst_read:39266): GStreamer-CRITICAL **: 23:09:17.131: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed

(gst_read:39266): GStreamer-CRITICAL **: 23:09:17.131: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed

(gst_read:39266): GStreamer-WARNING **: 23:09:17.256: free_priv_data: object finalizing but still has parent (object:0x7f447c074a20, parent:0x7f447c03ae00)

(gst_read:39266): GStreamer-WARNING **: 23:09:17.256: free_priv_data: object finalizing but still has 1 parents (object:0x7f447c074a20)

(gst_read:39266): GStreamer-CRITICAL **: 23:09:17.256: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed

(gst_read:39266): GStreamer-CRITICAL **: 23:09:17.256: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
[1]    39266 segmentation fault (core dumped)  ./gst_read

 

There's a bit more info in dmesg:

[ 5763.492509] v4l2src:src[39267]: segfault at e40becf0 ip 00007f4483e40d99 sp 00007f4482851c10 error 4 in libglib-2.0.so.0.6600.4[7f4483dec000+8c000]
[ 5763.492518] Code: 00 00 00 00 49 8b 14 24 48 c7 42 08 00 00 00 00 49 89 6c 24 08 48 8b 15 f5 21 0c 00 4c 89 e5 4c 01 ea 4c 3b 22 74 72 49 89 c4 <49> 8b 34 24 89 cf 48 8b 56 08 89 d0 29 d7 29 c8 39 d1 48 0f 47 c7

 

My system is running Linux 5.10.4 (x64) and I've installed the following gstreamer packages:

 

gstreamer 1.18.2-1
gstreamer-vaapi 1.18.2-1
gstreamermm 1.10.0-2
libcanberra-gstreamer 0.30+2+gc0620e4-3

gst-libav 1.18.2-1

gst-plugin-pipewire 0.3.19-1
gst-plugins-bad 1.18.2-2
gst-plugins-bad-libs 1.18.2-2
gst-plugins-base 1.18.2-1
gst-plugins-base-libs 1.18.2-1
gst-plugins-good 1.18.2-1
gst-plugins-ugly 1.18.2-1

 

 

Link to comment

12 answers to this question

Recommended Posts

  • 0

Here's gdb's full backtrace:

Core was generated by `./gst_read'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f4483e40d99 in ?? () from /usr/lib/libglib-2.0.so.0
[Current thread is 1 (Thread 0x7f4482853640 (LWP 39267))]
(gdb) bt
#0  0x00007f4483e40d99 in  () at /usr/lib/libglib-2.0.so.0
#1  0x00007f4483e41299 in g_slice_free1 () at /usr/lib/libglib-2.0.so.0
#2  0x00007f4483dc296b in gst_app_sink_try_pull_sample () at /usr/lib/libgstapp-1.0.so.0
#3  0x0000561e59403d7d in cb_new_buffer ()
#4  0x00007f4483dbf5ff in  () at /usr/lib/libgstapp-1.0.so.0
#5  0x00007f44836ee7b8 in  () at /usr/lib/libgstbase-1.0.so.0
#6  0x00007f44836bdf81 in  () at /usr/lib/libgstbase-1.0.so.0
#7  0x00007f4483fe6b75 in  () at /usr/lib/libgstreamer-1.0.so.0
#8  0x00007f4483fea1f3 in  () at /usr/lib/libgstreamer-1.0.so.0
#9  0x00007f4483fea61e in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#10 0x00007f4483620b4d in gst_video_encoder_finish_frame () at /usr/lib/libgstvideo-1.0.so.0
#11 0x00007f44840d21b2 in  () at /usr/lib/gstreamer-1.0/libgsttheora.so
#12 0x00007f4483615788 in  () at /usr/lib/libgstvideo-1.0.so.0
#13 0x00007f4483fe6b75 in  () at /usr/lib/libgstreamer-1.0.so.0
#14 0x00007f4483fea1f3 in  () at /usr/lib/libgstreamer-1.0.so.0
#15 0x00007f4483fea61e in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#16 0x00007f44836cba3f in  () at /usr/lib/libgstbase-1.0.so.0
#17 0x00007f4483fe6b75 in  () at /usr/lib/libgstreamer-1.0.so.0
#18 0x00007f4483fea1f3 in  () at /usr/lib/libgstreamer-1.0.so.0
#19 0x00007f4483fea61e in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#20 0x00007f44836cba3f in  () at /usr/lib/libgstbase-1.0.so.0
#21 0x00007f4483fe6b75 in  () at /usr/lib/libgstreamer-1.0.so.0
#22 0x00007f4483fea1f3 in  () at /usr/lib/libgstreamer-1.0.so.0
#23 0x00007f4483fea61e in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#24 0x00007f44836cba3f in  () at /usr/lib/libgstbase-1.0.so.0
#25 0x00007f4483fe6b75 in  () at /usr/lib/libgstreamer-1.0.so.0
#26 0x00007f4483fea1f3 in  () at /usr/lib/libgstreamer-1.0.so.0
#27 0x00007f4483fea61e in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#28 0x00007f44836cfa7e in  () at /usr/lib/libgstbase-1.0.so.0
#29 0x00007f4484010a61 in  () at /usr/lib/libgstreamer-1.0.so.0
#30 0x00007f4483e52d77 in  () at /usr/lib/libglib-2.0.so.0
#31 0x00007f4483e4fec1 in  () at /usr/lib/libglib-2.0.so.0
#32 0x00007f4483d5e3e9 in start_thread () at /usr/lib/libpthread.so.0
#33 0x00007f448394f293 in clone () at /usr/lib/libc.so.6

 

Link to comment
  • 0

Hi

we have the same issue on Ubuntu 20.04, with the same crash. In my case i see the webcome is comming up for 1 secound and than i lose the connection .

 

I tried gst_read and bekome the same error.

 

(gst_read:115537): GStreamer-WARNING **: 12:22:45.817: free_priv_data: object finalizing but still has parent (object:0x7f08d807b240, parent:0x562b575611c0)
(gst_read:115537): GStreamer-WARNING **: 12:22:45.817: free_priv_data: object finalizing but still has 1 parents (object:0x7f08d807b240)
(gst_read:115537): GStreamer-CRITICAL **: 12:22:45.817: gst_mini_object_unlock: assertion 'GST_MINI_OBJECT_IS_LOCKABLE (object)' failed
(gst_read:115537): GStreamer-CRITICAL **: 12:22:45.817: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
(gst_read:115537): GStreamer-WARNING **: 12:22:45.883: free_priv_data: object finalizing but still has parent (object:0x7f08d807b6c0, parent:0x562b575610e0)
(gst_read:115537): GStreamer-WARNING **: 12:22:45.883: free_priv_data: object finalizing but still has 1 parents (object:0x7f08d807b6c0)
(gst_read:115537): GStreamer-CRITICAL **: 12:22:45.883: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
(gst_read:115537): GStreamer-CRITICAL **: 12:22:45.883: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
(gst_read:115537): GStreamer-WARNING **: 12:22:45.947: free_priv_data: object finalizing but still has parent (object:0x7f08d807b7e0, parent:0x7f08d80ae870)
(gst_read:115537): GStreamer-WARNING **: 12:22:45.947: free_priv_data: object finalizing but still has 1 parents (object:0x7f08d807b7e0)
(gst_read:115537): GStreamer-CRITICAL **: 12:22:45.947: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
(gst_read:115537): GStreamer-CRITICAL **: 12:22:45.947: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
(gst_read:115537): GStreamer-WARNING **: 12:22:46.015: free_priv_data: object finalizing but still has parent (object:0x7f08d807b900, parent:0x7f08d80ae950)
(gst_read:115537): GStreamer-WARNING **: 12:22:46.015: free_priv_data: object finalizing but still has 1 parents (object:0x7f08d807b900)
(gst_read:115537): GStreamer-CRITICAL **: 12:22:46.015: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
(gst_read:115537): GStreamer-CRITICAL **: 12:22:46.015: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
(gst_read:115537): GStreamer-WARNING **: 12:22:46.083: free_priv_data: object finalizing but still has parent (object:0x7f08d807b7e0, parent:0x7f08d80aea30)
(gst_read:115537): GStreamer-WARNING **: 12:22:46.083: free_priv_data: object finalizing but still has 1 parents (object:0x7f08d807b7e0)
(gst_read:115537): GStreamer-CRITICAL **: 12:22:46.083: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
(gst_read:115537): GStreamer-CRITICAL **: 12:22:46.083: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
(gst_read:115537): GStreamer-WARNING **: 12:22:46.147: free_priv_data: object finalizing but still has parent (object:0x7f08d807ba20, parent:0x7f08d80aeb10)
(gst_read:115537): GStreamer-WARNING **: 12:22:46.147: free_priv_data: object finalizing but still has 1 parents (object:0x7f08d807ba20)
gst_read:115537): GStreamer-CRITICAL **: 12:22:46.147: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
(gst_read:115537): GStreamer-CRITICAL **: 12:22:46.147: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
 

 

Have you any Workaground for this ?

 

regards

 

Michael

Link to comment
  • 0

Hi,

i log file in linux come the following error.

 

Feb  2 13:03:14 tn-pc01 WebKitWebProcess[16373]: Memory pressure relief: Total: res = 51118080/51118080/0, res+swap = 47026176/47026176/0
Feb  2 13:03:15 tn-pc01 kernel: [103025.872624] v4l2src:src[119281]: segfault at 62a0163d ip 00007f774ff6aa53 sp 00007f774ebd3c20 error 4 in libglib-2.0.so.0.6400.3[7f774ff17000+84000]
Feb  2 13:03:15 tn-pc01 kernel: [103025.872650] Code: 8b 30 48 c7 46 08 00 00 00 00 4c 89 60 08 48 8b 35 22 83 0b 00 49 89 c4 4c 01 f6 48 8b 1e 48 39 d8 0f 84 80 00 00 00 48 89 c8 <48> 8b 38 41 89 d0 48 8b 77 08 8
9 f1 41 29 f0 29 d1 39 f2 49 0f 47
Feb  2 13:03:28 tn-pc01 WebKitNetworkProcess[16369]: Memory pressure relief: Total: res = 6565888/6565888/0, res+swap = 2326528/2326528/0
Feb  2 13:03:29 tn-pc01 WebKitNetworkProcess[16374]: Memory pressure relief: Total: res = 6840320/6840320/0, res+swap = 2600960/2600960/0
Feb  2 13:03:30 tn-pc01 WebKitWebProcess[16367]: Memory pressure relief: Total: res = 24031232/24031232/0, res+swap = 19369984/19369984/0

 

regards

Michael

 

Link to comment
  • 0

With version 21.03 the backtrace looks a little bit different, but the problem is basically the same:

(gdb) bt
#0  0x00007ffff7d35b36 in g_slice_alloc () at /usr/lib/libglib-2.0.so.0
#1  0x00007ffff7e9ec1d in gst_buffer_new () at /usr/lib/libgstreamer-1.0.so.0
#2  0x00007ffff7ea0acd in gst_buffer_new_allocate () at /usr/lib/libgstreamer-1.0.so.0
#3  0x00007ffff750b6c2 in gst_video_encoder_allocate_output_frame () at /usr/lib/libgstvideo-1.0.so.0
#4  0x00007ffff7fbe183 in  () at /usr/lib/gstreamer-1.0/libgsttheora.so
#5  0x00007ffff7fbf1b2 in  () at /usr/lib/gstreamer-1.0/libgsttheora.so
#6  0x00007ffff7504728 in  () at /usr/lib/libgstvideo-1.0.so.0
#7  0x00007ffff7edee45 in  () at /usr/lib/libgstreamer-1.0.so.0
#8  0x00007ffff7ee24c3 in  () at /usr/lib/libgstreamer-1.0.so.0
#9  0x00007ffff7ee28ee in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#10 0x00007ffff75baa3f in  () at /usr/lib/libgstbase-1.0.so.0
#11 0x00007ffff7edee45 in  () at /usr/lib/libgstreamer-1.0.so.0
#12 0x00007ffff7ee24c3 in  () at /usr/lib/libgstreamer-1.0.so.0
#13 0x00007ffff7ee28ee in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#14 0x00007ffff75baa3f in  () at /usr/lib/libgstbase-1.0.so.0
#15 0x00007ffff7edee45 in  () at /usr/lib/libgstreamer-1.0.so.0
#16 0x00007ffff7ee24c3 in  () at /usr/lib/libgstreamer-1.0.so.0
#17 0x00007ffff7ee28ee in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#18 0x00007ffff75baa3f in  () at /usr/lib/libgstbase-1.0.so.0
#19 0x00007ffff7edee45 in  () at /usr/lib/libgstreamer-1.0.so.0
#20 0x00007ffff7ee24c3 in  () at /usr/lib/libgstreamer-1.0.so.0
#21 0x00007ffff7ee28ee in gst_pad_push () at /usr/lib/libgstreamer-1.0.so.0
#22 0x00007ffff75bea7e in  () at /usr/lib/libgstbase-1.0.so.0
#23 0x00007ffff7f08e11 in  () at /usr/lib/libgstreamer-1.0.so.0
#24 0x00007ffff7d47137 in  () at /usr/lib/libglib-2.0.so.0
#25 0x00007ffff7d44241 in  () at /usr/lib/libglib-2.0.so.0
#26 0x00007ffff7c50299 in start_thread () at /usr/lib/libpthread.so.0
#27 0x00007ffff783d053 in clone () at /usr/lib/libc.so.6

 

Link to comment
  • 0
On 6/10/2021 at 8:00 AM, Michael Schwenke1709152772 said:

Hi @All,

 

the new Beta Linux Client Version is Working for me.

Citrix Workspace Ap  21.6.0.13

 

I cane use the WebCam without any Crash.

 

regards

Michael

Hi Michael,

 

thanks for that info. I have wasted plenty of time to get the webcam going util I end up in this forum post. Thought it might have been a configuration issue instead of a bug.

 

It is a little bit of a let down that no Citrix employed responed to this post. As it seems to be a bug they fixed in the upcoming release some feedback would have been nice.

 

Anyhow, thanks for keeping us updated.

 

Regards.

 

Matthias

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...