Some environmental factor causes a crash within libgstsoup.so
Describe your issue
Some environmental factor causes a crash within libgstsoup.so
My test case is the first tutorial: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/3809b9dca445490764b571c98a0a1f558f172f47/subprojects/gst-docs/examples/tutorials/basic-tutorial-1.c
Expected Behavior
If there is an error with some environment or setup, it should probably be reported and exit cleanly, not crash.
The tutorial should probably work without a dependency on 'org.gnome.system.proxy' as no proxy is in use.
Observed Behavior
SIGTRAP: Trace/breakpoint trap
Setup
- Slackware-current
- x86_64 desktop
- gstreamer-1.18.5-x86_64-1
- gst-plugins-base-1.18.5-x86_64-1
- gst-plugins-good-1.18.5-x86_64-1
- Not using GNOME, just a simple X11 with window manager
- No web proxy is required or in use
$ printenv | grep -i proxy
[nothing]
Steps to reproduce the bug
cc -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -g -c -o hellow.o hellow.c
cc hellow.o -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -o hellow
env GST_DEBUG='*:WARN' ./hellow
How reproducible is the bug?
Always
Screenshots if relevant
Solutions you have tried
Related non-duplicate issues
Additional Information
$ gdb --args env GST_DEBUG='*:WARN' ./hellow
[...]
(hellow:12913): GLib-GIO-ERROR **: 15:23:48.517: Settings schema 'org.gnome.system.proxy' is not installed
Thread 2 "source:src" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7ffff4179640 (LWP 12914)]
0x00007ffff7d2540f in g_log_structured_array () from /usr/lib64/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff7d2540f in g_log_structured_array () at /usr/lib64/libglib-2.0.so.0
#1 0x00007ffff7d25805 in g_log_default_handler () at /usr/lib64/libglib-2.0.so.0
#2 0x00007ffff7d259f5 in g_logv () at /usr/lib64/libglib-2.0.so.0
#3 0x00007ffff7d25cc2 in g_log () at /usr/lib64/libglib-2.0.so.0
#4 0x00007ffff68e115e in () at /usr/lib64/libgio-2.0.so.0
#5 0x00007ffff7e181a6 in () at /usr/lib64/libgobject-2.0.so.0
#6 0x00007ffff7e18594 in () at /usr/lib64/libgobject-2.0.so.0
#7 0x00007ffff7e19c60 in g_object_new_valist () at /usr/lib64/libgobject-2.0.so.0
#8 0x00007ffff7e1a17c in g_object_new () at /usr/lib64/libgobject-2.0.so.0
#9 0x00007ffff6a90da7 in () at /usr/lib64/gio/modules/libgiognomeproxy.so
#10 0x00007ffff7e30d0a in g_type_create_instance () at /usr/lib64/libgobject-2.0.so.0
#11 0x00007ffff7e184cd in () at /usr/lib64/libgobject-2.0.so.0
#12 0x00007ffff7e1986d in g_object_new_with_properties () at /usr/lib64/libgobject-2.0.so.0
#13 0x00007ffff7e1a191 in g_object_new () at /usr/lib64/libgobject-2.0.so.0
#14 0x00007ffff686f66c in () at /usr/lib64/libgio-2.0.so.0
#15 0x00007ffff686fc66 in () at /usr/lib64/libgio-2.0.so.0
#16 0x00007ffff68868d2 in g_proxy_resolver_get_default () at /usr/lib64/libgio-2.0.so.0
#17 0x00007ffff6a1bb35 in ensure_socket_props () at /usr/lib64/libsoup-2.4.so.1
#18 0x00007ffff6a1f46d in soup_session_process_queue_item.part () at /usr/lib64/libsoup-2.4.so.1
#19 0x00007ffff6a20622 in soup_session_send () at /usr/lib64/libsoup-2.4.so.1
#20 0x00007ffff7fbc668 in () at /usr/lib64/gstreamer-1.0/libgstsoup.so
#21 0x00007ffff7fbd9df in () at /usr/lib64/gstreamer-1.0/libgstsoup.so
#22 0x00007ffff6b5b60d in () at /usr/lib64/libgstbase-1.0.so.0
#23 0x00007ffff6b5d8a5 in () at /usr/lib64/libgstbase-1.0.so.0
#24 0x00007ffff7f1506f in () at /usr/lib64/libgstreamer-1.0.so.0
#25 0x00007ffff7d47cb4 in () at /usr/lib64/libglib-2.0.so.0
#26 0x00007ffff7d473fd in () at /usr/lib64/libglib-2.0.so.0
#27 0x00007ffff78c5e45 in start_thread () at /lib64/libpthread.so.0
#28 0x00007ffff7bf444f in clone () at /lib64/libc.so.6