#1008776 intel-media-va-driver: Segmentation fault with gstreamer based applications

Package:
intel-media-va-driver
Source:
intel-media-driver
Description:
VAAPI driver for the Intel GEN8+ Graphics family
Submitter:
Kai Weber
Date:
2022-06-04 11:09:03 UTC
Severity:
grave
Tags:
#1008776#5
Date:
2022-04-01 09:10:56 UTC
From:
To:
Dear Maintainer,

since a recent update (can not excalty determine the date) gstreamer based applications like totem or gst-play-1.0 itself segfault on video files.

Removing intel-media-va-driver resolves the issue.
Installing intel-media-va-driver-non-free resolves the issue.

Attached is a backtrace. I have no experience getting backtraces. This one was achieved after install the intel-media-va-driver-dbgsym package and running

$ export DEBUGINFOD_URLS="https://debuginfod.debian.net"
$ gdb --args gst-play-1.0 /home/kai/Downloads/pony.mp4 --videosink=glimagesink
Thread 14 "qtdemux0:sink" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb77fe640 (LWP 22147)]
0x00007fffb5f906be in KernelDll_AllocateStates (pKernelBin=<optimized out>, uKernelSize=0, pFcPatchCache=0x0,
    uFcPatchCacheSize=<optimized out>, pDefaultRules=0x0, ModifyFunctionPointers=0x0)
    at ./media_driver/agnostic/common/vp/kdll/hal_kerneldll.c:2791
Download failed: Invalid argument.  Continuing without source file ./obj-x86_64-linux-gnu/media_driver/./media_driver/agnostic/common/vp/kdll/hal_kerneldll.c.
2791    ./media_driver/agnostic/common/vp/kdll/hal_kerneldll.c: No such file or directory.
(gdb) set logging file backtrace.log
(gdb) set logging on
Copying output to backtrace.log.
(gdb) bt
...
(gdb) set logging off
Done logging to backtrace.log.
(gdb) quit

#1008776#10
Date:
2022-04-05 16:43:24 UTC
From:
To:
Hi Kai

That could be another case of the driver expecting to have a kernel
available which in fact is disabled in the open source build. If
22.3.1+dfsg1-1 doesn't fix the issue for you, please let my know your
CPU/GPU so that the issue can be reported upstream.

Cheers

#1008776#17
Date:
2022-04-06 07:27:46 UTC
From:
To:
* Sebastian Ramacher <sramacher@debian.org>:

CPU: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
GPU: Mesa Intel® UHD Graphics 620 (KBL GT2)

#1008776#24
Date:
2022-04-25 06:24:13 UTC
From:
To:
Hi Kai

Could you please follow up to the question at
https://github.com/intel/media-driver/issues/1394#issuecomment-1108086538?
Thanks

Cheers

#1008776#31
Date:
2022-06-04 11:04:55 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
intel-media-driver, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1008776@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Ramacher <sramacher@debian.org> (supplier of updated intel-media-driver package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 04 Jun 2022 12:41:45 +0200
Source: intel-media-driver
Architecture: source
Version: 22.4.2+dfsg1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Sebastian Ramacher <sramacher@debian.org>
Closes: 1008776
Changes:
 intel-media-driver (22.4.2+dfsg1-2) unstable; urgency=medium
 .
   * debian/patches: Fix driver crash with no kernel binary (Closes: #1008776)
Checksums-Sha1:
 fb933c23d2f3a2851a5add2019c7147c6fa37b61 2372 intel-media-driver_22.4.2+dfsg1-2.dsc
 301bee970cabae2600eac8f6e3e711d0051a1d23 7084 intel-media-driver_22.4.2+dfsg1-2.debian.tar.xz
Checksums-Sha256:
 09e23e00d2aba19c3e4a9603396062cd87cf4f4a925f694c19cff14a8ab410f4 2372 intel-media-driver_22.4.2+dfsg1-2.dsc
 d8e72027a9d9f30a9ad685a48908ba5d682e80a9c15368ed61d63dedab604858 7084 intel-media-driver_22.4.2+dfsg1-2.debian.tar.xz
Files:
 83f33ad7eaf9fa4c51ff6b8d09290095 2372 video optional intel-media-driver_22.4.2+dfsg1-2.dsc
 307a4ea883235c30aba496be43c195d0 7084 video optional intel-media-driver_22.4.2+dfsg1-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE94y6B4F7sUmhHTOQafL8UW6nGZMFAmKbOVsACgkQafL8UW6n
GZPGHQ//RPc8F1dsXjXxFx4tFdU6P5Y9cvxy72L/sr4e9l20f1WO2TZmJzd3bi6B
i2YIUqEoyl66nrUYwjBw8ye9zYW7jvw0rmLVLJvGSHUjJ0n0zvx9/XCf32G9w8UL
egIxA/uB727afnBIBrD+pp980pPL1VqQWU6XRganV309mqCn0cAEEF0lkikyHEze
ZL5Xy6f3bD3B7cjWwhXx+DIc0BtmQGdTctv5gcvBZGyb0qIpJ4D67F34DEewEEPH
jceo/Or0hdNouS7FJElWGgDSinOOcvdwSYVcQ9OjYeo6i4wsocY/iUJn5tB3cykB
pW/Hwxh2v69mcP1NX/FbwayB0ZfXI2ENQ2zGk98Ao0cmZ/wu+H26l7Y+Q92uJk7y
E6dzNuCQ+rAV4FiIzCWYtNC7mn3RVL8PRmF3Hsf1WNqqt5Wm76q2lYJ5z9ulTIeF
1GItKAixbU0lU7215VLE//g4ycOGmvtvS8fJ0pFDTtmm+Z+oh+5jolKokyLdw5b7
AoJZ+s9ShQ2OiY/mK6kDMNY5iCRRfraZk8da9ABzT5m6ygCyz+BrgKeXAM/bnH/w
yXSWbZOvapm/Jlvdqg1/j3u2SYN+/Xg89QyO81LTF0xIaB/VrrN7ExejN7piRkaQ
wJuYRVxymqcTczqJowZlWMta0XWjWje2jv/Uvg/ghVZ5HfpVYqA=
=OdNY
-----END PGP SIGNATURE-----