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: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0016167682==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id E5EAA6E7B3 for ; Thu, 8 Dec 2016 14:37:06 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0016167682== Content-Type: multipart/alternative; boundary="14812078260.12d9d6.1625"; charset="UTF-8" --14812078260.12d9d6.1625 Date: Thu, 8 Dec 2016 14:37:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99029 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 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=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, context_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=3D0x16e50= 60, pic=3Dpic@entry=3D0x1745500) at src/libavcodec/vaapi_encode.c:387 #5 0x00007f401e202c16 in vaapi_encode_step (avctx=3Davctx@entry=3D0x16e506= 0, 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, got_packet=3D0x7ffc264290d4) at src/libavcodec/vaapi_encode.c:867 #7 0x00007f401e1f6d15 in avcodec_encode_video2 (avctx=3Davctx@entry=3D0x16= e5060, 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=3D0x16e50= 60, 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=3D0x19ad200, sync_ipts=3D, 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, argv=3D) at src/ffmpeg.c:4= 592 Testing patches is no problem. --=20 You are receiving this mail because: You are the assignee for the bug.= --14812078260.12d9d6.1625 Date: Thu, 8 Dec 2016 14:37:06 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
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.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14812078260.12d9d6.1625-- --===============0016167682== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0016167682==--