Bug#955747: libgl1-mesa-dri: all GL programms crash on startup

2020-04-04 Thread Bernhard Übelacker
Hello Felix Rublack,
I do not know if the maintainer are able to reproduce this issue,
but instead or additional to the strace a backtrace of the crash
might help them. The easiest way might be to install systemd-coredump
and look at "journalctl -e" after a crash. More info in [1].
(Even better with debug symbols installed.)

Nevertheless the segfault lines in dmesg lead to
following locations in iris_dri.so:

mpv/vo:
  function iris_resource_bo called from function stream_state:

https://sources.debian.org/src/mesa/20.0.2-1/src/gallium/drivers/iris/iris_resource.h/#L290

https://sources.debian.org/src/mesa/20.0.2-1/src/gallium/drivers/iris/iris_blorp.c/#L60
   until L63

vlc:
glxgears:
  function GEN9_3DSTATE_VERTEX_ELEMENTS_pack called from iris_blorp_exec:
file src/intel/genxml/gen9_pack.h, line 6901. (unfortunately a generated 
file?)
maybe related to 
https://sources.debian.org/src/mesa/20.0.2-1/src/intel/blorp/blorp_genX_exec.h/#L550

Kind regards,
Bernhard

[1] https://wiki.debian.org/HowToGetABacktrace

From submitter:

[   37.001269] mpv/vo[1739]: segfault at a0 ip 7fe5d34a62a8 sp 
7fe5e6092de0 error 4 in iris_dri.so[7fe5d2a8d000+d2e000]
[   37.001276] Code: 44 24 18 48 c7 44 24 10 00 00 00 00 48 c7 44 24 18 00 00 
00 00 50 4c 8d 4c 24 18 e8 e2 a4 b6 ff 48 8b 44 24 18 31 d2 48 89 ef <4c> 8b b0 
a0 00 00 00 4c 89 f6 e8 09 94 fd ff 48 8b bd 28 01 00 00

[   46.41] vlc[1778]: segfault at 24 ip 7fcc272a4c06 sp 
7fcbf9e01c50 error 6 in iris_dri.so[7fcc2688b000+d2e000]
[   46.420006] Code: 7e 30 44 01 ff 81 ff ff ff 00 00 0f 87 ab 17 00 00 49 01 
c7 4c 89 7e 38 48 85 c0 0f 84 2c 02 00 00 83 ea 01 81 ca 00 00 09 78 <89> 10 48 
8d 50 04 45 85 ed 74 74 41 8d 75 ff 48 8d 74 f0 0c 66 0f

[   57.343120] glxgears[1785]: segfault at 24 ip 7f4a1467ec06 sp 
7ffd2389b2f0 error 6 in iris_dri.so[7f4a13c65000+d2e000]
[   57.343126] Code: 7e 30 44 01 ff 81 ff ff ff 00 00 0f 87 ab 17 00 00 49 01 
c7 4c 89 7e 38 48 85 c0 0f 84 2c 02 00 00 83 ea 01 81 ca 00 00 09 78 <89> 10 48 
8d 50 04 45 85 ed 74 74 41 8d 75 ff 48 8d 74 f0 0c 66 0f


https://wiki.debian.org/InterpretingKernelOutputAtProcessCrash


"error 4"   ==   0: no page found, 0: read access,  1: user-mode access
"error 6"   ==   0: no page found, 1: write access, 1: user-mode access



echo -n "find /b ..., ..., 0x" && \
> echo "44 24 18 48 c7 44 24 10 00 00 00 00 48 c7 44 24 18 00 00 00 00 50 4c 8d 
> 4c 24 18 e8 e2 a4 b6 ff 48 8b 44 24 18 31 d2 48 89 ef <4c> 8b b0 a0 00 00 00 
> 4c 89 f6 e8 09 94 fd ff 48 8b bd 28 01 00 00" \
>  | sed 's/[<>]//g' | sed 's/ /, 0x/g'
find /b ..., ..., 0x44, 0x24, 0x18, 0x48, 0xc7, 0x44, 0x24, 0x10, 0x00, 0x00, 
0x00, 0x00, 0x48, 0xc7, 0x44, 0x24, 0x18, 0x00, 0x00, 0x00, 0x00, 0x50, 0x4c, 
0x8d, 0x4c, 0x24, 0x18, 0xe8, 0xe2, 0xa4, 0xb6, 0xff, 0x48, 0x8b, 0x44, 0x24, 
0x18, 0x31, 0xd2, 0x48, 0x89, 0xef, 0x4c, 0x8b, 0xb0, 0xa0, 0x00, 0x00, 0x00, 
0x4c, 0x89, 0xf6, 0xe8, 0x09, 0x94, 0xfd, 0xff, 0x48, 0x8b, 0xbd, 0x28, 0x01, 
0x00, 0x00


