#11675(undetermined:new): ffplay causes amdgpu driver crash
#11675: ffplay causes amdgpu driver crash -------------------------------------+------------------------------------- Reporter: Maxim | Type: defect Cournoyer | Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: ffplay causes amdgpu driver crash How to reproduce: {{{ % ffplay -hwaccel vaapi test.mp4 ffmpeg version 7.1.1 built with GNU Guix (GNU/Linux) }}} Full context available on the Mesa tracker: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7026#note_3020001 The Guix package definition for the build looks like: {{{ (define-public ffmpeg-7 (package (name "ffmpeg") (version "7.0.2") (source (origin (method url-fetch) (uri (string-append "https://ffmpeg.org/releases/ffmpeg-" version ".tar.xz")) (sha256 (base32 "1c837agaw8ljhjx6ndp2w7hffi2mkb22vnmb8v0fbfqdbqwq8fbk")))) (outputs '("out" "debug")) (build-system gnu-build-system) (inputs (append (if (supported-package? rav1e) (list rav1e) '()) (list dav1d fontconfig freetype frei0r-plugins gnutls opus ladspa lame libaom libass libbluray libcaca libcdio-paranoia libdrm libtheora libva libvdpau libvorbis libvpx libwebp libx11 libx264 mesa openal pulseaudio shaderc sdl2 soxr speex spirv-tools srt svt-av1 twolame vidstab vulkan-loader x265 xvid zlib))) (native-inputs (list bc perl pkg-config texinfo speex vulkan-headers yasm)) (arguments (list #:test-target "fate" #:configure-flags ;; possible additional inputs: ;; --enable-avisynth enable reading of AviSynth script ;; files [no] ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no] ;; --enable-libcelt enable CELT decoding via libcelt [no] ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 ;; and libraw1394 [no] ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no] ;; --enable-libflite enable flite (voice synthesis) support via ;; libflite [no] ;; --enable-libgme enable Game Music Emu via libgme [no] ;; --enable-libgsm enable GSM de/encoding via libgsm [no] ;; --enable-libiec61883 enable iec61883 via libiec61883 [no] ;; --enable-libilbc enable iLBC de/encoding via libilbc [no] ;; --enable-libmodplug enable ModPlug via libmodplug [no] ;; --enable-libnut enable NUT (de)muxing via libnut, ;; native (de)muxer exists [no] ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via ;; libopencore-amrnb [no] ;; --enable-libopencore-amrwb enable AMR-WB decoding via ;; libopencore-amrwb [no] ;; --enable-libopencv enable video filtering via libopencv [no] ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via ;; OpenJPEG [no] ;; --enable-librtmp enable RTMP[E] support via librtmp [no] ;; --enable-libschroedinger enable Dirac de/encoding via ;; libschroedinger [no] ;; --enable-libshine enable fixed-point MP3 encoding via ;; libshine [no] ;; --enable-libssh enable SFTP protocol via libssh [no] ;; (libssh2 does not work) ;; --enable-libstagefright-h264 enable H.264 decoding via ;; libstagefright [no] ;; --enable-libutvideo enable Ut Video encoding and decoding via ;; libutvideo [no] ;; --enable-libv4l2 enable libv4l2/v4l-utils [no] ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no] ;; --enable-libvo-amrwbenc enable AMR-WB encoding via ;; libvo-amrwbenc [no] ;; --enable-libwavpack enable wavpack encoding via libwavpack [no] ;; --enable-libxavs enable AVS encoding via xavs [no] ;; --enable-libzmq enable message passing via libzmq [no] ;; --enable-libzvbi enable teletext support via libzvbi [no] ;; --enable-opencl enable OpenCL code #~(list #$@(if (target-powerpc?) ;; These tests fail on powerpc64-le (see: ;; https://trac.ffmpeg.org/ticket/9604). '("--ignore-tests=checkasm-sw_scale,filter- scale2ref_keep_aspect") '()) "--enable-gpl" ;enable optional gpl licensed parts "--enable-shared" "--enable-frei0r" "--enable-fontconfig" "--enable-gnutls" "--enable-ladspa" "--enable-libaom" "--enable-libass" "--enable-libbluray" "--enable-libcaca" "--enable-libcdio" "--enable-libdav1d" "--enable-libfreetype" "--enable-libmp3lame" "--enable-libopus" "--enable-libpulse" #$@(if (this-package-input "rav1e") '("--enable-librav1e") '()) "--enable-libshaderc" "--enable-libsoxr" "--enable-libspeex" "--enable-libsrt" "--enable-libsvtav1" "--enable-libtheora" "--enable-libtwolame" "--enable-libvidstab" "--enable-libvorbis" "--enable-libvpx" "--enable-libwebp" "--enable-libxvid" "--enable-libx264" "--enable-libx265" "--enable-openal" "--enable-opengl" "--enable-libdrm" "--enable-vaapi" "--enable-vulkan" "--enable-runtime-cpudetect" ;; The HTML pages take 7.2 MiB "--disable-htmlpages" ;; The static libraries are 23 MiB "--disable-static" "--disable-stripping" #$@(if (target-riscv64?) '("--extra-cflags=-fPIC") '()) ;; Runtime cpu detection is not implemented on ;; MIPS, so we disable some features. "--disable-mips32r2" "--disable-mipsdsp" "--disable-mipsdspr2" "--disable-mipsfpu") #:phases #~(modify-phases %standard-phases #$@(if (target-x86-32?) #~((add-before 'configure 'bypass-openal-check ;; configure fails linking to openal when using binutils ;; >= 2.38 due to openal's usage of protected visibility ;; for its dynamic symbols. Bypass this configure time ;; check for now. See: ;; https://lists.gnu.org/archive/html/guix- devel/2024-08/msg00159.html (lambda _ (substitute* "configure" ;; This string only matches on ffmpeg v6 and above. ;; Replace it with the one defined at ffmpeg-5 which ;; matches on all ffmpeg versions. See #71917. (("alGetError \\|\\|") "alGetError \|\| true \|\|"))))) #~()) (replace 'configure ;; configure does not work followed by "SHELL=..." and ;; "CONFIG_SHELL=..."; set environment variables instead (lambda* (#:key outputs configure-flags #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* "configure" (("#! /bin/sh") (string-append "#!" (which "sh")))) (setenv "SHELL" (which "bash")) (setenv "CONFIG_SHELL" (which "bash")) (apply invoke "./configure" (string-append "--prefix=" out) ;; Add $libdir to the RUNPATH of all the binaries. (string-append "--extra-ldflags=-Wl,-rpath=" out "/lib") configure-flags)))) (add-before 'check 'set-ld-library-path (lambda _ ;; Allow $(top_builddir)/ffmpeg to find its dependencies when ;; running tests. (let* ((dso (find-files "." "\\.so$")) (path (string-join (map dirname dso) ":"))) (format #t "setting LD_LIBRARY_PATH to ~s~%" path) (setenv "LD_LIBRARY_PATH" path))))))) (home-page "https://www.ffmpeg.org/") (synopsis "Audio and video framework") (description "FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes the libavcodec audio/video codec library.") (license license:gpl2+))) }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/11675> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11675: ffplay causes amdgpu driver crash -------------------------------------+------------------------------------- Reporter: Maxim | Owner: (none) Cournoyer | Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Maxim Cournoyer): * Attachment "test.mp4" added. Test file. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11675> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11675: ffplay causes amdgpu driver crash -------------------------------------+------------------------------------- Reporter: Maxim | Owner: (none) Cournoyer | Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Maxim Cournoyer): * Attachment "ffplay-20250718-114003.log" added. ffplay -report log -- Ticket URL: <https://trac.ffmpeg.org/ticket/11675> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11675: ffplay causes amdgpu driver crash -------------------------------------+------------------------------------- Reporter: Maxim | Owner: (none) Cournoyer | Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Maxim Cournoyer): * Attachment "validation.txt" added. Vulkan validation report when running ffplay reproducer with: VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation -- Ticket URL: <https://trac.ffmpeg.org/ticket/11675> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11675: ffplay causes amdgpu driver crash -------------------------------------+------------------------------------- Reporter: Maxim | Owner: (none) Cournoyer | Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Maxim Cournoyer): Content of dmesg when amdgpu crashes: {{{ [281546.646435] gmc_v10_0_process_interrupt: 597 callbacks suppressed [281546.646440] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646446] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646447] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104782000 from client 0x1b (UTCL2) [281546.646449] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281546.646449] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281546.646450] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281546.646451] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281546.646451] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281546.646452] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281546.646452] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281546.646456] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646457] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646458] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104783000 from client 0x1b (UTCL2) [281546.646458] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281546.646459] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281546.646460] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281546.646460] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281546.646460] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281546.646461] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281546.646461] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281546.646464] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646465] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646466] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104785000 from client 0x1b (UTCL2) [281546.646469] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646470] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646470] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104786000 from client 0x1b (UTCL2) [281546.646474] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646474] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646475] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104780000 from client 0x1b (UTCL2) [281546.646478] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646479] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646479] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104781000 from client 0x1b (UTCL2) [281546.646482] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646483] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646483] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104787000 from client 0x1b (UTCL2) [281546.646487] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646487] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646488] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104784000 from client 0x1b (UTCL2) [281546.646491] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646492] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646492] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104788000 from client 0x1b (UTCL2) [281546.646495] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281546.646496] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281546.646496] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104789000 from client 0x1b (UTCL2) [281556.723213] amdgpu 0000:0b:00.0: amdgpu: Dumping IP State [281556.723943] amdgpu 0000:0b:00.0: amdgpu: Dumping IP State Completed [281556.724038] gmc_v10_0_process_interrupt: 91 callbacks suppressed [281556.724044] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724052] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724055] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104780000 from client 0x1b (UTCL2) [281556.724058] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724060] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724061] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724063] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724064] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724065] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724066] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724070] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724072] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724074] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104786000 from client 0x1b (UTCL2) [281556.724076] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724077] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724078] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724079] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724080] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724081] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724081] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724084] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724085] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724086] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104785000 from client 0x1b (UTCL2) [281556.724087] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724088] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724089] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724090] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724091] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724092] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724093] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724095] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724096] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724097] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104787000 from client 0x1b (UTCL2) [281556.724098] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724099] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724100] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724101] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724102] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724103] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724104] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724106] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724107] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724108] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104781000 from client 0x1b (UTCL2) [281556.724109] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724110] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724111] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724112] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724113] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724114] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724115] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724118] amdgpu 0000:0b:00.0: amdgpu: ring gfx_0.0.0 timeout, but soft recovered [281556.724126] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724127] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724129] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104782000 from client 0x1b (UTCL2) [281556.724130] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724131] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724132] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724133] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724134] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724134] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724135] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724137] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724139] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724140] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104788000 from client 0x1b (UTCL2) [281556.724141] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724142] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724143] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724144] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724145] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724145] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724146] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724148] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724149] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724151] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104789000 from client 0x1b (UTCL2) [281556.724152] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701031 [281556.724153] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724154] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x1 [281556.724154] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724155] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724156] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724157] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724159] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724160] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724161] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x0000800104783000 from client 0x1b (UTCL2) [281556.724163] amdgpu 0000:0b:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701030 [281556.724163] amdgpu 0000:0b:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8) [281556.724164] amdgpu 0000:0b:00.0: amdgpu: MORE_FAULTS: 0x0 [281556.724165] amdgpu 0000:0b:00.0: amdgpu: WALKER_ERROR: 0x0 [281556.724166] amdgpu 0000:0b:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [281556.724167] amdgpu 0000:0b:00.0: amdgpu: MAPPING_ERROR: 0x0 [281556.724168] amdgpu 0000:0b:00.0: amdgpu: RW: 0x0 [281556.724171] amdgpu 0000:0b:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:32772) [281556.724172] amdgpu 0000:0b:00.0: amdgpu: in process ffplay pid 12962 thread ffplay pid 12962 [281556.724173] amdgpu 0000:0b:00.0: amdgpu: in page starting at address 0x000080010478a000 from client 0x1b (UTCL2) [281556.727198] amdgpu 0000:0b:00.0: amdgpu: Dumping IP State [281556.727906] amdgpu 0000:0b:00.0: amdgpu: Dumping IP State Completed [281556.737912] amdgpu 0000:0b:00.0: amdgpu: ring gfx_0.1.0 timeout, signaled seq=7124582, emitted seq=7124584 [281556.737915] amdgpu 0000:0b:00.0: amdgpu: Process information: process .gnome-shell-re pid 29867 thread gnome-shel:cs0 pid 29886 [281556.737916] amdgpu 0000:0b:00.0: amdgpu: Starting gfx_0.1.0 ring reset [281556.921343] amdgpu 0000:0b:00.0: amdgpu: Ring gfx_0.1.0 reset failure [281556.921350] amdgpu 0000:0b:00.0: amdgpu: GPU reset begin! }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/11675#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11675: ffplay causes amdgpu driver crash -------------------------------------+------------------------------------- Reporter: Maxim | Owner: (none) Cournoyer | Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Description changed by Maxim Cournoyer: Old description:
Summary of the bug: ffplay causes amdgpu driver crash How to reproduce: {{{ % ffplay -hwaccel vaapi test.mp4 ffmpeg version 7.1.1 built with GNU Guix (GNU/Linux) }}}
Full context available on the Mesa tracker: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7026#note_3020001
The Guix package definition for the build looks like: {{{ (define-public ffmpeg-7 (package (name "ffmpeg") (version "7.0.2") (source (origin (method url-fetch) (uri (string-append "https://ffmpeg.org/releases/ffmpeg-" version ".tar.xz")) (sha256 (base32 "1c837agaw8ljhjx6ndp2w7hffi2mkb22vnmb8v0fbfqdbqwq8fbk")))) (outputs '("out" "debug")) (build-system gnu-build-system) (inputs (append (if (supported-package? rav1e) (list rav1e) '()) (list dav1d fontconfig freetype frei0r-plugins gnutls opus ladspa lame libaom libass libbluray libcaca libcdio-paranoia libdrm libtheora libva libvdpau libvorbis libvpx libwebp libx11 libx264 mesa openal pulseaudio shaderc sdl2 soxr speex spirv-tools srt svt-av1 twolame vidstab vulkan-loader x265 xvid zlib))) (native-inputs (list bc perl pkg-config texinfo speex vulkan-headers yasm)) (arguments (list #:test-target "fate" #:configure-flags ;; possible additional inputs: ;; --enable-avisynth enable reading of AviSynth script ;; files [no] ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no] ;; --enable-libcelt enable CELT decoding via libcelt [no] ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 ;; and libraw1394 [no] ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no] ;; --enable-libflite enable flite (voice synthesis) support via ;; libflite [no] ;; --enable-libgme enable Game Music Emu via libgme [no] ;; --enable-libgsm enable GSM de/encoding via libgsm [no] ;; --enable-libiec61883 enable iec61883 via libiec61883 [no] ;; --enable-libilbc enable iLBC de/encoding via libilbc [no] ;; --enable-libmodplug enable ModPlug via libmodplug [no] ;; --enable-libnut enable NUT (de)muxing via libnut, ;; native (de)muxer exists [no] ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via ;; libopencore-amrnb [no] ;; --enable-libopencore-amrwb enable AMR-WB decoding via ;; libopencore-amrwb [no] ;; --enable-libopencv enable video filtering via libopencv [no] ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via ;; OpenJPEG [no] ;; --enable-librtmp enable RTMP[E] support via librtmp [no] ;; --enable-libschroedinger enable Dirac de/encoding via ;; libschroedinger [no] ;; --enable-libshine enable fixed-point MP3 encoding via ;; libshine [no] ;; --enable-libssh enable SFTP protocol via libssh [no] ;; (libssh2 does not work) ;; --enable-libstagefright-h264 enable H.264 decoding via ;; libstagefright [no] ;; --enable-libutvideo enable Ut Video encoding and decoding via ;; libutvideo [no] ;; --enable-libv4l2 enable libv4l2/v4l-utils [no] ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no] ;; --enable-libvo-amrwbenc enable AMR-WB encoding via ;; libvo-amrwbenc [no] ;; --enable-libwavpack enable wavpack encoding via libwavpack [no] ;; --enable-libxavs enable AVS encoding via xavs [no] ;; --enable-libzmq enable message passing via libzmq [no] ;; --enable-libzvbi enable teletext support via libzvbi [no] ;; --enable-opencl enable OpenCL code #~(list #$@(if (target-powerpc?) ;; These tests fail on powerpc64-le (see: ;; https://trac.ffmpeg.org/ticket/9604). '("--ignore-tests=checkasm-sw_scale,filter- scale2ref_keep_aspect") '()) "--enable-gpl" ;enable optional gpl licensed parts "--enable-shared" "--enable-frei0r" "--enable-fontconfig" "--enable-gnutls" "--enable-ladspa" "--enable-libaom" "--enable-libass" "--enable-libbluray" "--enable-libcaca" "--enable-libcdio" "--enable-libdav1d" "--enable-libfreetype" "--enable-libmp3lame" "--enable-libopus" "--enable-libpulse" #$@(if (this-package-input "rav1e") '("--enable-librav1e") '()) "--enable-libshaderc" "--enable-libsoxr" "--enable-libspeex" "--enable-libsrt" "--enable-libsvtav1" "--enable-libtheora" "--enable-libtwolame" "--enable-libvidstab" "--enable-libvorbis" "--enable-libvpx" "--enable-libwebp" "--enable-libxvid" "--enable-libx264" "--enable-libx265" "--enable-openal" "--enable-opengl" "--enable-libdrm" "--enable-vaapi" "--enable-vulkan"
"--enable-runtime-cpudetect"
;; The HTML pages take 7.2 MiB "--disable-htmlpages"
;; The static libraries are 23 MiB "--disable-static"
"--disable-stripping"
#$@(if (target-riscv64?) '("--extra-cflags=-fPIC") '())
;; Runtime cpu detection is not implemented on ;; MIPS, so we disable some features. "--disable-mips32r2" "--disable-mipsdsp" "--disable-mipsdspr2" "--disable-mipsfpu") #:phases #~(modify-phases %standard-phases #$@(if (target-x86-32?) #~((add-before 'configure 'bypass-openal-check ;; configure fails linking to openal when using binutils ;; >= 2.38 due to openal's usage of protected visibility ;; for its dynamic symbols. Bypass this configure time ;; check for now. See: ;; https://lists.gnu.org/archive/html/guix- devel/2024-08/msg00159.html (lambda _ (substitute* "configure" ;; This string only matches on ffmpeg v6 and above. ;; Replace it with the one defined at ffmpeg-5 which ;; matches on all ffmpeg versions. See #71917. (("alGetError \\|\\|") "alGetError \|\| true \|\|"))))) #~()) (replace 'configure ;; configure does not work followed by "SHELL=..." and ;; "CONFIG_SHELL=..."; set environment variables instead (lambda* (#:key outputs configure-flags #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* "configure" (("#! /bin/sh") (string-append "#!" (which "sh")))) (setenv "SHELL" (which "bash")) (setenv "CONFIG_SHELL" (which "bash")) (apply invoke "./configure" (string-append "--prefix=" out) ;; Add $libdir to the RUNPATH of all the binaries. (string-append "--extra-ldflags=-Wl,-rpath=" out "/lib") configure-flags)))) (add-before 'check 'set-ld-library-path (lambda _ ;; Allow $(top_builddir)/ffmpeg to find its dependencies when ;; running tests. (let* ((dso (find-files "." "\\.so$")) (path (string-join (map dirname dso) ":"))) (format #t "setting LD_LIBRARY_PATH to ~s~%" path) (setenv "LD_LIBRARY_PATH" path))))))) (home-page "https://www.ffmpeg.org/") (synopsis "Audio and video framework") (description "FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes the libavcodec audio/video codec library.") (license license:gpl2+))) }}}
New description: Summary of the bug: ffplay causes amdgpu driver crash How to reproduce: {{{ % ffplay -hwaccel vaapi test.mp4 ffmpeg version 7.1.1 built with GNU Guix (GNU/Linux) }}} Full context available on the Mesa tracker: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7026#note_3020001 The Guix package definition for the build looks like: {{{ (define-public ffmpeg-7 (package (name "ffmpeg") (version "7.1.1") (source (origin (method url-fetch) (uri (string-append "https://ffmpeg.org/releases/ffmpeg-" version ".tar.xz")) (sha256 (base32 "1c837agaw8ljhjx6ndp2w7hffi2mkb22vnmb8v0fbfqdbqwq8fbk")))) (outputs '("out" "debug")) (build-system gnu-build-system) (inputs (append (if (supported-package? rav1e) (list rav1e) '()) (list dav1d fontconfig freetype frei0r-plugins gnutls opus ladspa lame libaom libass libbluray libcaca libcdio-paranoia libdrm libgme libplacebo libtheora libva libvdpau libvorbis libvpx libwebp libx11 libx264 mesa openal pulseaudio shaderc sdl2 soxr speex spirv-tools srt svt-av1 twolame vidstab vulkan-loader x265 xvid zlib))) (native-inputs (list bc perl pkg-config texinfo speex vulkan-headers nasm)) (arguments (list #:test-target "fate" #:configure-flags ;; possible additional inputs: ;; --enable-avisynth enable reading of AviSynth script ;; files [no] ;; --enable-libaacplus enable AAC+ encoding via libaacplus [no] ;; --enable-libcelt enable CELT decoding via libcelt [no] ;; --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 ;; and libraw1394 [no] ;; --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no] ;; --enable-libflite enable flite (voice synthesis) support via ;; libflite [no] ;; --enable-libgsm enable GSM de/encoding via libgsm [no] ;; --enable-libiec61883 enable iec61883 via libiec61883 [no] ;; --enable-libilbc enable iLBC de/encoding via libilbc [no] ;; --enable-libmodplug enable ModPlug via libmodplug [no] ;; --enable-libnut enable NUT (de)muxing via libnut, ;; native (de)muxer exists [no] ;; --enable-libopencore-amrnb enable AMR-NB de/encoding via ;; libopencore-amrnb [no] ;; --enable-libopencore-amrwb enable AMR-WB decoding via ;; libopencore-amrwb [no] ;; --enable-libopencv enable video filtering via libopencv [no] ;; --enable-libopenjpeg enable JPEG 2000 de/encoding via ;; OpenJPEG [no] ;; --enable-librtmp enable RTMP[E] support via librtmp [no] ;; --enable-libschroedinger enable Dirac de/encoding via ;; libschroedinger [no] ;; --enable-libshine enable fixed-point MP3 encoding via ;; libshine [no] ;; --enable-libssh enable SFTP protocol via libssh [no] ;; (libssh2 does not work) ;; --enable-libstagefright-h264 enable H.264 decoding via ;; libstagefright [no] ;; --enable-libutvideo enable Ut Video encoding and decoding via ;; libutvideo [no] ;; --enable-libv4l2 enable libv4l2/v4l-utils [no] ;; --enable-libvo-aacenc enable AAC encoding via libvo-aacenc [no] ;; --enable-libvo-amrwbenc enable AMR-WB encoding via ;; libvo-amrwbenc [no] ;; --enable-libwavpack enable wavpack encoding via libwavpack [no] ;; --enable-libxavs enable AVS encoding via xavs [no] ;; --enable-libzmq enable message passing via libzmq [no] ;; --enable-libzvbi enable teletext support via libzvbi [no] ;; --enable-opencl enable OpenCL code #~(list #$@(if (target-powerpc?) ;; These tests fail on powerpc64-le (see: ;; https://trac.ffmpeg.org/ticket/9604). '("--ignore-tests=checkasm-sw_scale,filter- scale2ref_keep_aspect") '()) "--enable-gpl" ;enable optional gpl licensed parts "--enable-shared" "--enable-frei0r" "--enable-fontconfig" "--enable-gnutls" "--enable-ladspa" "--enable-libaom" "--enable-libass" "--enable-libbluray" "--enable-libcaca" "--enable-libcdio" "--enable-libdav1d" "--enable-libfreetype" "--enable-libgme" "--enable-libmp3lame" "--enable-libopus" "--enable-libplacebo" "--enable-libpulse" #$@(if (this-package-input "rav1e") '("--enable-librav1e") '()) "--enable-libshaderc" "--enable-libsoxr" "--enable-libspeex" "--enable-libsrt" "--enable-libsvtav1" "--enable-libtheora" "--enable-libtwolame" "--enable-libvidstab" "--enable-libvorbis" "--enable-libvpx" "--enable-libwebp" "--enable-libxvid" "--enable-libx264" "--enable-libx265" "--enable-openal" "--enable-opengl" "--enable-libdrm" "--enable-vaapi" "--enable-vulkan" "--enable-runtime-cpudetect" ;; The HTML pages take 7.2 MiB "--disable-htmlpages" ;; The static libraries are 23 MiB "--disable-static" "--disable-stripping" #$@(if (target-riscv64?) '("--extra-cflags=-fPIC") '()) ;; Runtime cpu detection is not implemented on ;; MIPS, so we disable some features. "--disable-mips32r2" "--disable-mipsdsp" "--disable-mipsdspr2" "--disable-mipsfpu") #:phases #~(modify-phases %standard-phases #$@(if (target-x86-32?) #~((add-before 'configure 'bypass-openal-check ;; configure fails linking to openal when using binutils ;; >= 2.38 due to openal's usage of protected visibility ;; for its dynamic symbols. Bypass this configure time ;; check for now. See: ;; https://lists.gnu.org/archive/html/guix- devel/2024-08/msg00159.html (lambda _ (substitute* "configure" ;; This string only matches on ffmpeg v6 and above. ;; Replace it with the one defined at ffmpeg-5 which ;; matches on all ffmpeg versions. See #71917. (("alGetError \\|\\|") "alGetError \|\| true \|\|"))))) #~()) (replace 'configure ;; configure does not work followed by "SHELL=..." and ;; "CONFIG_SHELL=..."; set environment variables instead (lambda* (#:key outputs configure-flags #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* "configure" (("#! */bin/sh") (string-append "#!" (which "sh")))) (setenv "SHELL" (which "bash")) (setenv "CONFIG_SHELL" (which "bash")) (apply invoke "./configure" (string-append "--prefix=" out) ;; Add $libdir to the RUNPATH of all the binaries. (string-append "--extra-ldflags=-Wl,-rpath=" out "/lib") configure-flags)))) (add-before 'check 'set-ld-library-path (lambda _ ;; Allow $(top_builddir)/ffmpeg to find its dependencies when ;; running tests. (let* ((dso (find-files "." "\\.so$")) (path (string-join (map dirname dso) ":"))) (format #t "setting LD_LIBRARY_PATH to ~s~%" path) (setenv "LD_LIBRARY_PATH" path))))))) (home-page "https://www.ffmpeg.org/") (synopsis "Audio and video framework") (description "FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes the libavcodec audio/video codec library.") (license license:gpl2+))) }}} -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/11675#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg