FS#72799 - [xorg-server] 21.1.1-2 update causes random crashes

Attached to Project: Arch Linux
Opened by zjeffer (zjeffer) - Saturday, 20 November 2021, 19:40 GMT
Last edited by freswa (frederik) - Tuesday, 08 February 2022, 11:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Sven-Hendrik Haase (Svenstaro)
Laurent Carlier (lordheavy)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:


Since the last couple of days, Xorg crashes about once a day, completely at random. When it crashes, my monitors turn black and a couple seconds afterwards LightDM's login manager pops up.

Strangely, two of the crashes happened when watching videos on reddit, both when something very loud and high-pitched suddenly happened. The crash happens either right when the loud noise happens, or right when I quickly lower my volume using my mouse buttons. I'm always using headphones, connected to the 3.5mm port (Beyerdynamic DT 770 Pro 80 Ohm).
Other crashes seem to be random. I haven't had any crashes happen when the monitors weren't plugged in, but I haven't used my laptop that way much lately.

Looking at `journalctl`, the crash always happen right after these ACPI jack/videoout and jack/lineout lines:

Nov 20 11:16:00 zjeffer root[251860]: ACPI group/action undefined: jack/lineout / LINEOUT
Nov 20 11:16:00 zjeffer root[251862]: ACPI group/action undefined: jack/videoout / VIDEOOUT

Full output of `journalctl -b` attached. You can see the full backtrace there, just match up the timestamps from the above 2 lines.

These ACPI videoout and lineout lines seem to pop up quite often, but they don't always cause a crash. I don't think I've ever seen them before until this week, and I've had this laptop since July.

Additional info:
* Arch 5.15.2, using bspwm, Nvidia proprietary driver version 495.44-9.
* xorg-server version 21.1.1-3
* My system is a Lenovo Legion 5 Pro with Ryzen 7 5800H, RTX 3070 Mobile and 16GB RAM.
* I'm using two external monitors: one connected to HDMI, one to a USB-C output.
This task depends upon

Closed by  freswa (frederik)
Tuesday, 08 February 2022, 11:32 GMT
Reason for closing:  Upstream
Comment by zjeffer (zjeffer) - Sunday, 21 November 2021, 10:24 GMT
Here's a thread with some more info, including some others who have the same problem: https://bbs.archlinux.org/viewtopic.php?id=271450

Interestingly, only I seem to get the ACPI lines when the crash happens.
Comment by zjeffer (zjeffer) - Sunday, 28 November 2021, 10:43 GMT
It crashed again, here are the journalctl logs from that day and the xorg log from that session.
Comment by Eric Biggers (Synchronicity) - Sunday, 05 December 2021, 03:51 GMT
FYI, I think this is probably the upstream bug "Out of bounds memory read in ActivateGrabNoDelivery() in 21.1.1" (https://gitlab.freedesktop.org/xorg/xserver/-/issues/1253). The symptoms are basically that Xorg crashes when using a keyboard shortcut (maybe it can happen in other cases too, but that is one), and Xorg.log shows XkbHandleActions() in the backtrace and "Segmentation fault at address XYZ" where XYZ is a value that ends in three zeroes.
Comment by Eric Biggers (Synchronicity) - Monday, 07 February 2022, 14:08 GMT
https://gitlab.freedesktop.org/xorg/xser ver/-/merge_requests/809 isn't included in the latest Arch Linux package for xorg-server (21.1.2-2). Additionally, that merge request didn't actually fix the bug, as mentioned at https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/809#note_1201564.
Comment by Andreas Radke (AndyRTR) - Tuesday, 08 February 2022, 10:17 GMT
The MR#809 has gone into xorg-server 21.1.3 release. There's not much we can do right now at distro level.

So I suggest to closed this one as "upstream" either Xorg or Nvidia caused.

Loading...