$ echo -n "find /b ..., ..., 0x" && \
> echo "7e 30 44 01 ff 81 ff ff ff 00 00 0f 87 ab 17 00 00 49 01 c7 4c 89 7e 38 
> 48 85 c0 0f 84 2c 02 00 00 83 ea 01 81 ca 00 00 09 78 <89> 10 48 8d 50 04 45 
> 85 ed 74 74 41 8d 75 ff 48 8d 74 f0 0c 66 0f" \
>  | sed 's/[<>]//g' | sed 's/ /, 0x/g'
find /b ..., ..., 0x7e, 0x30, 0x44, 0x01, 0xff, 0x81, 0xff, 0xff, 0xff, 0x00, 
0x00, 0x0f, 0x87, 0xab, 0x17, 0x00, 0x00, 0x49, 0x01, 0xc7, 0x4c, 0x89, 0x7e, 
0x38, 0x48, 0x85, 0xc0, 0x0f, 0x84, 0x2c, 0x02, 0x00, 0x00, 0x83, 0xea, 0x01, 
0x81, 0xca, 0x00, 0x00, 0x09, 0x78, 0x89, 0x10, 0x48, 0x8d, 0x50, 0x04, 0x45, 
0x85, 0xed, 0x74, 0x74, 0x41, 0x8d, 0x75, 0xff, 0x48, 0x8d, 0x74, 0xf0, 0x0c, 
0x66, 0x0f






# Unstable amd64 qemu VM 2020-04-04

apt update
apt dist-upgrade


apt install systemd-coredump sddm xserver-xorg openbox xterm gdb mesa-utils 
mesa-utils-dbgsym libgl1-mesa-dri-dbgsym


gdb -q
set width 0
set pagination off
file /usr/bin/glxgears
b main
set environment LD_PRELOAD=/usr/lib/x86_64-linux-gnu/dri/iris_dri.so
run
dele 1
info share
find ...
b * (... + 42)
info b






$ gdb -q
(gdb) set width 0
(gdb) set pagination off
(gdb) file /usr/bin/glxgears
Reading symbols from /usr/bin/glxgears...
Reading symbols from 
/usr/lib/debug/.build-id/40/dc623a2c150d26c9229676fba7f45a49aed7d7.debug...
(gdb) b main
Breakpoint 1 at 0x2410: file glxgears.c, line 723.
(gdb) set environment LD_PRELOAD=/usr/lib/x86_64-linux-gnu/dri/iris_dri.so
(gdb) run
Starting program: /usr/bin/glxgears 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 1, main (argc=1, argv=0x7fffe608) at glxgears.c:723
723 glxgears.c: Datei oder Verzeichnis nicht gefunden.
(gdb) dele 1
(gdb) info share
FromTo  Syms Read   Shared Object Library
...
0x76a5e010  0x77788b1e  Yes 
/usr/lib/x86_64-linux-gnu/dri/iris_dri.so
...
(*): Shared library is missing de

Bug#955747: libgl1-mesa-dri: all GL programms crash on startup

2020-04-04 Thread Timo Aaltonen
Felix Rublack kirjoitti 4.4.2020 klo 16.57:
> Package: libgl1-mesa-dri
> Version: 20.0.2-1
> Severity: normal
> 
> Dear Maintainer,
> 
> after upgrading libgl1-mesa-dri from 19.3.3-1 to 20.0.2-1 all programms using 
> GL crash on startup. It affects even the simple ones like glxgears and 
> glxdemo. In strace it looks like an endless loop until a resource exhaustion 
> occures. I attach the output of dmesg and strace from glxdemo.

