You are not logged in.

#1 2018-05-31 06:23:30

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

[Solved] After update xorg-xdm crashing

Since xorg-server was upgraded from version 1.19.6+13+gd0d1a694f- to 1.20.0-2 I have been having problems with xrandr crashing when I try to mirror screens. As a temporary fix, I was downgrading the xorg-server.

While this was mildly irritating, it was something I could live with until a more permanent solution arrived. This morning however, a number of other xorg packages were upgraded and, because xorg crashes almost immediately after logging in, the problem has become much more serious

Note: I checked it was not due to the partial downgrade by not downgrading the xorg-server and logging in with the vanilla Arch kernel followed by my more usual linux-hardened-selinux and linux-hardened-apparmor kernels.

More generally, I am using openbox without a desktop environment and the full update log which caused the problems is the following

[2018-05-31 05:01] [PACMAN] Running 'pacman -Syu'
[2018-05-31 05:01] [PACMAN] synchronizing package lists
[2018-05-31 05:01] [PACMAN] starting full system upgrade
[2018-05-31 05:02] [ALPM] transaction started
[2018-05-31 05:02] [ALPM] upgraded boost-libs (1.66.0-2 -> 1.66.0-3)
[2018-05-31 05:02] [ALPM] upgraded xorg-setxkbmap (1.3.1-1 -> 1.3.1-2)
[2018-05-31 05:02] [ALPM] upgraded xorg-server (1.19.6+13+gd0d1a694f-2 -> 1.20.0-2)
[2018-05-31 05:02] [ALPM] upgraded openshadinglanguage (1.9.8-1 -> 1.9.9-1)
[2018-05-31 05:02] [ALPM] upgraded blender (17:2.79.b.git2.0385b33f-13 -> 17:2.79.b.git2.0385b33f-15)
[2018-05-31 05:02] [ALPM] upgraded convertlit (1.8-7 -> 1.8-8)
[2018-05-31 05:02] [ALPM] upgraded gts (0.7.6-3 -> 0.7.6-4)
[2018-05-31 05:02] [ALPM] upgraded idnkit (1.0-3 -> 1.0-4)
[2018-05-31 05:02] [ALPM] upgraded iftop (1.0pre4-2 -> 1.0pre4-3)
[2018-05-31 05:02] [ALPM] upgraded liblqr (0.4.2-1 -> 0.4.2-2)
[2018-05-31 05:02] [ALPM] upgraded libmagick (7.0.7.36-1 -> 7.0.7.37-1)
[2018-05-31 05:02] [ALPM] upgraded imagemagick (7.0.7.36-1 -> 7.0.7.37-1)
[2018-05-31 05:02] [ALPM] upgraded libdaemon (0.14-3 -> 0.14-4)
[2018-05-31 05:02] [ALPM] upgraded libieee1284 (0.2.11-5 -> 0.2.11-6)
[2018-05-31 05:02] [ALPM] upgraded libmp4v2 (2.0.0-4 -> 2.0.0-5)
[2018-05-31 05:02] [ALPM] upgraded libspiro (1:0.5.20150702-1 -> 1:0.5.20150702-2)
[2018-05-31 05:02] [ALPM] upgraded libtiger (0.3.4-4 -> 0.3.4-5)
[2018-05-31 05:02] [ALPM] upgraded xorg-font-util (1.3.1-1 -> 1.3.1-2)
[2018-05-31 05:02] [ALPM] upgraded xorg-font-utils (7.6-4 -> 7.6-5)
[2018-05-31 05:02] [ALPM] upgraded xorg-fonts-alias (1.0.3-1 -> 1.0.3-2)
[2018-05-31 05:02] [ALPM] upgraded xorg-fonts-encodings (1.0.4-4 -> 1.0.4-5)
[2018-05-31 05:02] [ALPM] upgraded xorg-xclock (1.0.7-1 -> 1.0.7-2)
[2018-05-31 05:02] [ALPM] upgraded xorg-xdm (1.1.11-6 -> 1.1.11-7)
[2018-05-31 05:02] [ALPM] transaction completed
[2018-05-31 05:02] [ALPM] running 'detect-old-perl-modules.hook'...
[2018-05-31 05:02] [ALPM] running 'fontconfig.hook'...
[2018-05-31 05:02] [ALPM] running 'gtk-update-icon-cache.hook'...
[2018-05-31 05:02] [ALPM] running 'systemd-daemon-reload.hook'...
[2018-05-31 05:02] [ALPM] running 'systemd-update.hook'...
[2018-05-31 05:02] [ALPM] running 'update-desktop-database.hook'...
[2018-05-31 05:02] [ALPM] running 'xorg-mkfontdir.hook'...
[2018-05-31 05:02] [ALPM] running 'zzz-relabel-selinux.hook'...
[2018-05-31 05:12]

