Segfault on remote WebRTC client disconnection

Nazar Mokrynskyi nazar at restream.io
Thu Dec 12 16:24:05 UTC 2019


Hi folks,
I'm experiencing a segfault and I'm not really sure how to find out why 
exactly.

My pipeline looks like this (changing sinks to fake ones doesn't help, 
running without queues too):
webrtcbin[video track] -> queue -> decodebin -> queue -> autovideosink
webrtcbin[audio track] -> queue -> decodebin -> queue -> autoaudiosink

Whenever client (browser, initiator) closes connection by calling 
peerConnection.close(), GStreamer process (simple Rust app) crashes with 
SIGSEGV.

Demo Rust app doesn't have such behavior (but in it app acts as 
initiator, so maybe that makes a difference).

What would be my next steps for debugging and fixing this issue?

I've tried running. it under valgrind and attaching output below.
Running Ubuntu 18.10 with GStreamer 1.16.1 from repos.

> > valgrind --leak-check=no --undef-value-errors=no target/debug/app
> ==14541== Memcheck, a memory error detector
> ==14541== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
> ==14541== Using Valgrind-3.15.0 and LibVEX; rerun with -h for 
> copyright info
> ==14541== Command: target/debug/app
> ==14541==
> ==14541== Thread 19:
> ==14541== Invalid read of size 8
> ==14541==    at 0x7838570: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0xffbb590 is 48 bytes inside a block of size 112 free'd
> ==14541==    at 0x483BA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x781A564: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x782600B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0xC20AE93: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A94AC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51AC58B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x492C096: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x4A99853: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==  Block was alloc'd at
> ==14541==    at 0x483A7F3: malloc (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x4A754E8: g_malloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8DAC5: g_slice_alloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8E0ED: g_slice_alloc0 (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x783A2A7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783AB79: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x78252F7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7825E74: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==
> ==14541== Invalid read of size 8
> ==14541==    at 0x783A1AA: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0xffbb5c8 is 104 bytes inside a block of size 112 
> free'd
> ==14541==    at 0x483BA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x781A564: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x782600B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0xC20AE93: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A94AC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51AC58B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x492C096: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x4A99853: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==  Block was alloc'd at
> ==14541==    at 0x483A7F3: malloc (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x4A754E8: g_malloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8DAC5: g_slice_alloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8E0ED: g_slice_alloc0 (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x783A2A7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783AB79: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x78252F7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7825E74: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==
> ==14541== Invalid read of size 8
> ==14541==    at 0x7839E5E: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783A1E2: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0xffbb5c8 is 104 bytes inside a block of size 112 
> free'd
> ==14541==    at 0x483BA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x781A564: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x782600B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0xC20AE93: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A94AC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51AC58B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x492C096: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x4A99853: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==  Block was alloc'd at
> ==14541==    at 0x483A7F3: malloc (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x4A754E8: g_malloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8DAC5: g_slice_alloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8E0ED: g_slice_alloc0 (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x783A2A7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783AB79: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x78252F7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7825E74: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==
> ==14541== Invalid read of size 4
> ==14541==    at 0x7839E84: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783A1E2: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0xffbb658 is 72 bytes inside a block of size 96 free'd
> ==14541==    at 0x483BA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x783880B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x781A564: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x782600B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0xC20AE93: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A94AC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51AC58B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x492C096: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Block was alloc'd at
> ==14541==    at 0x483A7F3: malloc (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x4A754E8: g_malloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8DAC5: g_slice_alloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8E0ED: g_slice_alloc0 (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x783A2B4: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783AB79: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x78252F7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7825E74: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==
> ==14541== Invalid read of size 8
> ==14541==    at 0x4A803EB: g_queue_is_empty (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x7839EAF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783A1E2: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0xffbb630 is 32 bytes inside a block of size 96 free'd
> ==14541==    at 0x483BA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x783880B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x781A564: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x782600B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0xC20AE93: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A94AC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51AC58B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x492C096: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Block was alloc'd at
> ==14541==    at 0x483A7F3: malloc (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x4A754E8: g_malloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8DAC5: g_slice_alloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8E0ED: g_slice_alloc0 (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x783A2B4: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783AB79: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x78252F7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7825E74: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==
> ==14541== Invalid read of size 8
> ==14541==    at 0x7839F59: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783A1E2: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0xffbb580 is 32 bytes inside a block of size 112 free'd
> ==14541==    at 0x483BA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x781A564: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x782600B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0xC20AE93: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A94AC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51AC58B: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x492C096: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x4A99853: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==  Block was alloc'd at
> ==14541==    at 0x483A7F3: malloc (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==14541==    by 0x4A754E8: g_malloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8DAC5: g_slice_alloc (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A8E0ED: g_slice_alloc0 (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x783A2A7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783AB79: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x78252F7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7825E74: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x5031F3A: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x4A6F71D: g_main_context_dispatch (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FACF: ??? (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==    by 0x4A6FDC2: g_main_loop_run (in 
> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.2)
> ==14541==
> ==14541== Invalid read of size 8
> ==14541==    at 0x503468A: g_socket_send_message (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x7839F77: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783A1E2: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
> ==14541==
> ==14541==
> ==14541== Process terminating with default action of signal 11 (SIGSEGV)
> ==14541==  Access not within mapped region at address 0x18
> ==14541==    at 0x503468A: g_socket_send_message (in 
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.2)
> ==14541==    by 0x7839F77: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x783A1E2: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0x7823210: ??? (in 
> /usr/lib/x86_64-linux-gnu/libnice.so.10.7.0)
> ==14541==    by 0xC20B4A9: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0xC20BE52: ??? (in 
> /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnice.so)
> ==14541==    by 0x51A5C21: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x51A6CE7: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1601.0)
> ==14541==    by 0x48F4EAE: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48F6F10: ??? (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48FDD22: gst_pad_push (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==    by 0x48E3C8A: gst_proxy_pad_chain_default (in 
> /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1601.0)
> ==14541==  If you believe this happened as a result of a stack
> ==14541==  overflow in your program's main thread (unlikely but
> ==14541==  possible), you can try to increase the size of the
> ==14541==  main thread stack using the --main-stacksize= flag.
> ==14541==  The main thread stack size used in this run was 8388608.
> ==14541==
> ==14541== HEAP SUMMARY:
> ==14541==     in use at exit: 13,620,476 bytes in 43,335 blocks
> ==14541==   total heap usage: 174,990 allocs, 131,655 frees, 
> 55,668,438 bytes allocated
> ==14541==
> ==14541== For a detailed leak analysis, rerun with: --leak-check=full
> ==14541==
> ==14541== For lists of detected and suppressed errors, rerun with: -s
> ==14541== ERROR SUMMARY: 8 errors from 7 contexts (suppressed: 0 from 0)
> fish: “valgrind --leak-check=no --unde…” terminated by signal SIGSEGV 
> (Address boundary error)

-- 
Sincerely, Nazar Mokrynskyi
Lead software engineer @ Restream.io



More information about the gstreamer-devel mailing list