You are not logged in.

#1 2023-06-15 06:12:58

ought
Member
Registered: 2016-06-04
Posts: 39

Xorg core dump when upgrading packages

Frequently, when I upgrade packages via pacman -Syu, I'm thrown out to the login screen. When I look at the logs in the journalctl, it says something like this:

июн 15 09:05:05 oughtlinuxdesktop systemd[1]: Reloading requested from client PID 7095 (unit session-1.scope)...
июн 15 09:05:05 oughtlinuxdesktop systemd[1]: Reloading...
июн 15 09:05:05 oughtlinuxdesktop systemd[1]: Reloading finished in 273 ms.
июн 15 09:05:05 oughtlinuxdesktop systemd-udevd[410]: /etc/udev/rules.d/51-trezor.rules:11 Unknown group 'plugdev', ignoring
июн 15 09:05:05 oughtlinuxdesktop systemd-udevd[410]: /etc/udev/rules.d/51-trezor.rules:12 Unknown group 'plugdev', ignoring
июн 15 09:05:05 oughtlinuxdesktop systemd-udevd[410]: /etc/udev/rules.d/51-trezor.rules:15 Unknown group 'plugdev', ignoring
июн 15 09:05:05 oughtlinuxdesktop systemd-udevd[410]: /etc/udev/rules.d/51-trezor.rules:16 Unknown group 'plugdev', ignoring
июн 15 09:05:05 oughtlinuxdesktop systemd-udevd[410]: /etc/udev/rules.d/51-trezor.rules:17 Unknown group 'plugdev', ignoring
июн 15 09:05:05 oughtlinuxdesktop systemd[873]: Reached target Sound Card.
июн 15 09:05:05 oughtlinuxdesktop systemd[873]: Reached target Bluetooth.
июн 15 09:05:05 oughtlinuxdesktop systemd-logind[724]: Watching system buttons on /dev/input/event2 (Power Button)
июн 15 09:05:05 oughtlinuxdesktop systemd-logind[724]: Watching system buttons on /dev/input/event1 (Power Button)
июн 15 09:05:05 oughtlinuxdesktop systemd-logind[724]: Watching system buttons on /dev/input/event0 (Sleep Button)
июн 15 09:05:05 oughtlinuxdesktop systemd-logind[724]: Watching system buttons on /dev/input/event5 (A4TECH USB Device Keyboard)
июн 15 09:05:05 oughtlinuxdesktop systemd-logind[724]: Watching system buttons on /dev/input/event4 (Logitech Gaming Mouse G502 Keyboard)
июн 15 09:05:06 oughtlinuxdesktop systemd[1]: Created slice Slice /system/systemd-coredump.
июн 15 09:05:06 oughtlinuxdesktop systemd[1]: Started Process Core Dump (PID 7248/UID 0).
июн 15 09:05:06 oughtlinuxdesktop systemd-coredump[7249]: [?] Process 804 (Xorg) of user 0 dumped core.
                                                             
                                                             Stack trace of thread 843:
                                                             #0  0x00007fdbae006573 n/a (libX11.so.6 + 0xc4573)
                                                             ELF object binary architecture: AMD x86-64
июн 15 09:05:06 oughtlinuxdesktop systemd[1]: systemd-coredump@0-7248-0.service: Deactivated successfully.
июн 15 09:05:06 oughtlinuxdesktop at-spi-bus-launcher[958]: X connection to :0 broken (explicit kill or server shutdown).
июн 15 09:05:06 oughtlinuxdesktop xdg-desktop-portal-kde[1691]: The X11 connection broke (error 1). Did the X11 server die?
июн 15 09:05:06 oughtlinuxdesktop polkitd[1093]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.39, object path />
июн 15 09:05:06 oughtlinuxdesktop lxdm-session[871]: pam_unix(lxdm:session): session closed for user ought
июн 15 09:05:06 oughtlinuxdesktop systemd[1]: tmp-.mount_jetbraYDNXwR.mount: Deactivated successfully.
июн 15 09:05:06 oughtlinuxdesktop systemd[1]: tmp-.mount_Raider6vw6e0.mount: Deactivated successfully.
июн 15 09:05:06 oughtlinuxdesktop systemd-logind[724]: Session 1 logged out. Waiting for processes to exit.
июн 15 09:05:07 oughtlinuxdesktop systemd[1]: session-1.scope: Deactivated successfully.
июн 15 09:05:07 oughtlinuxdesktop systemd[1]: session-1.scope: Consumed 4min 14.318s CPU time.
июн 15 09:05:07 oughtlinuxdesktop systemd-logind[724]: Removed session 1.

