Bug#1111301: libpciaccess0: X server crashes due to a NULL dereference in libcpiaccess
Package: libpciaccess0
Version: 0.17-3
Severity: important
Dear Maintainer,
When my laptop (an Amilo PRO v1505 with an Intel i945GM) enters into
the sleep mode, my X session irrevocably dies.
I tested with the 0.18.1-2 package from experimental, but no changes.
So, the full stack trace I have is:
--8<--
[ 8496.646] (EE) 0: /usr/lib/xorg/Xorg (OsSigHandler+0x32) [0x5ed2c2]
[ 8496.648] (EE) 1: linux-gate.so.1 (?+0x0) [0xb7f7b590]
[ 8496.649] (EE) 2: /lib/i386-linux-gnu/libpciaccess.so.0 (pci_device_vgaarb_set_target+0xf3) [0xb7e06eb3]
[ 8496.659] (EE) 3: /usr/lib/xorg/Xorg (xf86VGAarbiterLock+0x2b) [0x4c698b]
[ 8496.660] (EE) 4: /usr/lib/xorg/Xorg (xf86DPMS+0x49) [0x4a8f49]
[ 8496.669] (EE) 5: /usr/lib/xorg/Xorg (DPMSSet+0x75) [0x520e95]
[ 8496.670] (EE) 6: /usr/lib/xorg/Xorg (ProcDPMSDispatch+0xe6) [0x521006]
[ 8496.672] (EE) 7: /usr/lib/xorg/Xorg (Dispatch+0x320) [0x468290]
[ 8496.673] (EE) 8: /usr/lib/xorg/Xorg (dix_main+0x40c) [0x46c72c]
[ 8496.674] (EE) 9: /usr/lib/xorg/Xorg (main+0x2a) [0x4543fa]
[ 8496.707] (EE) 10: /lib/i386-linux-gnu/libc.so.6 (__libc_start_call_main+0x73) [0xb7865cc3]
[ 8496.709] (EE) 11: /lib/i386-linux-gnu/libc.so.6 (__libc_start_main_alias_2+0x88) [0xb7865d88]
[ 8496.710] (EE) 12: /usr/lib/xorg/Xorg (_start+0x27) [0x454437]
-->8--
I reported the crash upstream there: https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/issues/25
A discussion about this bug already exists on the Gento's forum: https://forums.gentoo.org/viewtopic-p-8867902.html?sid=37950ce7f4d179beea90fcea37a115b3
And a quickfix is provided: https://forums.gentoo.org/viewtopic-p-8866089.html?sid=c40295a8e3fbf454f9b965ffcc84e519#8866089
The real problem's origin surely lies elsewhere but this patch prevents the segfault and does not seems to break the session locking and my screen is still turned off as usual.
Best Regards
Rémi Hérilier
-- System Information:
Debian Release: 13.0
APT prefers stable
APT policy: (900, 'stable'), (500, 'stable-debug'), (90, 'unstable')
Architecture: i386 (i686)
Foreign Architectures: amd64
Kernel: Linux 6.10.6-686 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libpciaccess0 depends on:
ii libc6 2.41-12
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
libpciaccess0 recommends no packages.
Versions of packages libpciaccess0 suggests:
ii pciutils 1:3.13.0-2
-- no debconf information
Reply to: