Bug#972833: intel-media-va-driver: SIGSEGV's on use (vlc, finch for example)

2020-10-30 Thread Karsten Hilbert
On Fri, Oct 30, 2020 at 10:30:47AM +0100, Sebastian Ramacher wrote:

> > anything I can do or anyone I can prod to improve upon the situation ?
> >
> > If I understand things correctly "some driver" is supposed to
> > reconsider its compile flags for parts of its code (esp. init) ?
>
> Yes, indeed. Until that's fixed, you can force libva to use a specific
> driver by setting the LIBVA_DRIVER environment variable, e.g.
>
> export LIBVA_DRIVER=i965

For the record:

On my system it needs to be "LIBVA_DRIVER_NAME" and "i915",
but, yeah, that helps :-)

I put that into my .bashrc for the time being as

export LIBVA_DRVER_NAME=i915

Thanks !

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



Bug#972833: intel-media-va-driver: SIGSEGV's on use (vlc, finch for example)

2020-10-24 Thread Sebastian Ramacher
Control: forwarded -1 https://github.com/intel/libva/issues/466
Control: reassign -1 libva2 2.9.0-1
control: retitle -1 libva: loads media-driver on unsupported GPU

On 2020-10-24 23:39:05 +0200, Karsten Hilbert wrote:
> On Sat, Oct 24, 2020 at 10:39:09PM +0200, Sebastian Ramacher wrote:
> 
> > >   Okt 24 17:56:50 hermes kernel: traps: vlc[27504] trap invalid opcode 
> > > ip:89c9d6fb sp:8e550370 error:0 in iHD_drv_video.so[899dc000+3c2000]
> >
> > Which Intel CPU/GPU do you have? If the instruction is not supported, libva
> > shouldn't load the driver for your's.
> 
> Architecture:i686
> CPU op-mode(s):  32-bit, 64-bit
> Byte Order:  Little Endian
> Address sizes:   36 bits physical, 48 bits virtual
> CPU(s):  2
> On-line CPU(s) list: 0,1
> Thread(s) per core:  1
> Core(s) per socket:  2
> Socket(s):   1
> Vendor ID:   GenuineIntel
> CPU family:  6
> Model:   23
> Model name:  Pentium(R) Dual-Core CPU   T4300  @ 
> 2.10GHz
> Stepping:10
> CPU MHz: 1342.405
> CPU max MHz: 2100.
> CPU min MHz: 1200.
> BogoMIPS:4189.84
> L1d cache:   64 KiB
> L1i cache:   64 KiB
> L2 cache:1 MiB
> Vulnerability Itlb multihit: KVM: Mitigation: VMX unsupported
> Vulnerability L1tf:  Mitigation; PTE Inversion
> Vulnerability Mds:   Vulnerable: Clear CPU buffers attempted, no 
> microcode; SMT disabled
> Vulnerability Meltdown:  Vulnerable
> Vulnerability Spec store bypass: Vulnerable
> Vulnerability Spectre v1:Mitigation; usercopy/swapgs barriers and 
> __user pointer sanitization
> Vulnerability Spectre v2:Mitigation; Full generic retpoline, STIBP 
> disabled, RSB filling
> Vulnerability Srbds: Not affected
> Vulnerability Tsx async abort:   Not affected
> Flags:   fpu vme de pse tsc msr pae mce cx8 apic sep 
> mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe nx 
> lm constant_tsc arch_perfmon pebs bts cpuid aperfmperf pni dtes64 monitor 
> ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dtherm
> 
> 
> 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset 
> Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
> Subsystem: ASUSTeK Computer Inc. Mobile 4 Series Chipset Integrated 
> Graphics Controller
> Flags: bus master, fast devsel, latency 0, IRQ 16
> Memory at fe40 (64-bit, non-prefetchable) [size=4M]
> Memory at d000 (64-bit, prefetchable) [size=256M]
> I/O ports at dc00 [size=8]
> Expansion ROM at 000c [virtual] [disabled] [size=128K]
> Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
> Capabilities: [d0] Power Management version 3
> Kernel driver in use: i915
> Kernel modules: i915
> 
> 
> Does that help ?

Thanks, that is definitely not supported by intel-media-driver and
shouldn't be loaded in the first place. Reported upstream.

Cheers

> 
> Karsten
> --
> GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B
> 

-- 
Sebastian Ramacher


signature.asc
Description: PGP signature


Bug#972833: intel-media-va-driver: SIGSEGV's on use (vlc, finch for example)

