After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789542 - audiovisualizer: basic-tutorial-8.c is crashing with vaapisink
audiovisualizer: basic-tutorial-8.c is crashing with vaapisink
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-27 07:58 UTC by Guillaume Desmottes
Modified: 2018-11-03 12:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Guillaume Desmottes 2017-10-27 07:58:56 UTC
gst-docs/examples/tutorial/basic-tutorial-8.c is raising a crash in audiovisualizer with master.

(It would be good to somehow integrate those examples in our CI system).

Thread 5 "video_queue:src" received signal SIGSEGV, Segmentation fault.

Thread 7 (Thread 0x7fffe9b3f700 (LWP 26259))

  • #0 syscall
  • #1 g_cond_wait
  • #2 gst_queue_chain_buffer_or_list
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1246
  • #3 gst_queue_chain
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1344
  • #4 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #5 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #6 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #7 gst_tee_do_push
    at ../subprojects/gstreamer/plugins/elements/gsttee.c line 856
  • #8 gst_tee_handle_data
    at ../subprojects/gstreamer/plugins/elements/gsttee.c line 939
  • #9 gst_tee_chain
    at ../subprojects/gstreamer/plugins/elements/gsttee.c line 1022
  • #10 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #11 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #12 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #13 gst_base_src_loop
    at ../subprojects/gstreamer/libs/gst/base/gstbasesrc.c line 2918
  • #14 gst_task_func
    at ../subprojects/gstreamer/gst/gsttask.c line 332
  • #15 default_func
    at ../subprojects/gstreamer/gst/gsttaskpool.c line 69
  • #16 g_thread_pool_thread_proxy
  • #17 g_thread_proxy
  • #18 start_thread
  • #19 clone

Thread 6 (Thread 0x7fffea340700 (LWP 26258))

  • #0 syscall
  • #1 g_cond_wait
  • #2 gst_base_sink_wait_preroll
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 2267
  • #3 gst_base_sink_do_preroll
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 2361
  • #4 gst_base_sink_do_sync
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 2564
  • #5 gst_base_sink_chain_unlocked
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 3513
  • #6 gst_base_sink_chain_main
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 3672
  • #7 gst_base_sink_chain
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 3701
  • #8 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #9 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #10 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #11 gst_proxy_pad_chain_default
    at ../subprojects/gstreamer/gst/gstghostpad.c line 127
  • #12 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #13 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #14 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #15 gst_base_transform_chain
    at ../subprojects/gstreamer/libs/gst/base/gstbasetransform.c line 2312
  • #16 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #17 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #18 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #19 gst_base_transform_chain
    at ../subprojects/gstreamer/libs/gst/base/gstbasetransform.c line 2312
  • #20 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #21 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #22 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #23 gst_queue_push_one
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1383
  • #24 gst_queue_loop
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1536
  • #25 gst_task_func
    at ../subprojects/gstreamer/gst/gsttask.c line 332
  • #26 default_func
    at ../subprojects/gstreamer/gst/gsttaskpool.c line 69
  • #27 g_thread_pool_thread_proxy
  • #28 g_thread_proxy
  • #29 start_thread
  • #30 clone

Thread 5 (Thread 0x7fffeab41700 (LWP 26257))

  • #0 __memset_erms
  • #1 gst_audio_visualizer_chain
    at ../subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstaudiovisualizer.c line 1163
  • #2 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #3 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #4 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #5 gst_base_transform_chain
    at ../subprojects/gstreamer/libs/gst/base/gstbasetransform.c line 2312
  • #6 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #7 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #8 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #9 gst_queue_push_one
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1383
  • #10 gst_queue_loop
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1536
  • #11 gst_task_func
    at ../subprojects/gstreamer/gst/gsttask.c line 332
  • #12 default_func
    at ../subprojects/gstreamer/gst/gsttaskpool.c line 69
  • #13 g_thread_pool_thread_proxy
  • #14 g_thread_proxy
  • #15 start_thread
  • #16 clone