As yet. I haven't had a chance to completely bisect the upgrade, but, as a first approximation, (after initially running the above update and downgrading the xorg-server,) to get my Arch box stable enough to run further tests, I had to run the following chroot from an Xubuntu usb.

xubuntu@xubuntu:~$  sudo /media/xubuntu/Arch/usr/bin/arch-chroot /media/xubuntu/Arch/
[root@xubuntu /]# pacman -U /var/cache/pacman/pkg/xorg-setxkbmap-1.3.1-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/xorg-font-util-1.3.1-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/xorg-font-utils-7.6-4-any.pkg.tar.xz /var/cache/pacman/pkg/xorg-fonts-alias-1.0.3-1-any.pkg.tar.xz /var/cache/pacman/pkg/xorg-fonts-encodings-1.0.4-4-any.pkg.tar.xz /var/cache/pacman/pkg/xorg-xclock-1.0.7-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/xorg-xdm-1.1.11-6-x86_64.pkg.tar.xz
loading packages...
warning: downgrading package xorg-setxkbmap (1.3.1-2 => 1.3.1-1)
warning: downgrading package xorg-font-util (1.3.1-2 => 1.3.1-1)
warning: downgrading package xorg-font-utils (7.6-5 => 7.6-4)
warning: downgrading package xorg-fonts-alias (1.0.3-2 => 1.0.3-1)
warning: downgrading package xorg-fonts-encodings (1.0.4-5 => 1.0.4-4)
warning: downgrading package xorg-xclock (1.0.7-2 => 1.0.7-1)
warning: downgrading package xorg-xdm (1.1.11-7 => 1.1.11-6)
resolving dependencies...
looking for conflicting packages...

Packages (7) xorg-font-util-1.3.1-1  xorg-font-utils-7.6-4
             xorg-fonts-alias-1.0.3-1  xorg-fonts-encodings-1.0.4-4
             xorg-setxkbmap-1.3.1-1  xorg-xclock-1.0.7-1  xorg-xdm-1.1.11-6

Total Installed Size:  1.42 MiB
Net Upgrade Size:      0.10 MiB

