Bug 73055 - [BDW] Caught SIGSEGV when gst_encoding AVC files
Summary: [BDW] Caught SIGSEGV when gst_encoding AVC files
Status: VERIFIED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: ykzhao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-27 01:51 UTC by zhenxiang.li
Modified: 2014-01-10 01:44 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description zhenxiang.li 2013-12-27 01:51:48 UTC
Environment:
--------------
Libva:          
(staging)d349f2bb779c596290a493f3c1344f912565e568
Libva_intel_driver:             (staging)5b211d3e2f2e4eab95b8697d9109fb7ea29fbfb3
Gstreamer10:            (1.0)4e880d4d1e151ea64f83c28b5c3e1bbc06c57903
Gst_plugins_base10:             (1.0)2dd3f028c1e6dea799d7496639f53220818b20b1
Gst_plugins_good10:             (1.0)643d425f51f81b56deec16c01162637546708ee5
Gst_plugins_bad10:              (1.0)0587ab41b4f9979e9cfc11011ed5c970569ee3d3
Gst_plugins_ugly10:             (1.0)c7c911b8320576429e4a4234a1e29ec7436e6814
Gst_plugins_vaapi10:            (master)bd702ebd2e68ec3c4cc47a641fe21d4a75c74a39

Command line:
--------------
gst-launch-1.0 -v filesrc location=/root/media_tools/encoder/encoderbitstreams/CITY_704x576_30_orig_01.yuv '!' videoparse format=i420 width=704 height=576 '!' vaapiencode_h264 rate-control=cqp init-qp=4 key-period=30 max-bframes=2 '!' qtmux faststart=true '!' filesink location=/root/media_tools/encoder/encoderbitstreams/CITY_704x576_30_orig_01.yuv.enc.mp4

Log info:
--------------
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoParse:videoparse0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)704, height=(int)576, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstVaapiEncodeH264:vaapiencodeh264-0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)704, height=(int)576, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, framerate=(fraction)25/1
Caught SIGSEGV accessing address 0x8
#0  0x000000372f0ea8fd in poll () from /usr/lib64/libc.so.6
#1  0x00007f310263fdf6 in g_main_context_poll (n_fds=2, fds=0x24ca9c0,
#2  g_main_context_iterate (dispatch=1, block=<optimized out>,
#3  g_main_context_iterate (context=0x24ca7a0, block=<optimized out>,
#4  0x00007f31026402b5 in g_main_loop_run (loop=0x2480530) at gmain.c:3908
#5  0x00007f3102fb0655 in gst_bus_poll (bus=bus@entry=0x247ceb0,
#6  0x0000000000403cb7 in event_loop (pipeline=0x248e2d0,
#7  0x000000000040347d in main (argc=20, argv=0x7fff6d7d4e48)
Spinning.  Please run 'gdb gst-launch- 1.0 19282' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

Back-trace
--------------
(gdb) bt
#0  gen7_pp_avs_x_steps (private_context=0x0) at i965_post_processing.c:3334
#1  0x00007fffec60c02d in gen6_pp_object_walker (ctx=<optimized out>, pp_context=0x758a30) at i965_post_processing.c:5539
#2  0x00007fffec60d8f0 in gen6_pp_pipeline_setup (pp_context=<optimized out>, ctx=<optimized out>) at i965_post_processing.c:5616
#3  gen6_post_processing (filter_param=<optimized out>, pp_index=<optimized out>, dst_rect=<optimized out>, dst_surface=<optimized out>,
    src_rect=<optimized out>, src_surface=<optimized out>, pp_context=<optimized out>, ctx=<optimized out>) at i965_post_processing.c:5662
#4  i965_post_processing_internal (ctx=0x751a80, pp_context=pp_context@entry=0x758a30, src_surface=src_surface@entry=0x7fffec08f970,
    src_rect=src_rect@entry=0x7fffec08f990, dst_surface=dst_surface@entry=0x7fffec08f980, dst_rect=<optimized out>, pp_index=3, filter_param=0x0)
    at i965_post_processing.c:5720
