[Bug 99029] VCE VAAPI segfault using ffmpeg

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 8 14:37:06 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=99029

            Bug ID: 99029
           Summary: VCE VAAPI segfault using ffmpeg
           Product: Mesa
           Version: 13.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
          Assignee: dri-devel at lists.freedesktop.org
          Reporter: serafean at gmail.com
        QA Contact: dri-devel at lists.freedesktop.org

lspci:00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Trinity [Radeon HD 7480D]

libva info: Trying to open /usr/lib64/va/drivers/r600_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.3)
vainfo: Driver version: mesa gallium vaapi
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileNone                   : VAEntrypointVideoProc

commandline:
ffmpeg -vaapi_device /dev/dri/renderD128 -i Elephants_Dream_HD.avi -vf
format=rgba,hwupload -bf 0 -c:v h264_vaapi test.mkv
run on a console over ssh.

backtrace:
#0  0x00007f4004a58e3f in create (enc=0x19ed530) at
/var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/drivers/radeon/radeon_vce_40_2_2.c:98
#1  0x00007f4004a5cd3f in rvce_begin_frame (encoder=0x19ed530,
source=0x16e1a70, picture=0x19131d8) at
/var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/drivers/radeon/radeon_vce.c:288
#2  0x00007f400490cdec in vlVaEndPicture (ctx=<optimized out>, context_id=23)
at
/var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/state_trackers/va/picture.c:572
#3  0x00007f401cfcf08f in vaEndPicture (dpy=0x1691c20, context=23) at
/var/tmp/portage/x11-libs/libva-1.7.3/work/libva-1.7.3/va/va.c:1232
#4  0x00007f401e202a9b in vaapi_encode_issue (avctx=avctx at entry=0x16e5060,
pic=pic at entry=0x1745500) at src/libavcodec/vaapi_encode.c:387
#5  0x00007f401e202c16 in vaapi_encode_step (avctx=avctx at entry=0x16e5060,
target=target at entry=0x1745500) at src/libavcodec/vaapi_encode.c:587
#6  0x00007f401e202fe7 in ff_vaapi_encode2 (avctx=0x16e5060, pkt=0x190fa60,
input_image=<optimized out>, got_packet=0x7ffc264290d4) at
src/libavcodec/vaapi_encode.c:867
#7  0x00007f401e1f6d15 in avcodec_encode_video2 (avctx=avctx at entry=0x16e5060,
avpkt=0x190fa60, frame=frame at entry=0x19ad200,
got_packet_ptr=got_packet_ptr at entry=0x7ffc264290d4) at
src/libavcodec/utils.c:1994
#8  0x00007f401e1f6fda in do_encode (avctx=0x16e5060, frame=0x19ad200,
got_packet=0x7ffc264290d4) at src/libavcodec/utils.c:2939
#9  0x00007f401e1fc167 in avcodec_send_frame (avctx=avctx at entry=0x16e5060,
frame=0x19ad200) at src/libavcodec/utils.c:2988
#10 0x0000000000420fdd in do_video_out (of=of at entry=0x1745be0,
ost=ost at entry=0x16e4e00, next_picture=next_picture at entry=0x19ad200,
sync_ipts=<optimized out>, sync_ipts at entry=-7.62939453125e-06) at
src/ffmpeg.c:1251
#11 0x000000000042266f in reap_filters (flush=flush at entry=0) at
src/ffmpeg.c:1451
#12 0x0000000000409316 in transcode_step () at src/ffmpeg.c:4343
#13 transcode () at src/ffmpeg.c:4387
#14 main (argc=<optimized out>, argv=<optimized out>) at src/ffmpeg.c:4592

Testing patches is no problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161208/74a34ee1/attachment.html>


More information about the dri-devel mailing list