XOrg in Debian10/Buster not usable with AMD Duron / Matrox G400

Markus Hiereth post at hiereth.de
Sun Aug 4 08:11:37 UTC 2019


Hello Marius, Adam and Xorg-Team,

for Marius: 
with some delay, I noticed Your hint to create debugging packages in
Debian. I Think I compiled the X server and the mga module successfully,
but I doubt whether the files are installed correctly. E.g. the dates of
the binaries are not in accordance with the compilation and in the case
of the binary /usr xorg-compilation See Section 1 below:

for Adam:
In Section 2 below, there is the output of and invocation of Xorg
through gdb on a remote computer 

Best regards
Markus

-----------------------------------------------------------------------------------------------------------------------------------------------
Section 1
-----------------------------------------------------------------------------------------------------------------------------------------------

Created Packages with Debugging-Information:
  hiereth at lune:~$ ls -l /home/hiereth/archiv/burn/software/built/deb-dbgsym/*
  -rw-r--r-- 1 hiereth users  5524772 Aug  2 20:20 /home/hiereth/archiv/software/built/deb-dbgsym/xdmx-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users   213608 Aug  2 20:20 /home/hiereth/archiv/software/built/deb-dbgsym/xdmx-tools-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users  4096636 Aug  2 20:20 /home/hiereth/archiv/software/built/deb-dbgsym/xnest-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users  7660064 Aug  2 20:21 /home/hiereth/archiv/software/built/deb-dbgsym/xserver-xephyr-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users 10481176 Aug  2 20:19 /home/hiereth/archiv/software/built/deb-dbgsym/xserver-xorg-core-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users     9024 Aug  2 20:22 /home/hiereth/archiv/software/built/deb-dbgsym/xserver-xorg-legacy-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users   498720 Aug  2 20:31 /home/hiereth/archiv/software/built/deb-dbgsym/xserver-xorg-video-mga-dbgsym_2.0.0-1_i386.deb
  -rw-r--r-- 1 hiereth users  4985344 Aug  2 20:21 /home/hiereth/archiv/software/built/deb-dbgsym/xvfb-dbgsym_1.20.4-1_i386.deb
  -rw-r--r-- 1 hiereth users  7322820 Aug  2 20:22 /home/hiereth/archiv/software/built/deb-dbgsym/xwayland-dbgsym_1.20.4-1_i386.deb

Check whether these packages have been installed:

  root at lune:/home/hiereth# apt install /home/hiereth/archiv/software/built/deb-dbgsym/xserver-xorg-core-dbgsym_1.20.4-1_i386.deb 
  Paketlisten werden gelesen... 0%Paketlisten werden gelesen... 0%Paketlisten werden gelesen... Fertig
  Abhängigkeitsbaum wird aufgebaut.... 0%Abhängigkeitsbaum wird aufgebaut.... 0%Abhängigkeitsbaum wird aufgebaut.... 0%Abhängigkeitsbaum wird aufgebaut.... 50%Abhängigkeitsbaum wird aufgebaut.... 50%Abhängigkeitsbaum wird aufgebaut.... 78%Abhängigkeitsbaum wird aufgebaut.       
  Statusinformationen werden eingelesen.... 0%Statusinformationen werden eingelesen.... 0%Statusinformationen werden eingelesen.... Fertig
  Hinweis: »xserver-xorg-core-dbgsym« wird an Stelle von »/home/hiereth/archiv/software/built/deb-dbgsym/xserver-xorg-core-dbgsym_1.20.4-1_i386.deb« gewählt.
  xserver-xorg-core-dbgsym ist schon die neueste Version (2:1.20.4-1).
  0 aktualisiert, 0 neu installiert, 0 zu entfernen und 47 nicht aktualisiert.

  root at lune:/home/hiereth# apt install /home/hiereth/archiv/software/built/deb-dbgsym/xorg-video-mga-dbgsym_2.0.0-1_i386.deb 
  Paketlisten werden gelesen... 0%Paketlisten werden gelesen... 0%Paketlisten werden gelesen... Fertig
  Abhängigkeitsbaum wird aufgebaut.... 0%Abhängigkeitsbaum wird aufgebaut.... 0%Abhängigkeitsbaum wird aufgebaut.... 0%Abhängigkeitsbaum wird aufgebaut.... 50%Abhängigkeitsbaum wird aufgebaut.... 50%Abhängigkeitsbaum wird aufgebaut.       
  Statusinformationen werden eingelesen.... 0%Statusinformationen werden eingelesen.... 0%Statusinformationen werden eingelesen.... Fertig
  Hinweis: »xserver-xorg-video-mga-dbgsym« wird an Stelle von »/home/hiereth/archiv/software/built/deb-dbgsym/xserver-xorg-video-mga-dbgsym_2.0.0-1_i386.deb« gewählt.
  xserver-xorg-video-mga-dbgsym ist schon die neueste Version (1:2.0.0-1).
  0 aktualisiert, 0 neu installiert, 0 zu entfernen und 47 nicht aktualisiert.

Check whether installed binarys have debugging information (as recommended in debian wiki):

  root at lune:/home/hiereth# file /usr/lib/xorg/Xorg 
  /usr/lib/xorg/Xorg: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=a4d93c3aed64f8a3bdae2d63ea1661f3c4e672f7, stripped


Checking the date of this binaries:
  root at lune:/home/hiereth# ls -l /lib/xorg/Xorg 
  -rwxr-xr-x 1 root root 2610544 Mär  5 21:11 /usr/lib/xorg/Xorg
  ls -l /lib/modules/4.19.0-5-686-pae/kernel/drivers/gpu/drm/mga*/*
  /lib/modules/4.19.0-5-686-pae/kernel/drivers/gpu/drm/mga:
  insgesamt 36
  -rw-r--r-- 1 root root 35808 Jun 20 00:16 mga.ko
  /lib/modules/4.19.0-5-686-pae/kernel/drivers/gpu/drm/mgag200:
  insgesamt 60
  -rw-r--r-- 1 root root 57164 Jun 20 00:16 mgag200.ko


