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 768518 - crash in resampler_basic_direct_single
crash in resampler_basic_direct_single
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.8.2
Other Linux
: Normal critical
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-07 13:08 UTC by Marcin Lewandowski
Modified: 2016-11-11 14:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcin Lewandowski 2016-07-07 13:08:09 UTC
My apps are crashing with the following stack trace.

My first guess is that started to happen after upgrading from 1.8.1 to 1.8.2.

More details soon.

(gdb) thr a a bt

Thread 7 (Thread 0x7fc43b7fe700 (LWP 21732))

  • #0 syscall
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S line 38
  • #1 g_cond_wait
    at gthread-posix.c line 1397
  • #2 gst_queue_loop
    at gstqueue.c line 1497
  • #3 gst_task_func
    at gsttask.c line 332
  • #4 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #5 g_thread_proxy
    at gthread.c line 778
  • #6 start_thread
    at pthread_create.c line 333
  • #7 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 3 (Thread 0x7fc44b04f700 (LWP 21730))

  • #0 syscall
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S line 38
  • #1 g_cond_wait_until
    at gthread-posix.c line 1444
  • #2 g_async_queue_pop_intern_unlocked
    at gasyncqueue.c line 422
  • #3 g_async_queue_timeout_pop_unlocked
    at gasyncqueue.c line 570
  • #4 g_thread_pool_wait_for_new_task
    at gthreadpool.c line 262
  • #5 g_thread_pool_thread_proxy
    at gthreadpool.c line 296
  • #6 g_thread_proxy
    at gthread.c line 778
  • #7 start_thread
    at pthread_create.c line 333
  • #8 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 1 (Thread 0x7fc43affd700 (LWP 21733))

  • #0 resampler_basic_direct_single
    at resample.c line 507
  • #1 speex_resampler_process_native
    at resample.c line 1118
  • #2 resample_float_resampler_process_float
    at resample.c line 1197
  • #3 resample_float_resampler_process_interleaved_float
    at resample.c line 1315
  • #4 gst_audio_resample_process
    at gstaudioresample.c line 1110
  • #5 gst_audio_resample_transform
    at gstaudioresample.c line 1240
  • #6 default_generate_output
    at gstbasetransform.c line 2180
  • #7 gst_base_transform_chain
    at gstbasetransform.c line 2333
  • #8 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #9 gst_pad_push_data
    at gstpad.c line 4429
  • #10 gst_pad_push
    at gstpad.c line 4548
  • #11 gst_base_transform_chain
    at gstbasetransform.c line 2369
  • #12 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #13 gst_pad_push_data
    at gstpad.c line 4429
  • #14 gst_pad_push
    at gstpad.c line 4548
  • #15 gst_proxy_pad_chain_default
    at gstghostpad.c line 126
  • #16 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #17 gst_pad_push_data
    at gstpad.c line 4429
  • #18 gst_pad_push
    at gstpad.c line 4548
  • #19 gst_proxy_pad_chain_default
    at gstghostpad.c line 126
  • #20 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #21 gst_pad_push_data
    at gstpad.c line 4429
  • #22 gst_pad_push
    at gstpad.c line 4548
  • #23 gst_audio_decoder_push_forward
    at gstaudiodecoder.c line 974
  • #24 gst_audio_decoder_output
    at gstaudiodecoder.c line 1050
  • #25 gst_audio_decoder_finish_frame
    at gstaudiodecoder.c line 1392
  • #26 gst_mad_handle_frame
    at gstmad.c line 489
  • #27 gst_audio_decoder_push_buffers
    at gstaudiodecoder.c line 1550
  • #28 gst_audio_decoder_chain_forward
    at gstaudiodecoder.c line 1664
  • #29 gst_audio_decoder_chain
    at gstaudiodecoder.c line 1922
  • #30 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #31 gst_pad_push_data
    at gstpad.c line 4429
  • #32 gst_pad_push
    at gstpad.c line 4548
  • #33 gst_base_parse_push_frame
    at gstbaseparse.c line 2532
  • #34 gst_base_parse_handle_and_push_frame
    at gstbaseparse.c line 2331
  • #35 gst_base_parse_finish_frame
    at gstbaseparse.c line 2670
  • #36 gst_mpeg_audio_parse_handle_frame
    at gstmpegaudioparse.c line 771
  • #37 gst_base_parse_handle_buffer
    at gstbaseparse.c line 2145
  • #38 gst_base_parse_chain
    at gstbaseparse.c line 3209
  • #39 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #40 gst_pad_push_data
    at gstpad.c line 4429
  • #41 gst_pad_push
    at gstpad.c line 4548
  • #42 stop_typefinding
    at gsttypefindelement.c line 641
  • #43 gst_type_find_element_chain_do_typefinding
    at gsttypefindelement.c line 971
  • #44 gst_type_find_element_chain
    at gsttypefindelement.c line 903
  • #45 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #46 gst_pad_push_data
    at gstpad.c line 4429
  • #47 gst_pad_push
    at gstpad.c line 4548
  • #48 gst_proxy_pad_chain_default
    at gstghostpad.c line 126
  • #49 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #50 gst_pad_push_data
    at gstpad.c line 4429
  • #51 gst_pad_push
    at gstpad.c line 4548
  • #52 gst_base_src_loop
    at gstbasesrc.c line 2850
  • #53 gst_task_func
    at gsttask.c line 332
  • #54 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #55 g_thread_proxy
    at gthread.c line 778
  • #56 start_thread
    at pthread_create.c line 333
  • #57 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Comment 1 Sebastian Dröge (slomo) 2016-07-07 13:12:11 UTC
