Bug 1815528 Comment 10 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

We can't use dl_iterate_phdr() here. Driver library is opened at vaInitialize() call and it crashes directly in the call when driver init is called. dl_iterate_phdr() can't catch that because libva-vdpau-driver.so is not loaded before vaInitialize() which crashes.
So there's no way how to block libva-vdpau-driver.so from load.

We may set LIBVA_DRIVER_NAME directly when NVIDIA/Wayland is present but that's also an ugly hack.
As this crash happens on Wayland/NVIDIA and you need to explicitly force-enable it and use broken driver I'm not going to investigate it more.
We can't use dl_iterate_phdr() here. Driver library is opened at vaInitialize() call and it crashes directly in the call when driver init is called. dl_iterate_phdr() can't catch it that because libva-vdpau-driver.so is not loaded before vaInitialize() which crashes.
So there's no way how to block libva-vdpau-driver.so from load.

We may set LIBVA_DRIVER_NAME directly when NVIDIA/Wayland is present but that's also an ugly hack.
As this crash happens on Wayland/NVIDIA and you need to explicitly force-enable it and use broken driver I'm not going to investigate it more.

Back to Bug 1815528 Comment 10