Thread 4 (Thread 0x7fffeb342700 (LWP 26256))

  • #0 syscall
  • #1 g_cond_wait
  • #2 gst_base_sink_wait_preroll
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 2267
  • #3 gst_base_sink_do_preroll
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 2361
  • #4 gst_base_sink_do_sync
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 2564
  • #5 gst_base_sink_chain_unlocked
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 3513
  • #6 gst_base_sink_chain_main
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 3672
  • #7 gst_base_sink_chain
    at ../subprojects/gstreamer/libs/gst/base/gstbasesink.c line 3701
  • #8 gst_pad_chain_data_unchecked
    at ../subprojects/gstreamer/gst/gstpad.c line 4215
  • #9 gst_pad_push_data
    at ../subprojects/gstreamer/gst/gstpad.c line 4471
  • #10 gst_pad_push
    at ../subprojects/gstreamer/gst/gstpad.c line 4590
  • #11 gst_queue_push_one
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1383
  • #12 gst_queue_loop
    at ../subprojects/gstreamer/plugins/elements/gstqueue.c line 1536
  • #13 gst_task_func
    at ../subprojects/gstreamer/gst/gsttask.c line 332
  • #14 default_func
    at ../subprojects/gstreamer/gst/gsttaskpool.c line 69
  • #15 g_thread_pool_thread_proxy
  • #16 g_thread_proxy
  • #17 start_thread
  • #18 clone

==26544== Conditional jump or move depends on uninitialised value(s)
==26544==    at 0x4C3432F: memset (vg_replace_strmem.c:1234)
==26544==    by 0xA9DACC1: gst_audio_visualizer_chain (gstaudiovisualizer.c:1163)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x510A36B: gst_base_transform_chain (gstbasetransform.c:2312)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x9F6C6BF: gst_queue_push_one (gstqueue.c:1383)
==26544==    by 0x9F6D51B: gst_queue_loop (gstqueue.c:1536)
==26544==    by 0x540EA5A: gst_task_func (gsttask.c:332)
==26544== 
==26544== Conditional jump or move depends on uninitialised value(s)
==26544==    at 0x4C34369: memset (vg_replace_strmem.c:1234)
==26544==    by 0xA9DACC1: gst_audio_visualizer_chain (gstaudiovisualizer.c:1163)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x510A36B: gst_base_transform_chain (gstbasetransform.c:2312)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x9F6C6BF: gst_queue_push_one (gstqueue.c:1383)
==26544==    by 0x9F6D51B: gst_queue_loop (gstqueue.c:1536)
==26544==    by 0x540EA5A: gst_task_func (gsttask.c:332)
==26544== 
==26544== Invalid write of size 8
==26544==    at 0x4C34357: memset (vg_replace_strmem.c:1234)
==26544==    by 0xA9DACC1: gst_audio_visualizer_chain (gstaudiovisualizer.c:1163)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x510A36B: gst_base_transform_chain (gstbasetransform.c:2312)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x9F6C6BF: gst_queue_push_one (gstqueue.c:1383)
==26544==    by 0x9F6D51B: gst_queue_loop (gstqueue.c:1536)
==26544==    by 0x540EA5A: gst_task_func (gsttask.c:332)
==26544==  Address 0x4179000 is not stack'd, malloc'd or (recently) free'd
==26544== 
==26544== 
==26544== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==26544==  Access not within mapped region at address 0x4179000
==26544==    at 0x4C34357: memset (vg_replace_strmem.c:1234)
==26544==    by 0xA9DACC1: gst_audio_visualizer_chain (gstaudiovisualizer.c:1163)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x510A36B: gst_base_transform_chain (gstbasetransform.c:2312)
==26544==    by 0x53D40C6: gst_pad_chain_data_unchecked (gstpad.c:4215)
==26544==    by 0x53D4CB3: gst_pad_push_data (gstpad.c:4471)
==26544==    by 0x53D53DE: gst_pad_push (gstpad.c:4590)
==26544==    by 0x9F6C6BF: gst_queue_push_one (gstqueue.c:1383)
==26544==    by 0x9F6D51B: gst_queue_loop (gstqueue.c:1536)
==26544==    by 0x540EA5A: gst_task_func (gsttask.c:332)
Comment 1 Tim-Philipp Müller 2017-11-04 10:57:24 UTC
Works fine for me and is valgrind clean as well for me.

What videosink is this with in your case?

Does it happen pretty much immediately or only after a while?

Could you investigate?
Comment 2 Guillaume Desmottes 2017-11-08 16:16:05 UTC
(In reply to Tim-Philipp Müller from comment #1)
> What videosink is this with in your case?

vaapisink (master).
If I remove it it switches to xvimagesink which is indeed working.
Comment 3 GStreamer system administrator 2018-11-03 12:00:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/394.