There were no changes in the resampler between 1.8.1 and 1.8.2
Comment 2 Marcin Lewandowski 2016-07-07 13:25:25 UTC
In my app I am forcing resample into audio/x-raw,rate=48000,channels=2,format=F32LE,layout=interleaved before I send it to shmsink.

According to the stack trace it crashes on resample_float_resampler_process_interleaved_float, so maybe it's related.
Comment 3 Tim-Philipp Müller 2016-07-07 13:33:21 UTC
What's the pipeline / elements before the resampler?

Did you try running things through valgrind?

Is it easy/reliable to reproduce for you?

Is there a way for us to reproduce the issue?
Comment 4 Marcin Lewandowski 2016-07-07 14:08:25 UTC
I have a build and machine for which I can reproduce this 100% of times. 

However, it happens only there, on the target production server, where I am building GStreamer via cerbero. I am using cerbero cd2ebc2051b3eab797849d2cb16bbd6883375905.

Never encountered this locally when using GStreamer from ubuntu 16.04.

The pipeline is

souphttpsrc ! decodebin ! [ audioconvert ! audioresample ! audiorate ! level ! queue ! shmsink shm-size=1048576 sync=true wait-for-connection=false ]

square brackets mean my custom bin.

I will try to create reproductible test case.

BTW the app crashes with Bus error, not Segmentation fault.
Comment 5 Marcin Lewandowski 2016-07-07 14:18:23 UTC
When I run it via valgrind, I get

==25600== 
==25600== Process terminating with default action of signal 7 (SIGBUS)
==25600==  Non-existent physical address at address 0x403B000
==25600==    at 0xD237B05: resampler_basic_direct_single (resample.c:507)
==25600==    by 0xD2378B5: speex_resampler_process_native (resample.c:1118)
==25600==    by 0xD2390EE: resample_float_resampler_process_float (resample.c:1197)
==25600==    by 0xD23961B: resample_float_resampler_process_interleaved_float (resample.c:1315)
==25600==    by 0xD2358D9: gst_audio_resample_process (gstaudioresample.c:1110)
==25600==    by 0xD2358D9: gst_audio_resample_transform (gstaudioresample.c:1240)
==25600==    by 0xCB5EE70: default_generate_output (gstbasetransform.c:2180)
==25600==    by 0xCB5EA63: gst_base_transform_chain (gstbasetransform.c:2333)
==25600==    by 0x62532BD: gst_pad_chain_data_unchecked (gstpad.c:4192)
==25600==    by 0x62532BD: gst_pad_push_data (gstpad.c:4429)
==25600==    by 0x62582D2: gst_pad_push (gstpad.c:4548)
==25600==    by 0xCB5EA40: gst_base_transform_chain (gstbasetransform.c:2369)
==25600==    by 0x62532BD: gst_pad_chain_data_unchecked (gstpad.c:4192)
==25600==    by 0x62532BD: gst_pad_push_data (gstpad.c:4429)
==25600==    by 0x62582D2: gst_pad_push (gstpad.c:4548)
==25600== 
==25600== HEAP SUMMARY:
==25600==     in use at exit: 3,151,718 bytes in 25,702 blocks
==25600==   total heap usage: 622,344 allocs, 596,642 frees, 116,659,491 bytes allocated
==25600== 
==25600== LEAK SUMMARY:
==25600==    definitely lost: 16,480 bytes in 3 blocks
==25600==    indirectly lost: 136 bytes in 3 blocks
==25600==      possibly lost: 6,356 bytes in 68 blocks
==25600==    still reachable: 2,955,362 bytes in 24,857 blocks
==25600==                       of which reachable via heuristic:
==25600==                         length64           : 3,920 bytes in 80 blocks
==25600==                         newarray           : 2,112 bytes in 52 blocks
==25600==         suppressed: 0 bytes in 0 blocks
==25600== Rerun with --leak-check=full to see details of leaked memory
==25600== 
==25600== For counts of detected and suppressed errors, rerun with: -v
==25600== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Comment 6 Marcin Lewandowski 2016-07-07 14:26:26 UTC
Indeed, the same with 1.8.1
Comment 7 Sebastian Dröge (slomo) 2016-07-07 15:06:53 UTC
Can you provide a testcase? I guess otherwise you'll have to debug that yourself, and e.g. start by adding some printfs in resample.c and gstaudioresample.c around that code to see what goes so completely wrong with the memory pointers.
Comment 8 Marcin Lewandowski 2016-07-07 15:26:25 UTC
I am trying to rebuild the server and packages from scratch to ensure that I am working within clean environment.

I can reproduce this on only one server, on no other machine having the same setup (all are configured using the same scripts) I can reproduce this.
Comment 9 Marcin Lewandowski 2016-07-07 17:44:48 UTC
I've rebuilt everything, and changed format to S32LE.

