From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 99029] VCE VAAPI segfault using ffmpeg
Date: Thu, 08 Dec 2016 14:37:06 +0000
Message-ID:
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@lists.freedesktop.org
Reporter
serafean@gmail.com
QA Contact
dri-devel@lists.freedesktop.org
lspci:00:01.0 VGA compatible controller: Advanced Micro Device=
s, 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=3Drgba,hwupload -bf 0 -c:v h264_vaapi test.mkv
run on a console over ssh.
backtrace:
#0 0x00007f4004a58e3f in create (enc=3D0x19ed530) at
/var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/driver=
s/radeon/radeon_vce_40_2_2.c:98
#1 0x00007f4004a5cd3f in rvce_begin_frame (encoder=3D0x19ed530,
source=3D0x16e1a70, picture=3D0x19131d8) at
/var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/driver=
s/radeon/radeon_vce.c:288
#2 0x00007f400490cdec in vlVaEndPicture (ctx=3D<optimized out>, cont=
ext_id=3D23)
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=3D0x1691c20, context=3D23) 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=3Davctx@entry=3D0x1=
6e5060,
pic=3Dpic@entry=3D0x1745500) at src/libavcodec/vaapi_encode.c:387
#5 0x00007f401e202c16 in vaapi_encode_step (avctx=3Davctx@entry=3D0x16=
e5060,
target=3Dtarget@entry=3D0x1745500) at src/libavcodec/vaapi_encode.c:587
#6 0x00007f401e202fe7 in ff_vaapi_encode2 (avctx=3D0x16e5060, pkt=3D0x190f=
a60,
input_image=3D<optimized out>, got_packet=3D0x7ffc264290d4) at
src/libavcodec/vaapi_encode.c:867
#7 0x00007f401e1f6d15 in avcodec_encode_video2 (avctx=3Davctx@entry=3D=
0x16e5060,
avpkt=3D0x190fa60, frame=3Dframe@entry=3D0x19ad200,
got_packet_ptr=3Dgot_packet_ptr@entry=3D0x7ffc264290d4) at
src/libavcodec/utils.c:1994
#8 0x00007f401e1f6fda in do_encode (avctx=3D0x16e5060, frame=3D0x19ad200,
got_packet=3D0x7ffc264290d4) at src/libavcodec/utils.c:2939
#9 0x00007f401e1fc167 in avcodec_send_frame (avctx=3Davctx@entry=3D0x1=
6e5060,
frame=3D0x19ad200) at src/libavcodec/utils.c:2988
#10 0x0000000000420fdd in do_video_out (of=3Dof@entry=3D0x1745be0,
ost=3Dost@entry=3D0x16e4e00, next_picture=3Dnext_picture@entry=3D0x=
19ad200,
sync_ipts=3D<optimized out>, sync_ipts@entry=3D-7.62939453125e-06=
) at
src/ffmpeg.c:1251
#11 0x000000000042266f in reap_filters (flush=3Dflush@entry=3D0) 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=3D<optimized out>, argv=3D<optimized out>) at sr=
c/ffmpeg.c:4592
Testing patches is no problem.