Latest kernel DKMS driver from Intel repositories (i.e. using prelim uAPI), and latest media driver release that is built without prelim API support.
On Arc 0x56a0 HW Glibc aborts media process to double-free:
$ vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
double free or corruption (!prev)
What's the usage scenario when you are seeing the problem?
Transcode for media delivery, Playback, Others
What impacted?
All media use-cases are impacted, as this happens on driver initialization.
Users can easily mix accidentally kernel and user-space drivers with different uAPI.
Expected behavior in this case is media-driver returning error to application, instead of crashing the application.
Driver could also log that that given kernel driver is not supported so that user knows what's the problem.
(Ideally driver should support both prelim & upstream uAPIs at the same time like Intel compute driver does, but at least it should not crash.)
Which component impacted?
Not sure
Is it regression? Good in old configuration?
None
What happened?
Latest kernel DKMS driver from Intel repositories (i.e. using prelim uAPI), and latest media driver release that is built without prelim API support.
On Arc 0x56a0 HW Glibc aborts media process to double-free:
What's the usage scenario when you are seeing the problem?
Transcode for media delivery, Playback, Others
What impacted?
All media use-cases are impacted, as this happens on driver initialization.
Users can easily mix accidentally kernel and user-space drivers with different uAPI.
Expected behavior in this case is media-driver returning error to application, instead of crashing the application.
Driver could also log that that given kernel driver is not supported so that user knows what's the problem.
(Ideally driver should support both prelim & upstream uAPIs at the same time like Intel compute driver does, but at least it should not crash.)
Debug Information
I'm using latest available tags:
Buffer mapping gets abort due to double-free:
By enabling prelim uAPI support, the crash goes away (and media workloads actually work).
Do you want to contribute a patch to fix the issue?
No.