This happens only when I upgrade packages. If nessesary, I can provide some other logs or something like that. Please, help me! =-)

Last edited by ought (2023-06-15 06:13:51)

Offline

#2 2023-06-15 06:33:10

SimonJ
Member
From: Alicante, Spain
Registered: 2021-05-11
Posts: 302
Website

Re: Xorg core dump when upgrading packages

See here, https://bbs.archlinux.org/viewtopic.php?id=286408 and https://bugs.archlinux.org/task/77789 I am testing the fix linked there and so far, no dump

Last edited by SimonJ (2023-06-15 06:33:42)


Rlu: 222126

Offline

#3 2023-06-15 06:40:46

ought
Member
Registered: 2016-06-04
Posts: 39

Re: Xorg core dump when upgrading packages

Thanks for the info! Which fix do you use? The --settle one?

Offline

#4 2023-06-15 07:08:03

SimonJ
Member
From: Alicante, Spain
Registered: 2021-05-11
Posts: 302
Website

Re: Xorg core dump when upgrading packages

I have edited /usr/share/libalpm/hooks/30-systemd-udev-reload.hook

[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib/udev/rules.d/*

[Action]
Description = Reloading device manager configuration...
When = PostTransaction
Exec =
#/usr/share/libalpm/scripts/systemd-hook udev-reload

comment the exec line

Last edited by SimonJ (2023-06-15 07:08:26)


Rlu: 222126

Offline

#5 2023-06-15 07:29:19

ought
Member
Registered: 2016-06-04
Posts: 39

Re: Xorg core dump when upgrading packages

Thank you, will try it!

Offline

#6 2023-06-15 08:09:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,074

Re: Xorg core dump when upgrading packages

You shouldn't comment the exec line, but adjust /usr/share/libalpm/scripts/systemd-hook and comment the

udevadm trigger
udevadm settle

lines so that the potentially necessary reload of new rules can properly happen, while not triggering a mostly unnecessary reload of everything.

FWIW the Xorg coredump is mostly due to having bogus evdev configuration flying around you probably want to get rid of

grep -R evdev /{etc,usr/share}/X11/xorg.conf.d*

some remnants of that in a /usr/share/X11/xorg.conf.d/10-quirks.conf is normal, any other file likely superfluous and wrong/unnecessary.

Last edited by V1del (2023-06-15 08:25:20)

Offline

#7 2023-06-15 08:15:43

ought
Member
Registered: 2016-06-04
Posts: 39

Re: Xorg core dump when upgrading packages

Got it, thanks!

Offline

#8 2023-10-02 03:55:00

csyezheng
Member
Registered: 2023-10-02
Posts: 1

Re: Xorg core dump when upgrading packages

Based on the code in /usr/share/libalpm/scripts/systemd-hook

    if [ ! -e /etc/systemd/do-not-udevadm-trigger-on-update ]; then
      /usr/bin/udevadm trigger -c change
      /usr/bin/udevadm settle
    fi

maybe creating a file to skip the triggering of evdev would be a better approach

/etc/systemd/do-not-udevadm-trigger-on-update

Offline

#9 2023-10-03 07:52:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,074

Re: Xorg core dump when upgrading packages

That solution was added in the latest new revision of the systemd package and not present when this first appeared. So yes it's a "better" solution now, but it's ultimately doing the same thing.

Offline

Board footer

Powered by FluxBB