Check whether the modules contain debug information:

root at lune:/home/hiereth# file /lib/modules/4.19.0-5-686-pae/kernel/drivers/gpu/drm/mga*/mga*
  /lib/modules/4.19.0-5-686-pae/kernel/drivers/gpu/drm/mgag200/mgag200.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), BuildID[sha1]=3bee7ec45fbd83800d91a6706c7ecd11e89d7437, not stripped
  /lib/modules/4.19.0-5-686-pae/kernel/drivers/gpu/drm/mga/mga.ko:         ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), BuildID[sha1]=51afa2ec33bdefb7c972c153b28754533bdd76af, not stripped


Looking for debugging package content elsewhere:
  root at lune:/home/hiereth# ls -a /usr/lib/debug/.build-id/
  insgesamt 64
  drwxr-xr-x 16 root root 4096 Aug  3 14:13 .
  drwxr-xr-x  4 root root 4096 Aug  2 21:53 ..
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 03
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 0c
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 17
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 3e
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 60
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 92
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 96
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 97
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 98
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 9a
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 a2
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 d5
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 e8
  drwxr-xr-x  2 root root 4096 Aug  3 14:13 f5
  


-----------------------------------------------------------------------------------------------------------------------------------------------
Section 2
-----------------------------------------------------------------------------------------------------------------------------------------------

Debugging information recieved: 

root at lune:/home/hiereth# gdb -batch -n -ex 'set pagination off' -ex run -ex bt -ex 'bt full' -ex 'thread apply all bt full' /usr/lib/xorg/Xorg
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-8-amd64 i686 Debian
Current Operating System: Linux lune 4.19.0-5-686-pae #1 SMP Debian 4.19.37-5 (2019-06-19) i686
Kernel command line: BOOT_IMAGE=/vmlinuz-4.19.0-5-686-pae root=/dev/sda7
Build Date: 05 March 2019  08:11:12PM
xorg-server 2:1.20.4-1 (https://www.debian.org/support) 
Current version of pixman: 0.36.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug  4 09:30:40 2019
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xf86TokenToOptinfo: table is NULL
xf86TokenToOptinfo: table is NULL
error setting MTRR (base = 0x00000000dc000000, size = 0x02000000, type = 1) Invalid argument (22)
error setting MTRR (base = 0x00000000dc000000, size = 0x01000000, type = 1) Invalid argument (22)
[Detaching after fork from child process 9556]
[Detaching after fork from child process 9558]
[New Thread 0xb0ddbb40 (LWP 9560)]

Thread 1 "Xorg" received signal SIGSEGV, Segmentation fault.
0xc0000000 in ?? ()
#0  0xc0000000 in ?? ()
#1  0x0056f5a6 in DRIBlockHandler ()
#2  0x00447a6b in BlockHandler ()
#3  0x005a4062 in WaitForSomething ()
#4  0x00442aad in ?? ()
#5  0x0044709e in ?? ()
#6  0x004303cb in ?? ()
#7  0xb7915b41 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#8  0x00430411 in _start ()
#0  0xc0000000 in ?? ()
No symbol table info available.
#1  0x0056f5a6 in DRIBlockHandler ()
No symbol table info available.
#2  0x00447a6b in BlockHandler ()
No symbol table info available.
#3  0x005a4062 in WaitForSomething ()
No symbol table info available.
#4  0x00442aad in ?? ()
No symbol table info available.
#5  0x0044709e in ?? ()
No symbol table info available.
#6  0x004303cb in ?? ()
No symbol table info available.
#7  0xb7915b41 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#8  0x00430411 in _start ()
No symbol table info available.

 
Thread 2 (Thread 0xb0ddbb40 (LWP 9560)):
#0  0xb7fd4d71 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb79f5b03 in epoll_wait () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#2  0x005ab718 in ?? ()
No symbol table info available.
#3  0x005a8d2d in ?? ()
No symbol table info available.
#4  0xb7adffd2 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0xb79f56d6 in clone () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.


Thread 1 (Thread 0xb769ed00 (LWP 9552)):
#0  0xc0000000 in ?? ()
No symbol table info available.
#1  0x0056f5a6 in DRIBlockHandler ()
No symbol table info available.
#2  0x00447a6b in BlockHandler ()
No symbol table info available.
#3  0x005a4062 in WaitForSomething ()
No symbol table info available.
#4  0x00442aad in ?? ()
No symbol table info available.
#5  0x0044709e in ?? ()
No symbol table info available.
#6  0x004303cb in ?? ()
No symbol table info available.
#7  0xb7915b41 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#8  0x00430411 in _start ()
No symbol table info available.



More information about the xorg mailing list