2020-10-24 Thread Karsten Hilbert
On Sat, Oct 24, 2020 at 10:39:09PM +0200, Sebastian Ramacher wrote:

> > Okt 24 17:56:50 hermes kernel: traps: vlc[27504] trap invalid opcode 
> > ip:89c9d6fb sp:8e550370 error:0 in iHD_drv_video.so[899dc000+3c2000]
>
> Which Intel CPU/GPU do you have? If the instruction is not supported, libva
> shouldn't load the driver for your's.

Architecture:i686
CPU op-mode(s):  32-bit, 64-bit
Byte Order:  Little Endian
Address sizes:   36 bits physical, 48 bits virtual
CPU(s):  2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per socket:  2
Socket(s):   1
Vendor ID:   GenuineIntel
CPU family:  6
Model:   23
Model name:  Pentium(R) Dual-Core CPU   T4300  @ 2.10GHz
Stepping:10
CPU MHz: 1342.405
CPU max MHz: 2100.
CPU min MHz: 1200.
BogoMIPS:4189.84
L1d cache:   64 KiB
L1i cache:   64 KiB
L2 cache:1 MiB
Vulnerability Itlb multihit: KVM: Mitigation: VMX unsupported
Vulnerability L1tf:  Mitigation; PTE Inversion
Vulnerability Mds:   Vulnerable: Clear CPU buffers attempted, no 
microcode; SMT disabled
Vulnerability Meltdown:  Vulnerable
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:Mitigation; usercopy/swapgs barriers and 
__user pointer sanitization
Vulnerability Spectre v2:Mitigation; Full generic retpoline, STIBP 
disabled, RSB filling
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort:   Not affected
Flags:   fpu vme de pse tsc msr pae mce cx8 apic sep 
mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe nx lm 
constant_tsc arch_perfmon pebs bts cpuid aperfmperf pni dtes64 monitor ds_cpl 
est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dtherm


00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset 
Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Mobile 4 Series Chipset Integrated 
Graphics Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fe40 (64-bit, non-prefetchable) [size=4M]
Memory at d000 (64-bit, prefetchable) [size=256M]
I/O ports at dc00 [size=8]
Expansion ROM at 000c [virtual] [disabled] [size=128K]
Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 3
Kernel driver in use: i915
Kernel modules: i915


Does that help ?

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



Bug#972833: intel-media-va-driver: SIGSEGV's on use (vlc, finch for example)

2020-10-24 Thread Sebastian Ramacher
Control: tags -1 + moreinfo

On 2020-10-24 18:41:08 +0200, Karsten Hilbert wrote:
> Package: intel-media-va-driver
> Version: 20.3.0+dfsg1-1
> Severity: important
> Tags: upstream
> 
> This happens when running vlc (or finch, for that matter):
> 
>   VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
>   [006aabe0] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. 
> Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
>   [991bf220] gl gl: Initialized libplacebo v2.72.0 (API v72)
>   libva info: VA-API version 1.9.0
>   libva info: Trying to open /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so 
> Ungültiger Maschinenbefehl
> 
> journalctl -b:
> 
>   Okt 24 17:56:50 hermes kernel: traps: vlc[27504] trap invalid opcode 
> ip:89c9d6fb sp:8e550370 error:0 in iHD_drv_video.so[899dc000+3c2000]

Which Intel CPU/GPU do you have? If the instruction is not supported, libva
shouldn't load the driver for your's.

Cheers

> 
> gdb:
> 
> ncq@hermes:/media/ncq/SIMMAX/ccc$ gdb --args vlc 
> 36c3-10961-eng-deu-fra-Boeing_737MAX_Automated_Crashes_sd.mp4
> GNU gdb (Debian 9.2-1) 9.2
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "i686-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> .
> Find the GDB manual and other documentation resources online at:
> .
> 
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from vlc...
> (No debugging symbols found in vlc)
> (gdb) run
> Starting program: /usr/bin/vlc 
> 36c3-10961-eng-deu-fra-Boeing_737MAX_Automated_Crashes_sd.mp4
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
> VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
> [New Thread 0xb4b6fb40 (LWP 7805)]
> [New Thread 0xb435db40 (LWP 7806)]
> [New Thread 0xaff9ab40 (LWP 7807)]
> [New Thread 0xa3dffb40 (LWP 7808)]
> [New Thread 0xa3bffb40 (LWP 7809)]
> [00405be0] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. 
> Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
> [New Thread 0x9d37bb40 (LWP 7810)]
> [New Thread 0x9d027b40 (LWP 7811)]
> [Thread 0xa3bffb40 (LWP 7809) exited]
> [New Thread 0xa3bffb40 (LWP 7812)]
> [New Thread 0xa39ffb40 (LWP 7814)]
> [Thread 0xa39ffb40 (LWP 7814) exited]
> [New Thread 0xa37f2b40 (LWP 7815)]
> [Thread 0xa3dffb40 (LWP 7808) exited]
> [Thread 0xa3bffb40 (LWP 7812) exited]
> [New Thread 0xa3bffb40 (LWP 7817)]
> [New Thread 0x9de08b40 (LWP 7819)]
> [New Thread 0x9a5a5b40 (LWP 7820)]
> [New Thread 0x99da4b40 (LWP 7821)]
> [New Thread 0x995a3b40 (LWP 7822)]
> [New Thread 0xa3dffb40 (LWP 7823)]
> [New Thread 0xa39ffb40 (LWP 7824)]
> [New Thread 0x9d4ffb40 (LWP 7825)]
> [Thread 0x9d4ffb40 (LWP 7825) exited]
> [New Thread 0x8d40 (LWP 7826)]
> [New Thread 0x8d1ffb40 (LWP 7827)]
> [New Thread 0x8c9feb40 (LWP 7828)]
> [New Thread 0x9d4ffb40 (LWP 7829)]
> [Thread 0xa39ffb40 (LWP 7824) exited]
> [New Thread 0xa39ffb40 (LWP 7831)]
> [New Thread 0x8b7ffb40 (LWP 7832)]
> [New Thread 0x8abbeb40 (LWP 7833)]
> [New Thread 0x8a3bdb40 (LWP 7834)]
> [New Thread 0x89bbcb40 (LWP 7835)]
> [New Thread 0x893bbb40 (LWP 7836)]
> [9f7c4c20] gl gl: Initialized libplacebo v2.72.0 (API v72)
> libva info: VA-API version 1.9.0
> libva info: Trying to open /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
> 
> Thread 25 "vlc" received signal SIGILL, Illegal instruction.
> [Switching to Thread 0x8b7ffb40 (LWP 7832)]
> 0x86f9d6fb in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
> (gdb) bt
> #0  0x86f9d6fb in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
> #1  0x86f9fb61 in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
> #2  0x86ceb0a6 in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
> #3  0xb7fe5e9c in call_init (l=, argc=argc@entry=2, 
> argv=argv@entry=0xb224, env=0xb230) at dl-init.c:72
> #4  0xb7fe5fa2 in call_init (env=0xb230, argv=0xb224, argc=2, 
> l=) at dl-init.c:30
> #5  _dl_init (main_map=, argc=2, argv=0xb224, 
> env=0xb230) at dl-init.c:119
> #6  0xb7fe92a7 in call_dl_init (closure=0x8b7fe660) at dl-open.c:469
> #7  0xb7e9f524 in __GI__dl_catch_exception (exception=, 
> operate=, args=) at dl-error-skeleton.c:182
> #8  0xb7fea08d in dl_open_worker (a=) at dl-open.c:758
> #9  0xb7e9f4c9 in __GI__dl_catch_exception (exception=0x8b7fe790, 
> operate=0xb7fe9990 , args=0x8b7fe79c) at 
> dl-error-skeleton.c:208
> #10 0xb7fe95e6 in _dl_open (file=0x87752e50 
> 

Bug#972833: intel-media-va-driver: SIGSEGV's on use (vlc, finch for example)

2020-10-24 Thread Karsten Hilbert
Package: intel-media-va-driver
Version: 20.3.0+dfsg1-1
Severity: important
Tags: upstream

This happens when running vlc (or finch, for that matter):

VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[006aabe0] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. 
Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[991bf220] gl gl: Initialized libplacebo v2.72.0 (API v72)
libva info: VA-API version 1.9.0
libva info: Trying to open /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so 
Ungültiger Maschinenbefehl

journalctl -b:

Okt 24 17:56:50 hermes kernel: traps: vlc[27504] trap invalid opcode 
ip:89c9d6fb sp:8e550370 error:0 in iHD_drv_video.so[899dc000+3c2000]

gdb:

ncq@hermes:/media/ncq/SIMMAX/ccc$ gdb --args vlc 
36c3-10961-eng-deu-fra-Boeing_737MAX_Automated_Crashes_sd.mp4
GNU gdb (Debian 9.2-1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vlc...
(No debugging symbols found in vlc)
(gdb) run
Starting program: /usr/bin/vlc 
36c3-10961-eng-deu-fra-Boeing_737MAX_Automated_Crashes_sd.mp4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[New Thread 0xb4b6fb40 (LWP 7805)]
[New Thread 0xb435db40 (LWP 7806)]
[New Thread 0xaff9ab40 (LWP 7807)]
[New Thread 0xa3dffb40 (LWP 7808)]
[New Thread 0xa3bffb40 (LWP 7809)]
[00405be0] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. 
Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[New Thread 0x9d37bb40 (LWP 7810)]
[New Thread 0x9d027b40 (LWP 7811)]
[Thread 0xa3bffb40 (LWP 7809) exited]
[New Thread 0xa3bffb40 (LWP 7812)]
[New Thread 0xa39ffb40 (LWP 7814)]
[Thread 0xa39ffb40 (LWP 7814) exited]
[New Thread 0xa37f2b40 (LWP 7815)]
[Thread 0xa3dffb40 (LWP 7808) exited]
[Thread 0xa3bffb40 (LWP 7812) exited]
[New Thread 0xa3bffb40 (LWP 7817)]
[New Thread 0x9de08b40 (LWP 7819)]
[New Thread 0x9a5a5b40 (LWP 7820)]
[New Thread 0x99da4b40 (LWP 7821)]
[New Thread 0x995a3b40 (LWP 7822)]
[New Thread 0xa3dffb40 (LWP 7823)]
[New Thread 0xa39ffb40 (LWP 7824)]
[New Thread 0x9d4ffb40 (LWP 7825)]
[Thread 0x9d4ffb40 (LWP 7825) exited]
[New Thread 0x8d40 (LWP 7826)]
[New Thread 0x8d1ffb40 (LWP 7827)]
[New Thread 0x8c9feb40 (LWP 7828)]
[New Thread 0x9d4ffb40 (LWP 7829)]
[Thread 0xa39ffb40 (LWP 7824) exited]
[New Thread 0xa39ffb40 (LWP 7831)]
[New Thread 0x8b7ffb40 (LWP 7832)]
[New Thread 0x8abbeb40 (LWP 7833)]
[New Thread 0x8a3bdb40 (LWP 7834)]
[New Thread 0x89bbcb40 (LWP 7835)]
[New Thread 0x893bbb40 (LWP 7836)]
[9f7c4c20] gl gl: Initialized libplacebo v2.72.0 (API v72)
libva info: VA-API version 1.9.0
libva info: Trying to open /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so

Thread 25 "vlc" received signal SIGILL, Illegal instruction.
[Switching to Thread 0x8b7ffb40 (LWP 7832)]
0x86f9d6fb in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
(gdb) bt
#0  0x86f9d6fb in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
#1  0x86f9fb61 in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
#2  0x86ceb0a6 in ?? () from /usr/lib/i386-linux-gnu/dri/iHD_drv_video.so
#3  0xb7fe5e9c in call_init (l=, argc=argc@entry=2, 
argv=argv@entry=0xb224, env=0xb230) at dl-init.c:72
#4  0xb7fe5fa2 in call_init (env=0xb230, argv=0xb224, argc=2, 
l=) at dl-init.c:30
#5  _dl_init (main_map=, argc=2, argv=0xb224, 
env=0xb230) at dl-init.c:119
#6  0xb7fe92a7 in call_dl_init (closure=0x8b7fe660) at dl-open.c:469
#7  0xb7e9f524 in __GI__dl_catch_exception (exception=, 
operate=, args=) at dl-error-skeleton.c:182
#8  0xb7fea08d in dl_open_worker (a=) at dl-open.c:758
#9  0xb7e9f4c9 in __GI__dl_catch_exception (exception=0x8b7fe790, 
operate=0xb7fe9990 , args=0x8b7fe79c) at dl-error-skeleton.c:208
#10 0xb7fe95e6 in _dl_open (file=0x87752e50 
"/usr/lib/i386-linux-gnu/dri/iHD_drv_video.so", mode=-2147479294, 
caller_dlopen=0x8dc67cc3, nsid=, argc=2, argv=0xb224, 
env=0xb230) at dl-open.c:837
#11 0xb7f4a2c8 in dlopen_doit (a=0x8b7fe99c) at dlopen.c:66
#12 0xb7e9f4c9 in __GI__dl_catch_exception (exception=0x8b7fe930, 
operate=0xb7f4a250 , args=0x8b7fe99c) at dl-error-skeleton.c:208
#13 0xb7e9f590 in __GI__dl_catch_error (objname=0xa06fbb0c, 
errstring=0xa06fbb10, mallocedp=0xa06fbb08,