:: Proceed with installation? [Y/n] y
(7/7) checking keys in keyring                     [######################] 100%
(7/7) checking package integrity                   [######################] 100%
(7/7) loading package files                        [######################] 100%
(7/7) checking for file conflicts                  [######################] 100%
(7/7) checking available disk space                [######################] 100%
:: Processing package changes...
(1/7) downgrading xorg-setxkbmap                   [######################] 100%
(2/7) downgrading xorg-font-util                   [######################] 100%
(3/7) downgrading xorg-font-utils                  [######################] 100%
(4/7) downgrading xorg-fonts-alias                 [######################] 100%
(5/7) downgrading xorg-fonts-encodings             [######################] 100%
(6/7) downgrading xorg-xclock                      [######################] 100%
(7/7) downgrading xorg-xdm                         [######################] 100%
:: Running post-transaction hooks...
(1/5) Updating fontconfig cache...
(2/5) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/5) Arming ConditionNeedsUpdate...
(4/5) Updating X fontdir indices...
(5/5) SELinux: relabel installed files
[root@xubuntu /]# 

Is anyone else having this problem, or is it just me?
Irvine

Last edited by IrvineHimself (2018-06-01 14:45:28)


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#2 2018-05-31 07:11:37

benalexau
Member
Registered: 2013-10-10
Posts: 19

Re: [Solved] After update xorg-xdm crashing

It seems xorg-server 1.20 has issues with xrandr as per https://bbs.archlinux.org/viewtopic.php?id=237463. My 6 monitor setup with lightdm + i3 is also behaving oddly since that upgrade, working fine on 5 of the monitors but refusing to render the lightdm-gtk-greeter on monitor 3, or the i3-status bar on monitor 3, or render any windows on monitor 3. However the mouse pointer travels across monitor 3 just fine.

Update: The following downgrade corrected this issue:

sudo pacman -U /var/cache/pacman/pkg/xf86-video-ati-1:18.0.1-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/xorg-server-1.19.6-2-x86_64.pkg.tar.xz 

Last edited by benalexau (2018-06-02 07:00:24)

Offline

#3 2018-05-31 07:44:35

seth
Member
Registered: 2012-09-03
Posts: 51,945

Re: [Solved] After update xorg-xdm crashing

Did you check the backtrace in the xorg log?

Offline

#4 2018-05-31 15:03:14

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: [Solved] After update xorg-xdm crashing

Firstly, I appended all the logs into one large file and uploaded  it to my Google drive. The shareable link to the file is journalctl -b -2

For your convenience, I separated the log files by appropriate versions of:

##########################################################################################
###### Xorg.0.log of failed boot (copied before re-booting by using my Xubuntu usb) ######
##########################################################################################

Anyway,

seth wrote:

Did you check the backtrace in the xorg log?

Sorry, I am not sure what you mean by checking the backtrace. I reinstalled all the suspect Xorg packages and rebooted. After a few minutes, the system crashed and I booted into my Xubuntu usb and copied all the Xorg logs over to my Arch desktop folder.

After once again downgrading, I also took a look at journalctl -b -2. (I know from the linux-hardened-selinux part of the header that this is the correct boot.) From this, I get the impression that it wasn't actually a crash of xorg but something to do with:

May 31 13:58:24 mine polkitd[504]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.37, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)

As this small snippet shows, this is where it starts to fail; I am unable to log back in and, as a result, I have to hit the power off button.

May 31 13:58:24 mine audit[703]: SYSCALL arch=c000003e syscall=62 success=yes exit=0 a0=fffff792 a1=f a2=fffff792 a3=8 items=0 ppid=486 pid=703 auid=1001 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="xdm" exe="/usr/bin/xdm" subj=system_u:system_r:kernel_t key=(null)
May 31 13:58:24 mine audit: PROCTITLE proctitle=2D3A3020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020
May 31 13:58:24 mine polkitd[504]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.37, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
May 31 13:58:24 mine at-spi-bus-launcher[2258]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
May 31 13:58:24 mine at-spi-bus-launcher[2258]:       after 165 requests (165 known processed) with 0 events remaining.
May 31 13:58:24 mine pulseaudio[2354]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
May 31 13:58:24 mine pulseaudio[2354]:       after 12 requests (6 known processed) with 0 events remaining.
May 31 13:58:24 mine xfce4-notifyd[2857]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
May 31 13:58:24 mine systemd[2131]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
May 31 13:58:24 mine systemd[2131]: xfce4-notifyd.service: Failed with result 'exit-code'.
May 31 13:58:24 mine xdm[703]: pam_unix(xdm:session): session closed for user stupidme
May 31 13:58:24 mine audit[703]: USER_END pid=703 uid=0 auid=1001 ses=1 subj=system_u:system_r:kernel_t msg='op=PAM:session_close grantors=pam_selinux,pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_selinux,pam_mail,pam_systemd,pam_env,pam_gnome_keyring acct="stupidme" exe="/usr/bin/xdm" hostname=? addr=? terminal=:0 res=success'
May 31 13:58:24 mine systemd[2131]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
May 31 13:58:24 mine systemd[2131]: pulseaudio.service: Failed with result 'exit-code'.
May 31 13:58:24 mine audit[1]: USER_AVC pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t msg='avc:  denied  { stop } for auid=n/a uid=0 gid=0 path="/run/systemd/transient/session-1.scope" cmdline="/usr/lib/systemd/systemd-logind" scontext=system_u:system_r:kernel_t tcontext=system_u:object_r:systemd_unit_t tclass=service permissive=1
                                exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
May 31 13:58:24 mine systemd[2131]: pulseaudio.service: Service hold-off time over, scheduling restart.
May 31 13:58:24 mine systemd[2131]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
May 31 13:58:24 mine systemd[2131]: Stopped Sound Service.
May 31 13:58:24 mine systemd[2131]: Starting Sound Service...
May 31 13:58:24 mine rtkit-daemon[2355]: Successfully made thread 3497 of process 3497 (/usr/bin/pulseaudio) owned by '1001' high priority at nice level -11.
May 31 13:58:24 mine rtkit-daemon[2355]: Supervising 1 threads of 1 processes of 1 users.
May 31 13:58:24 mine pulseaudio[3497]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
May 31 13:58:24 mine rtkit-daemon[2355]: Supervising 1 threads of 1 processes of 1 users.
May 31 13:58:24 mine rtkit-daemon[2355]: Successfully made thread 3498 of process 3497 (/usr/bin/pulseaudio) owned by '1001' RT at priority 5.
May 31 13:58:24 mine rtkit-daemon[2355]: Supervising 2 threads of 1 processes of 1 users.
May 31 13:58:24 mine dbus-daemon[426]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.77" (uid=1001 pid=3497 comm="/usr/bin/pulseaudio --daemonize=no " label="system_u:system_r:kernel_t") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (bus)
May 31 13:58:24 mine systemd[2131]: Started Sound Service.
May 31 13:58:24 mine pulseaudio[3497]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.77" (uid=1001 pid=3497 comm="/usr/bin/pulseaudio --daemonize=no " label="system_u:system_r:kernel_t") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (bus)
May 31 13:58:24 mine systemd[1]: xdm-archlinux.service: Failed with result 'timeout'.
May 31 13:58:24 mine systemd[1]: Failed to start X-Window Display Manager.
May 31 13:58:24 mine audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t msg='unit=xdm-archlinux comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
May 31 13:58:24 mine systemd[1]: Reached target Graphical Interface.
May 31 13:58:24 mine systemd[1]: Startup finished in 1.915s (kernel) + 1min 34.113s (userspace) = 1min 36.028s.
May 31 13:58:25 mine audit[2839]: AVC avc:  denied  { dac_read_search } for  pid=2839 comm="firejail" capability=2  scontext=system_u:system_r:kernel_t tcontext=system_u:system_r:kernel_t tclass=cap_userns permissive=1
May 31 13:58:25 mine audit[2839]: AVC avc:  denied  { dac_override } for  pid=2839 comm="firejail" capability=1  scontext=system_u:system_r:kernel_t tcontext=system_u:system_r:kernel_t tclass=cap_userns permissive=1
May 31 13:58:25 mine audit[2839]: SYSCALL arch=c000003e syscall=87 success=no exit=-13 a0=e03761fb4a0 a1=5 a2=0 a3=e03761f9290 items=0 ppid=1 pid=2839 auid=1001 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none) ses=1 comm="firejail" exe="/usr/bin/firejail" subj=system_u:system_r:kernel_t key=(null)
May 31 13:58:25 mine audit: PROCTITLE proctitle=2F7573722F62696E2F666972656A61696C002F7573722F62696E2F636F6E6B79002D71002D63002F686F6D652F7374757069646D652F2E636F6E6669672F636F6E6B792F636F6E6B792D6F732D776561746865722D6E6577732E636F6E66
May 31 13:58:45 mine kernel: toshiba_acpi: Unknown event received 8e
May 31 13:58:45 mine systemd-logind[433]: Power key pressed.

Anyway, I am sure that just about everyone on these boards is better at reading logs than I am. So, if there are any problems with the shareable link, will you let me know

Last edited by IrvineHimself (2018-05-31 15:04:45)


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#5 2018-05-31 18:36:01

seth
Member
Registered: 2012-09-03
Posts: 51,945

Re: [Solved] After update xorg-xdm crashing

Xorg.8.log is old, Xorg.0.log is from this noon - but it doesn't look like a complete Xorg log and contains a bunch of xdm errors, please paste the actual file (preferably using eg. https://wiki.archlinux.org/index.php/Li … n_clients)
Also even that X log states that "Server terminated successfully (0). Closing log file.", so "xorg crashes almost immediately" is not supported by those logs (in case it had, the logs would usually contain a backtrace of the X server when segfaulting or aborting)

So maybe start by describing what you consider "crash" itr. - "system crashed" (like a halted kernel) doesn't seem to cut it either?

Also please clarify whether this also affects the vanilla kernel and in case continue the investigation on that to not further complicate the matter.

Offline

#6 2018-06-01 05:39:57

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: [Solved] After update xorg-xdm crashing

seth wrote:

....Also please clarify whether this also affects the vanilla kernel and in case continue the investigation on that to not further complicate the matter.

I am running a fairly major AppArmor project at the moment. So, when something like this happens, the very first thing I check is whether I have the same problem with the vanilla Arch kernel, followed by the SELinux kernel. Since it is good to leave no room for doubt, all further test will be on the Arch kernel.


seth wrote:

.....So maybe start by describing what you consider "crash" itr. - "system crashed" (like a halted kernel) doesn't seem to cut it either?....

The actual symptoms are:

  • Log in

  • Start the Opera web browser

  • Prepare to start whatever project I am working on, (currently AppArmor):

    • Retrieve sudo password

    • Possibly start Vlc media player

    • Usually  either:

      • Start a Terminal

      • Open Thunar

      • Open the Kate editor

  • By this point, I will have lost the graphical environment and  been kicked back to the terminal log-in prompt

    • Is it significant that Xdm  doesn't automatically launch?

When I tried immediately logging back in from the terminal:

  • Appears to log in successfully, but:

  • It doesn't appear to run .xinitrc

  • Manually running exec openbox-session kicks me back to the log-in prompt

This last, is the reason why I have been powering off; booting into the Xubuntu usb and creating a chroot.


seth wrote:

Xorg.8.log is old, Xorg.0.log is from this noon - but it doesn't look like a complete Xorg log and contains a bunch of xdm errors.....

Since I copied it directly after a crash without editing, that is something I do not understand. To avoid any uncertainty. I did a full update; moved all xorg/xdm logs into a backup folder and rebooted into the vanilla Arch kernel. I have pasted the resulting log to ptpb.pw, and, since it seems to be of interest, I also posted the xdm.log. The relevant urls are:

Looking at journalctl -b -1, once again, everything seems to go to the dogs when polkit complains about an Unregistered Authentication Agent. When I am successfully logged in, for example now, a search of journalctl -b for Unregistered is unsuccessful. Being frank, although I believe this to be significant, I am not certain on either how to interpret it, nor how to proceed.

Thanks for your help and interest
Irvine


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#7 2018-06-01 07:00:14

seth
Member
Registered: 2012-09-03
Posts: 51,945

Re: [Solved] After update xorg-xdm crashing

xdm-archlinux.service indeed fails to restart, apparently w/o leaving a log (the pasted one is 4-5 minutes older than the failure), please check the service status (should contain more errors)

However, the problem seems the process that keeps your session running (likely openbox-session?), please paste your .xinitrc
Also I'd suggest to make it run just an xterm and start "openbox-session" (do NOT! "exec" it) from that xterm. In case the latter crashes, you'll still be left w/ an xterm ;-)
Also check coredumpctl for recent crashes.

In case the stuff after

When I tried immediately logging back in from the terminal:

didn't include "and somehow started an X11 server", that's moot - .xinitrc is invoked by startx/xinit/xdm and openbox-session requires an X11 server.

Offline

#8 2018-06-01 08:09:26

rokidakota
Member
Registered: 2014-11-22
Posts: 34

Re: [Solved] After update xorg-xdm crashing

I was having the same: X would close after about one minute and drop me in a terminal. I downgraded xorg-xdm and now it behaves well.

$ ls -l xorg-xdm*
-rw-r--r-- 1 root root 102180 Nov  9  2015 xorg-xdm-1.1.11-6-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root 103848 May 31 05:16 xorg-xdm-1.1.11-7-x86_64.pkg.tar.xz
$ sudo pacman -U xorg-xdm-1.1.11-6-x86_64.pkg.tar.xz

Offline

#9 2018-06-01 11:56:38

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,982

Re: [Solved] After update xorg-xdm crashing

Looks like xorg-xdm may need patches to work with latest systemd
https://bbs.archlinux.org/viewtopic.php?id=237592

Last edited by Lone_Wolf (2018-06-01 11:56:48)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#10 2018-06-01 13:35:02

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: [Solved] After update xorg-xdm crashing

rokidakota wrote:

.... I downgraded xorg-xdm and now it behaves well ....

Thanks for that, I was intending to bisect the xorg upgrades this afternoon to see if I could narrow the list of suspects. In view of your of your post, I decided to test this package and can confirm this is the source of the 'crash' problem.

seth wrote:

.... please paste your .xinitrc .... Also check coredumpctl for recent crashes ....

.xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

# Commented out since I don't use them
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
#

## Added to start Xfce
#exec startxfce4

## Added to start Gnome
#exec gnome-session

## Added to start Kde Plasma
#exec startkde

 ### ### OPenbpox
# added to fix openbox font size
xrdb -merge ~/.Xresources
# start openbox
exec openbox-session

coredumpctl

TIME                            PID   UID   GID SIG COREFILE  EXE
Sat 2018-05-19 15:38:24 BST   27985 65534   190  11 missing   /usr/bin/exo-open
Sat 2018-05-19 15:40:02 BST   28798 65534   190  11 missing   /usr/bin/exo-open
Sat 2018-05-19 15:40:46 BST   29195 65534    10  11 missing   /usr/bin/exo-open
Mon 2018-05-28 13:58:12 BST   29959  1001  1001  11 missing   /usr/bin/xfce4-taskmanager
Tue 2018-05-29 05:51:39 BST   26783  1001  1001   6 missing   /usr/bin/digikam
Tue 2018-05-29 05:52:05 BST   27227  1001  1001   6 missing   /usr/bin/digikam
Tue 2018-05-29 05:52:19 BST   27439  1001  1001   6 missing   /usr/bin/digikam
Tue 2018-05-29 10:46:44 BST    2349  1001  1001  11 missing   /usr/bin/nm-applet
Tue 2018-05-29 10:47:10 BST    2637  1001  1001  11 missing   /usr/bin/nm-applet
Tue 2018-05-29 10:47:43 BST    3084  1001  1001  11 missing   /usr/bin/nm-applet
Tue 2018-05-29 10:51:11 BST    2359  1001  1001  11 missing   /usr/bin/nm-applet
Tue 2018-05-29 10:51:14 BST    2574  1001  1001  31 missing   /usr/bin/pulseaudio
Tue 2018-05-29 10:51:16 BST    2583  1001  1001  31 missing   /usr/bin/pulseaudio
Tue 2018-05-29 18:25:55 BST    2350  1001  1001  11 present   /usr/bin/nm-applet
Wed 2018-05-30 04:48:40 BST    2314  1001  1001  11 present   /usr/bin/nm-applet
Wed 2018-05-30 13:17:44 BST    2458  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:17:46 BST    2525  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:17:47 BST    2568  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:17:48 BST    2576  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:17:48 BST    2584  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:18:19 BST    2672  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:18:20 BST    2682  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:23:05 BST    2542  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:23:07 BST    2550  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:23:07 BST    2553  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 13:25:17 BST    2566  1001  1001  31 present   /usr/bin/pulseaudio
Wed 2018-05-30 14:00:58 BST   12140  1001  1001   6 present   /usr/bin/thunar
Wed 2018-05-30 19:42:03 BST   17786  1001  1001   6 present   /usr/lib/p7zip/7zFM
Wed 2018-05-30 19:43:22 BST   18107  1001  1001   6 present   /usr/lib/p7zip/7zFM
Thu 2018-05-31 05:10:38 BST    2441  1001  1001  31 present   /usr/bin/pulseaudio

There doesn't appear to be anything useful there, but.....

seth wrote:

.... Also I'd suggest to make it run just an xterm and start "openbox-session" (do NOT! "exec" it) from that xterm. In case the latter crashes, you'll still be left w/ an xterm ;-) ....

This is where it gets interesting. After logging back in from the terminal I took the opportunity to first run a few systemctl status checks. systemctl --type=service showed that only the xdm-archlinux.service had failed, and, in case it had useful information, I piped systemctl status xdm-archlinux.service to my Desktop folder.

● xdm-archlinux.service - X-Window Display Manager
   Loaded: loaded (/usr/lib/systemd/system/xdm-archlinux.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Fri 2018-06-01 12:29:03 BST; 6min ago
  Process: 673 ExecStart=/usr/bin/xdm -nodaemon -config /etc/X11/xdm/archlinux/xdm-config (code=exited, status=0/SUCCESS)
 Main PID: 673 (code=exited, status=0/SUCCESS)

Jun 01 12:25:47 mine systemd[1]: Starting X-Window Display Manager...
Jun 01 12:26:02 mine xdm[1050]: pam_unix(xdm:session): session opened for user stupidme by (uid=0)
Jun 01 12:29:03 mine systemd[1]: xdm-archlinux.service: Start operation timed out. Terminating.
Jun 01 12:29:03 mine systemd[1]: xdm-archlinux.service: Failed with result 'timeout'.
Jun 01 12:29:03 mine systemd[1]: Failed to start X-Window Display Manager.

As you suggested, I tried openbox-session without the exec. Unfortunately, it complained about the Display variable. To make sure I got it correct, I tried again while  piping the error to my Desktop folder

Openbox-Message: Failed to open the display from the DISPLAY environment variable.

So the next thing I tried was systemctl start xdm-archlinux.service. This worked; I got an xdm login screen and was able to launch a (new?) openbox-session which crashed shortly thereafter.

In case there was useful information to be gleaned, I once again ran systemctl status xdm-archlinux.service

● xdm-archlinux.service - X-Window Display Manager
   Loaded: loaded (/usr/lib/systemd/system/xdm-archlinux.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Fri 2018-06-01 12:37:47 BST; 2min 40s ago
  Process: 5040 ExecStart=/usr/bin/xdm -nodaemon -config /etc/X11/xdm/archlinux/xdm-config (code=exited, status=0/SUCCESS)
 Main PID: 5040 (code=exited, status=0/SUCCESS)

Jun 01 12:36:16 mine systemd[1]: Starting X-Window Display Manager...
Jun 01 12:36:32 mine xdm[5045]: pam_unix(xdm:session): session opened for user stupidme by (uid=0)
Jun 01 12:37:46 mine systemd[1]: xdm-archlinux.service: Start operation timed out. Terminating.
Jun 01 12:37:47 mine systemd[1]: xdm-archlinux.service: Failed with result 'timeout'.
Jun 01 12:37:47 mine systemd[1]: Failed to start X-Window Display Manager.

Finally, to make sure I got everything useful from the session, I piped journalctl -xe to my Desktop folder. This is to big to post here, so I have pasted it to ptb

In view of the mounting evidence that this is almost certainly a problem with the xorg-xdm update, I am going to change the title of the post.

Additionally, All the information I have gathered is here, and if people wish to continue I am quite prepared to do so. On the other hand, given @Lone_Wolf's link, if you feel this is a duplicated/wasted effort, I quite understand

Thanks again for your help
Irvine


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#11 2018-06-01 14:09:58

loqs
Member
Registered: 2014-03-06
Posts: 17,502

Re: [Solved] After update xorg-xdm crashing

If you try the xorg-xdm patch first that should be a quick test.

Offline

#12 2018-06-01 14:44:33

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: [Solved] After update xorg-xdm crashing

I just did that, and it seems to be working. I posted a thank you and am going to mark this as solved.

Thanks again
Irvine


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

Board footer

Powered by FluxBB