Try uninstalling the -intel driver?



Bug#955747: libgl1-mesa-dri: all GL programms crash on startup

2020-04-04 Thread Felix Rublack
Am 04.04.20 um 21:20 schrieb Timo Aaltonen:
> Felix Rublack kirjoitti 4.4.2020 klo 16.57:
>> Package: libgl1-mesa-dri
>> Version: 20.0.2-1
>> Severity: normal
>>
>> Dear Maintainer,
>>
>> after upgrading libgl1-mesa-dri from 19.3.3-1 to 20.0.2-1 all programms 
>> using GL crash on startup. It affects even the simple ones like glxgears and 
>> glxdemo. In strace it looks like an endless loop until a resource exhaustion 
>> occures. I attach the output of dmesg and strace from glxdemo.
> 
> Try uninstalling the -intel driver?
> 

I tried this and the bug does not occur when using the modeset (is this
the right name?) driver. But i think, i'm not the only user of the intel
driver.

Greetings
Felix Rublack



Processed (with 1 error): title

2020-04-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> retitle 955747 libgl1-mesa-dri: all GL programms crash on startup when
Bug #955747 [libgl1-mesa-dri] libgl1-mesa-dri: all GL programms crash on startup
Changed Bug title to 'libgl1-mesa-dri: all GL programms crash on startup when' 
from 'libgl1-mesa-dri: all GL programms crash on startup'.
> using the intel driver
Unknown command or malformed arguments to command.
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
955747: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955747
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#955651: libinput: FTBFS: /<>/obj-x86_64-linux-gnu/meson-private/tmpwq1q3syj/testfile.c:4:12: error: #error "Header 'xlocale.h' could not be found"

2020-04-04 Thread Sven Joachim
Control: reassign -1 libwacom-dev 1.3-1
Control: fixed -1 libwacom/1.3-2

On 2020-04-03 21:37 +0200, Lucas Nussbaum wrote:

> Source: libinput
> Version: 1.15.4-1
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20200402 ftbfs-bullseye
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
> Relevant part (hopefully):
>> [...]
>> Run-time dependency libwacom found: NO
>>
>> ../meson.build:140:1: ERROR: Could not generate cargs for libwacom:
>> Package gudev-1.0 was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `gudev-1.0.pc'
>> to the PKG_CONFIG_PATH environment variable
>> Package 'gudev-1.0', required by 'libwacom', not found

That happened because libwacom-dev lacked a dependency on
libgudev-1.0-dev.  This has been fixed in the latest libwacom upload,
and I have just successfully built libinput in a sid chroot.

Cheers,
   Sven



Processed: Re: Bug#955651: libinput: FTBFS: /<>/obj-x86_64-linux-gnu/meson-private/tmpwq1q3syj/testfile.c:4:12: error: #error "Header 'xlocale.h' could not be found"

2020-04-04 Thread Debian Bug Tracking System
Processing control commands:

> reassign -1 libwacom-dev 1.3-1
Bug #955651 [src:libinput] libinput: FTBFS: 
/<>/obj-x86_64-linux-gnu/meson-private/tmpwq1q3syj/testfile.c:4:12:
 error: #error "Header 'xlocale.h' could not be found"
Bug reassigned from package 'src:libinput' to 'libwacom-dev'.
No longer marked as found in versions libinput/1.15.4-1.
Ignoring request to alter fixed versions of bug #955651 to the same values 
previously set
Bug #955651 [libwacom-dev] libinput: FTBFS: 
/<>/obj-x86_64-linux-gnu/meson-private/tmpwq1q3syj/testfile.c:4:12:
 error: #error "Header 'xlocale.h' could not be found"
Marked as found in versions libwacom/1.3-1.
> fixed -1 libwacom/1.3-2
Bug #955651 [libwacom-dev] libinput: FTBFS: 
/<>/obj-x86_64-linux-gnu/meson-private/tmpwq1q3syj/testfile.c:4:12:
 error: #error "Header 'xlocale.h' could not be found"
Marked as fixed in versions libwacom/1.3-2.

-- 
955651: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955651
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems