webrtcbin segmentation fault

Matthew Waters ystreet00 at gmail.com
Tue Feb 16 02:40:53 UTC 2021


Look like you need to look into either updating libgupnp or fixing an 
issue in libgupnp with your specific network configuration.  Or you can 
build a custom libnice version without upnp support.

Cheers
-Matt

On 11/2/21 7:48 pm, Lusine wrote:
> Hi Folks,
> I'm facing to an issue with webrtcbin. Its' examples from here produce
> segmentation fault on my machine:
> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/webrtc/webrtc.c
>
> I have the following version of gstreamer:
> GStreamer 1.14.5
>
> Also installed this:
> sudo apt install gstreamer1.0-nice
>
> And my machine is:
> Ubuntu 18.04.5 LTS , which I run from WSL
>
> This is how I compile the code:
> gcc -Wall webrtc.c -o webrtc -lgstwebrtc-1.0 $(pkg-config --cflags --libs
> gstreamer-plugins-good-1.0 gstreamer-plugins-bad-1.0 ) -lgstsdp-1.0
>
> And executing it pruduces segmentation fault:
> export GST_DEBUG="*:4"
> ./webrtc
>
> ...
> 0:00:01.106017800 32235 0x7fffde54a0f0 INFO               webrtcbin
> gstwebrtcbin.c:2795:_set_description_task:<send> Attempting to set local
> offer in the stable state
> 0:00:01.106122500 32235 0x7fffde54a370 INFO               webrtcbin
> gstwebrtcbin.c:2795:_set_description_task:<recv> Attempting to set remote
> offer in the stable state
> 0:00:01.108295200 32235 0x7fffde54a370 INFO     GST_ELEMENT_FACTORY
> gstelementfactory.c:361:gst_element_factory_create: creating element
> "dtlssrtpenc"
> 0:00:01.109541300 32235 0x7fffde54a370 INFO     GST_ELEMENT_FACTORY
> gstelementfactory.c:361:gst_element_factory_create: creating element
> "srtpenc"
> 0:00:01.110325400 32235 0x7fffde54a370 INFO     GST_ELEMENT_FACTORY
> gstelementfactory.c:361:gst_element_factory_create: creating element
> "dtlsenc"
> 0:00:01.111461800 32235 0x7fffde54a370 INFO        GST_ELEMENT_PADS
> gstelement.c:670:gst_element_add_pad:<GstDtlsEnc at 0x7fffde5c4c50> adding pad
> 'src'
> 0:00:01.112074700 32235 0x7fffde54a370 INFO     GST_ELEMENT_FACTORY
> gstelementfactory.c:361:gst_element_factory_create: creating element
> "funnel"
> Segmentation fault (core dumped)
>
> This is stacktrace from gdb:
> Thread 13 "gst-pc-ops" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffd1420700 (LWP 32234)]
> 0x00007ffffe96b580 in g_str_hash () from
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> (gdb) bt
> #0  0x00007ffffe96b580 in g_str_hash () at
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> #1  0x00007ffffe96ad94 in g_hash_table_contains () at
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007ffff83567af in  () at /usr/lib/x86_64-linux-gnu/libgupnp-1.0.so.4
> #3  0x00007ffff8356ec9 in  () at /usr/lib/x86_64-linux-gnu/libgupnp-1.0.so.4
> #4  0x00007ffff835765d in  () at /usr/lib/x86_64-linux-gnu/libgupnp-1.0.so.4
> #5  0x00007ffff8356b82 in  () at /usr/lib/x86_64-linux-gnu/libgupnp-1.0.so.4
> #6  0x00007ffffcd4e0f9 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
> #7  0x00007ffffe97c285 in g_main_context_dispatch () at
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> #8  0x00007ffffe97c650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> #9  0x00007ffffe97c962 in g_main_loop_run () at
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> #10 0x00007ffff9994c2e in  () at
> /usr/lib/x86_64-linux-gnu/libgupnp-igd-1.0.so.4
> #11 0x00007ffffe9a4175 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
> #12 0x00007ffffd7276db in start_thread (arg=0x7fffd1420700) at
> pthread_create.c:463
> #13 0x00007ffffe43171f in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
>
> Any help/suggestion to solve this is appreciated.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210216/7e75ef45/attachment-0001.sig>


More information about the gstreamer-devel mailing list