#5  0x00007fffec60ee64 in i965_image_pl3_processing (ctx=ctx@entry=0x751a80, src_surface=src_surface@entry=0x7fffec08f970,
    src_rect=src_rect@entry=0x7fffec08f990, dst_surface=dst_surface@entry=0x7fffec08f980, dst_rect=<optimized out>) at i965_post_processing.c:6123
#6  0x00007fffec614b51 in i965_image_processing (ctx=ctx@entry=0x751a80, src_surface=src_surface@entry=0x7fffec08f970,
    src_rect=src_rect@entry=0x7fffec08f990, dst_surface=dst_surface@entry=0x7fffec08f980, dst_rect=dst_rect@entry=0x7fffec08f990)
    at i965_post_processing.c:6299
#7  0x00007fffec600e8f in intel_encoder_check_yuv_surface (encoder_context=0x7fffe4003f50, encode_state=0x754ca8, profile=VAProfileH264Main, ctx=0x751a80)
    at i965_encoder.c:125
#8  intel_encoder_sanity_check_input (encoder_context=0x7fffe4003f50, encode_state=0x754ca8, profile=VAProfileH264Main, ctx=0x751a80) at i965_encoder.c:289
#9  intel_encoder_end_picture (ctx=0x751a80, profile=VAProfileH264Main, codec_state=0x754ca8, hw_context=0x7fffe4003f50) at i965_encoder.c:305
#10 0x00007fffed3d1364 in vaEndPicture (dpy=dpy@entry=0x751a30, context=context@entry=33554432) at va.c:1112
#11 0x00007fffed618d60 in gst_vaapi_enc_picture_encode (picture=picture@entry=0x7fffe4001940) at gstvaapiencoder_objects.c:492
#12 0x00007fffed61295c in gst_vaapi_encoder_h264_encode (base=0x7fffe4008050, picture=0x7fffe4001940, codedbuf=<optimized out>)
    at gstvaapiencoder_h264.c:1634
#13 0x00007fffed60bf51 in gst_vaapi_encoder_put_frame (encoder=0x7fffe4008050, frame=<optimized out>, frame@entry=0x7fffe40041b0) at gstvaapiencoder.c:176
#14 0x00007fffeff006d2 in gst_vaapiencode_handle_frame (venc=0x730ce0, frame=0x7fffe40041b0) at gstvaapiencode.c:485
#15 0x00007ffff05a803f in gst_video_encoder_chain (pad=<optimized out>, parent=0x730ce0, buf=<optimized out>) at gstvideoencoder.c:1352
#16 0x00007ffff7d66859 in gst_pad_chain_data_unchecked (data=0x7fffe40040a0, type=4112, pad=0x71c770) at gstpad.c:3655
#17 gst_pad_push_data (pad=0x71c540, type=type@entry=4112, data=<optimized out>) at gstpad.c:3872
#18 0x00007ffff7d6cab6 in gst_pad_push (pad=<optimized out>, buffer=<optimized out>) at gstpad.c:3975
#19 0x00007ffff07c5c7f in gst_raw_parse_push_buffer (rp=rp@entry=0x71e090, buffer=<optimized out>) at gstrawparse.c:281
#20 0x00007ffff07c6275 in gst_raw_parse_loop (element=0x71e090) at gstrawparse.c:407
#21 0x00007ffff7d93bdf in gst_task_func (task=0x75b050) at gsttask.c:316
#22 0x00007ffff73f61f8 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:309
#23 0x00007ffff73f5995 in g_thread_proxy (data=0x739ca0) at gthread.c:798
#24 0x000000372f807c53 in start_thread () from /usr/lib64/libpthread.so.0
#25 0x000000372f0f4ecd in clone () from /usr/lib64/libc.so.6
Comment 1 ykzhao 2014-01-06 01:36:05 UTC
Will you please try the latest staging branch of intel-vaapi driver and see whether the issue still exists? 

It is quite strange that it fails in non-BDW code path although it mentions that it is tested on BDW platform. And the intel-vaapi driver doesn't include the corresponding VPP update for BDW.

Anyway, please try the latest staging branch of intel-vvapi driver.

Thanks.
Comment 2 zhenxiang.li 2014-01-10 01:44:14 UTC
Not exist.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.