Thread 9 (Thread 0x7f344bfff700 (LWP 4546))

  • #0 gst_bin_get_type
    at gstbin.c line 297
  • #1 gst_bin_element_set_state
    at gstbin.c line 2319
  • #2 gst_bin_change_state_func
    at gstbin.c line 2756
  • #3 gst_element_change_state
    at gstelement.c line 2648
  • #4 gst_element_set_state_func
    at gstelement.c line 2602
  • #5 gst_bin_element_set_state
    at gstbin.c line 2414
  • #6 gst_bin_change_state_func
    at gstbin.c line 2756
  • #7 gst_element_change_state
    at gstelement.c line 2648
  • #8 gst_bin_continue_func
    at gstbin.c line 3063
  • #9 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #10 g_thread_proxy
    at gthread.c line 778
  • #11 start_thread
    at pthread_create.c line 333
  • #12 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 8 (Thread 0x7f34622a3700 (LWP 4543))

  • #0 syscall
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S line 38
  • #1 g_cond_wait
    at gthread-posix.c line 1397
  • #2 gst_base_sink_wait_preroll
    at gstbasesink.c line 2212
  • #3 gst_base_sink_do_preroll
    at gstbasesink.c line 2306
  • #4 gst_base_sink_do_sync
    at gstbasesink.c line 2508
  • #5 gst_base_sink_chain_unlocked
    at gstbasesink.c line 3494
  • #6 gst_base_sink_chain_main
    at gstbasesink.c line 3655
  • #7 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #8 gst_pad_push_data
    at gstpad.c line 4429
  • #9 gst_pad_push
    at gstpad.c line 4548
  • #10 gst_queue_push_one
    at gstqueue.c line 1362
  • #11 gst_queue_loop
    at gstqueue.c line 1509
  • #12 gst_task_func
    at gsttask.c line 332
  • #13 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #14 g_thread_proxy
    at gthread.c line 778
  • #15 start_thread
    at pthread_create.c line 333
  • #16 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 7 (Thread 0x7f346a303700 (LWP 4540))

  • #0 sendmsg
    at ../sysdeps/unix/syscall-template.S line 84
  • #1 g_socket_send_message
    at gsocket.c line 3897
  • #2 write_message_continue_writing
    at gdbusprivate.c line 1003
  • #3 write_message_async
    at gdbusprivate.c line 1095
  • #4 continue_writing
    at gdbusprivate.c line 1495
  • #5 continue_writing_in_idle_cb
    at gdbusprivate.c line 1516
  • #6 g_main_dispatch
    at gmain.c line 3237
  • #7 g_main_context_dispatch
    at gmain.c line 3898
  • #8 g_main_context_iterate
    at gmain.c line 3969
  • #9 g_main_loop_run
    at gmain.c line 4163
  • #10 gdbus_shared_thread_func
    at gdbusprivate.c line 246
  • #11 g_thread_proxy
    at gthread.c line 778
  • #12 start_thread
    at pthread_create.c line 333
  • #13 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 5 (Thread 0x7f3469b02700 (LWP 4541))

  • #0 syscall
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S line 38
  • #1 g_cond_wait_until
    at gthread-posix.c line 1444
  • #2 g_async_queue_pop_intern_unlocked
    at gasyncqueue.c line 422
  • #3 g_async_queue_timeout_pop_unlocked
    at gasyncqueue.c line 570
  • #4 g_thread_pool_wait_for_new_task
    at gthreadpool.c line 262
  • #5 g_thread_pool_thread_proxy
    at gthreadpool.c line 296
  • #6 g_thread_proxy
    at gthread.c line 778
  • #7 start_thread
    at pthread_create.c line 333
  • #8 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 3 (Thread 0x7f34612a1700 (LWP 4545))

  • #0 _mm_add_pd
    at /usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h line 243
  • #1 inner_product_double
    at resample_sse.h line 111
  • #2 resampler_basic_direct_double
    at resample.c line 559
  • #3 speex_resampler_process_native
    at resample.c line 1118
  • #4 resample_double_resampler_process_float
    at resample.c line 1197
  • #5 resample_double_resampler_process_interleaved_float
    at resample.c line 1315
  • #6 gst_audio_resample_process
    at gstaudioresample.c line 1102
  • #7 gst_audio_resample_transform
    at gstaudioresample.c line 1240
  • #8 default_generate_output
    at gstbasetransform.c line 2180
  • #9 gst_base_transform_chain
    at gstbasetransform.c line 2333
  • #10 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #11 gst_pad_push_data
    at gstpad.c line 4429
  • #12 gst_pad_push
    at gstpad.c line 4548
  • #13 gst_base_transform_chain
    at gstbasetransform.c line 2369
  • #14 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #15 gst_pad_push_data
    at gstpad.c line 4429
  • #16 gst_pad_push
    at gstpad.c line 4548
  • #17 gst_proxy_pad_chain_default
    at gstghostpad.c line 126
  • #18 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #19 gst_pad_push_data
    at gstpad.c line 4429
  • #20 gst_pad_push
    at gstpad.c line 4548
  • #21 gst_proxy_pad_chain_default
    at gstghostpad.c line 126
  • #22 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #23 gst_pad_push_data
    at gstpad.c line 4429
  • #24 gst_pad_push
    at gstpad.c line 4548
  • #25 gst_audio_decoder_push_forward
    at gstaudiodecoder.c line 974
  • #26 gst_audio_decoder_output
    at gstaudiodecoder.c line 1050
  • #27 gst_audio_decoder_finish_frame
    at gstaudiodecoder.c line 1392
  • #28 gst_mad_handle_frame
    at gstmad.c line 489
  • #29 gst_audio_decoder_push_buffers
    at gstaudiodecoder.c line 1550
  • #30 gst_audio_decoder_chain_forward
    at gstaudiodecoder.c line 1664
  • #31 gst_audio_decoder_chain
    at gstaudiodecoder.c line 1922
  • #32 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #33 gst_pad_push_data
    at gstpad.c line 4429
  • #34 gst_pad_push
    at gstpad.c line 4548
  • #35 gst_base_parse_push_frame
    at gstbaseparse.c line 2532
  • #36 gst_base_parse_handle_and_push_frame
    at gstbaseparse.c line 2331
  • #37 gst_base_parse_finish_frame
    at gstbaseparse.c line 2670
  • #38 gst_mpeg_audio_parse_handle_frame
    at gstmpegaudioparse.c line 771
  • #39 gst_base_parse_handle_buffer
    at gstbaseparse.c line 2145
  • #40 gst_base_parse_chain
    at gstbaseparse.c line 3209
  • #41 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #42 gst_pad_push_data
    at gstpad.c line 4429
  • #43 gst_pad_push
    at gstpad.c line 4548
  • #44 stop_typefinding
    at gsttypefindelement.c line 641
  • #45 gst_type_find_element_chain_do_typefinding
    at gsttypefindelement.c line 971
  • #46 gst_type_find_element_chain
    at gsttypefindelement.c line 903
  • #47 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #48 gst_pad_push_data
    at gstpad.c line 4429
  • #49 gst_pad_push
    at gstpad.c line 4548
  • #50 gst_proxy_pad_chain_default
    at gstghostpad.c line 126
  • #51 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #52 gst_pad_push_data
    at gstpad.c line 4429
  • #53 gst_pad_push
    at gstpad.c line 4548
  • #54 gst_base_src_loop
    at gstbasesrc.c line 2850
  • #55 gst_task_func
    at gsttask.c line 332
  • #56 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #57 g_thread_proxy
    at gthread.c line 778
  • #58 start_thread
    at pthread_create.c line 333
  • #59 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Thread 2 (Thread 0x7f346e9b1700 (LWP 4538))

  • #0 open64
    at ../sysdeps/unix/syscall-template.S line 84
  • #1 open
    at /usr/include/x86_64-linux-gnu/bits/fcntl2.h line 59
  • #2 g_mapped_file_new
    at gmappedfile.c line 252
  • #3 zone_info_unix
    at gtimezone.c line 426
  • #4 g_time_zone_new
    at gtimezone.c line 1390
  • #5 g_date_time_new_now_local
    at gdatetime.c line 727
  • #6 myapp_common_helpers_logger_on_log_message
    at helpers/logger.c line 356
  • #7 _myapp_common_helpers_logger_on_log_message_glog_func
    at helpers/logger.c line 101
  • #8 g_logv
    at gmessages.c line 1060
  • #9 g_log
    at gmessages.c line 1119
  • #10 myapp_common_base_debug
    at base.c line 135
  • #11 myapp_common_media_pipeline_base_on_bus_message
    at media/pipeline/base.c line 2250
  • #12 _myapp_common_media_pipeline_base_on_bus_message_gst_bus_func
    at media/pipeline/base.c line 1314
  • #13 gst_bus_source_dispatch
    at gstbus.c line 791
  • #14 g_main_dispatch
    at gmain.c line 3237
  • #15 g_main_context_dispatch
    at gmain.c line 3898
  • #16 g_main_context_iterate
    at gmain.c line 3969
  • #17 g_main_loop_run
    at gmain.c line 4163
  • #18 myapp_common_app_template_base_start_real
    at app/template/base.c line 682
  • #19 myapp_common_app_template_base_start
    at app/template/base.c line 470
  • #20 myapp_plumber_media_input_file_rk_vault_main
    at main.c line 38
  • #21 __libc_start_main
    at ../csu/libc-start.c line 291
  • #22 _start

Thread 1 (Thread 0x7f3461aa2700 (LWP 4544))

  • #0 __memcpy_sse2_unaligned
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S line 37
  • #1 memcpy
    at /usr/include/x86_64-linux-gnu/bits/string3.h line 53
  • #2 gst_buffer_extract
    at gstbuffer.c line 1818
  • #3 gst_shm_sink_render
    at gstshmsink.c line 725
  • #4 gst_base_sink_chain_unlocked
    at gstbasesink.c line 3532
  • #5 gst_base_sink_chain_main
    at gstbasesink.c line 3655
  • #6 gst_pad_chain_data_unchecked
    at gstpad.c line 4192
  • #7 gst_pad_push_data
    at gstpad.c line 4429
  • #8 gst_pad_push
    at gstpad.c line 4548
  • #9 gst_base_src_loop
    at gstbasesrc.c line 2850
  • #10 gst_task_func
    at gsttask.c line 332
  • #11 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #12 g_thread_proxy
    at gthread.c line 778
  • #13 start_thread
    at pthread_create.c line 333
  • #14 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Comment 10 Marcin Lewandowski 2016-07-07 21:03:05 UTC
I've found out that it always crashes on attempt to do gst_buffer_extract in shmsink.

I start to doubt whether this is related to the resampler.

I have added some debugging messages as in https://bugzilla.gnome.org/show_bug.cgi?id=768530 and before it crashes I see

Copying 4800 bytes into map of size 4800 bytes.

So there's no overflow there.

Here's stack trace:

  • #0 __memcpy_sse2_unaligned
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S line 37
  • #1 memcpy
    at /usr/include/x86_64-linux-gnu/bits/string3.h line 53
  • #2 gst_buffer_extract
    at gstbuffer.c line 1818
  • #3 gst_shm_sink_render
    at gstshmsink.c line 732
  • #4 gst_base_sink_chain_unlocked
    at gstbasesink.c line 3532
  • #5 gst_base_sink_chain_main
    at gstbasesink.c line 3655
  • #6 gst_pad_chain_data_unchecked
    at gstpad.c line 4177
  • #7 gst_pad_push_data
    at gstpad.c line 4429
  • #8 gst_pad_push
    at gstpad.c line 4548
  • #9 gst_base_src_loop
    at gstbasesrc.c line 2850
  • #10 gst_task_func
    at gsttask.c line 332
  • #11 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #12 g_thread_proxy
    at gthread.c line 778
  • #13 start_thread
    at pthread_create.c line 333
  • #14 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 109

Comment 11 Vincent Penquerc'h 2016-07-08 08:55:44 UTC
BUS error could be misaligned access. What architecture is this machine ? Could it also be running with a gst build for an CPU with more capabilities than the one it's running on ?
Comment 12 Marcin Lewandowski 2016-07-08 09:19:55 UTC
This is this broken machine

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping	: 7
microcode	: 0x28
cpu MHz		: 1599.890
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 6
initial apicid	: 6
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
bugs		:
bogomips	: 6185.76
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:


This is machine with exact config and OS (ubuntu 16.04) that works fine

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz
stepping	: 7
microcode	: 0x28
cpu MHz		: 2612.421
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts
bugs		:
bogomips	: 6784.20
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:


On both there's kernel

Linux 001-can1-plumber 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I use Vagrant virtual machine with Ubuntu 16.04 64bit to build the code using cerbero. I pass -c config/linux.config to the cerbero.
Comment 13 Marcin Lewandowski 2016-07-08 09:22:26 UTC
Wait, for this builds I used DigitalOcean VM which AFAIK internally uses qemu. Unfortunately I don't have access to it any more to check its capabilities.
Comment 14 Tim-Philipp Müller 2016-11-11 14:43:23 UTC
I'm not really sure what to do with this. I'm sure you're running into an actual bug, but there's not really enough actionable information for us to debug this as far as I can see.

A small test program that reproduces the issue would be good.

The audioresample code has been rewritten since, the function it crashes in doesn't even exist any longer.

Please feel free to re-open if you can provide a way to reproduce or have more information, thanks!