You are not logged in.

#1 2020-10-15 08:10:56

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

seg fault in X causing lightdm to not autologin?

TLDR:

It seems the lightdm autologin fails because the X server just crashed with a segfault at address 0x0 (?)
Question is how do i solve this? It's rather inconsistent. And it seems to happen less often if i close all applications before shutting down. 

Full version:
Hi lads,

I am struggling for a long time now with a autologin that sometimes works, and sometimes does not. I am using LightDM in order to get it to work and the config is not to hard. I assume you all believe that i configured that one correctly as it mostly works but here it is:

[Seat:*]
autologin-user:me111
autologin-session=xfce

additionally:

#$ cat /etc/group | grep autologin
autologin:x:973:me111

If i check the lightdm log for what's going wrong, i will have to present the log of the one that results in a login prompt (failed autologin)

from lightdm.log:

...
[+0.16s] DEBUG: XServer 0: Launching X Server
[+0.16s] DEBUG: Launching process 523: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.16s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.16s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.16s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.46s] DEBUG: Process 523 terminated with signal 6
[+0.46s] DEBUG: XServer 0: X server stopped
[+0.46s] DEBUG: Releasing VT 7
[+0.46s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.46s] DEBUG: Seat seat0: Display server stopped
[+0.46s] DEBUG: Seat seat0: Stopping session

...

You can see that X just sh|ts itself. (sorry mod sire) so if i check the Xorg logs from the failed attempt it's sort of clear why:

Xorg.0.log.old

[     3.985] 
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[     3.985] Build Operating System: Linux Arch Linux
[     3.985] Current Operating System: Linux leno 5.4.70-1-lts #1 SMP Wed, 07 Oct 2020 23:54:51 +0000 x86_64
[     3.985] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=0dca9317-1800-416d-bd3c-9288c4960d8f rw loglevel=3
[     3.985] Build Date: 02 September 2020  06:17:44AM
[     3.985]  
[     3.985] Current version of pixman: 0.40.0
[     3.985] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     3.985] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     3.985] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 15 09:46:38 2020
[     3.986] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     3.986] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     3.987] (==) No Layout section.  Using the first Screen section.
[     3.987] (==) No screen section available. Using defaults.
[     3.987] (**) |-->Screen "Default Screen Section" (0)
[     3.987] (**) |   |-->Monitor "<default monitor>"
[     3.987] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     3.987] (==) Automatically adding devices
[     3.987] (==) Automatically enabling devices
[     3.987] (==) Automatically adding GPU devices
[     3.987] (==) Automatically binding GPU devices
[     3.987] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     3.988] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     3.988] 	Entry deleted from font path.
[     3.988] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     3.988] 	Entry deleted from font path.
[     3.988] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     3.988] 	Entry deleted from font path.
[     3.988] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     3.988] 	Entry deleted from font path.
[     3.988] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     3.988] 	Entry deleted from font path.
[     3.988] (==) FontPath set to:
	/usr/share/fonts/TTF
[     3.988] (==) ModulePath set to "/usr/lib/xorg/modules"
[     3.988] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     3.988] (II) Module ABI versions:
[     3.988] 	X.Org ANSI C Emulation: 0.4
[     3.988] 	X.Org Video Driver: 24.1
[     3.988] 	X.Org XInput driver : 24.1
[     3.988] 	X.Org Server Extension : 10.0
[     3.988] (++) using VT number 7

[     3.988] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     3.989] (II) xfree86: Adding drm device (/dev/dri/card1)
[     3.989] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[     3.989] (II) xfree86: Adding drm device (/dev/dri/card0)
[     3.989] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[     3.994] (EE) 
[     3.994] (EE) Backtrace:
[     3.994] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x53) [0x56339a05abd3]
[     3.994] (EE) 1: /usr/lib/Xorg (0x563399f14000+0x151a15) [0x56339a065a15]
[     3.994] (EE) 2: /usr/lib/libc.so.6 (0x7fb540fad000+0x3d6a0) [0x7fb540fea6a0]
[     3.994] (EE) 3: /usr/lib/Xorg (xf86BusProbe+0x1c2) [0x56339a06fe32]
[     3.994] (EE) 4: /usr/lib/Xorg (InitOutput+0xeaa) [0x56339a08144a]
[     3.994] (EE) 5: /usr/lib/Xorg (0x563399f14000+0x39426) [0x563399f4d426]
[     3.994] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7fb540fd5152]
[     3.994] (EE) 7: /usr/lib/Xorg (_start+0x2e) [0x563399f4e5ae]
[     3.994] (EE) 
[     3.994] (EE) Segmentation fault at address 0x0
[     3.994] (EE) 
Fatal server error:
[     3.994] (EE) Caught signal 11 (Segmentation fault). Server aborting
[     3.994] (EE) 
[     3.994] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[     3.994] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     3.994] (EE) 
[     3.994] (EE) Server terminated with error (1). Closing log file.

Any suggestions on how to start fighting this problem?

Offline

#2 2020-10-15 08:47:17

seth
Member
Registered: 2012-09-03
Posts: 52,545

Offline

#3 2020-10-15 09:06:13

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: seg fault in X causing lightdm to not autologin?

Ohh if that is really it i should be ashamed. Solution on the wiki of the subject. I guess you made the deduction based on device /sys/devices/pci0000:00/0000:00:02.0/drm/card0 ? Good call, that is indeed the:
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)

Edit:
However Seth, your post does not seem to be the solution. Still seggfault after adding:
/etc/lightdm/lightdm.conf

[LightDM]
logind-check-graphical=true

the logfile still give segg fault after in xorg:

[     3.972] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[     3.972] (II) xfree86: Adding drm device (/dev/dri/card0) 
[     3.972] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0 
[     3.976] (EE) 
[     3.976] (EE) Backtrace:
[     3.976] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x53) [0x55e10f7c9bd3]
[     3.976] (EE) 1: /usr/lib/Xorg (0x55e10f683000+0x151a15) [0x55e10f7d4a15]
[     3.976] (EE) 2: /usr/lib/libc.so.6 (0x7feb2fc89000+0x3d6a0) [0x7feb2fcc66a0]
[     3.977] (EE) 3: /usr/lib/Xorg (xf86BusProbe+0x1c2) [0x55e10f7dee32]
[     3.977] (EE) 4: /usr/lib/Xorg (InitOutput+0xeaa) [0x55e10f7f044a]
[     3.977] (EE) 5: /usr/lib/Xorg (0x55e10f683000+0x39426) [0x55e10f6bc426]
[     3.977] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7feb2fcb1152]
[     3.977] (EE) 7: /usr/lib/Xorg (_start+0x2e) [0x55e10f6bd5ae]
[     3.977] (EE)
[     3.977] (EE) Segmentation fault at address 0x0
[     3.977] (EE)
Fatal server error:
[     3.977] (EE) Caught signal 11 (Segmentation fault). Server aborting
[     3.977] (EE)
[     3.977] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[     3.977] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     3.977] (EE)
[     3.977] (EE) Server terminated with error (1). Closing log file.

Must agree, it aught to have something to do with graphics...

Last edited by BottleNeck (2020-10-15 11:45:17)

Offline

#4 2020-10-15 11:53:06

seth
Member
Registered: 2012-09-03
Posts: 52,545

Re: seg fault in X causing lightdm to not autologin?

My next best guess would be https://wiki.archlinux.org/index.php/Ke … _KMS_start

Since this seems to be an optimus/hybrid system, do you deactivate either chip in the BIOS or via ACPI call / bbswitch (while the latter would likely only affect the nvidia chip)
Mandatory read: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

Offline

#5 2020-10-15 12:36:51

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: seg fault in X causing lightdm to not autologin?

That link would have taken me some time to figgure out. Thanks.

After a few reboots, that seems to be it. In combination with the earlyer tip, as that one does no harm either! Let me try a few more reboots prior to marking it solved.  Thanks so far!

************* Edit ***********
nope, no luck. Still segment fault. stil on device 02.0 I think the fequency is a fraction of what it was. So i it's in this direction. Perhaps it is simply because of the "new" video card (1650) not sure if it is suported by nvidia driver.

This is asuming the intel chip is actuarly on the nvidia board.. Not sure about that. If this is the case perhaps

https://wiki.archlinux.org/index.php/NVIDIA :if you want to ensure it's loaded at the earliest possible occasion, or are noticing startup issues you can add nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs according to Mkinitcpio#MODULES.

would be usefull?

In reply to your question:

do you deactivate either chip in the BIOS or via ACPI call / bbswitch (while the latter would likely only affect the nvidia chip)
Mandatory read: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

I dont think any chip is deactivated. I used prime offloading. https://wiki.archlinux.org/index.php/PR … er_offload. Not a lot of info regarding xorg there. Other than the xorg config but that is a different section.

Last edited by BottleNeck (2020-10-15 20:03:46)

Offline

#6 2020-10-15 20:10:24

seth
Member
Registered: 2012-09-03
Posts: 52,545

Re: seg fault in X causing lightdm to not autologin?

Is the error still exactly the same or did it move to 0000:00:01.0 probing?

Offline

#7 2020-10-15 20:27:01

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: seg fault in X causing lightdm to not autologin?

seth wrote:

Is the error still exactly the same or did it move to 0000:00:01.0 probing?

Same error, tho technically, It seems to probe both cards.  Could it be we also need to preload Nvidia stuff?


$ cat /var/log/Xorg.0.log.old 
[     4.222] 
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[     4.222] Build Operating System: Linux Arch Linux
[     4.222] Current Operating System: Linux leno 5.4.71-1-lts #1 SMP Wed, 14 Oct 2020 16:39:16 +0000 x86_64
[     4.222] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=0dca9317-1800-416d-bd3c-9288c4960d8f rw loglevel=3
[     4.222] Build Date: 02 September 2020  06:17:44AM
[     4.222]  
[     4.222] Current version of pixman: 0.40.0
[     4.222] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     4.222] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     4.223] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 15 22:28:03 2020
[     4.224] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     4.226] (==) No Layout section.  Using the first Screen section.
[     4.226] (==) No screen section available. Using defaults.
[     4.226] (**) |-->Screen "Default Screen Section" (0)
[     4.226] (**) |   |-->Monitor "<default monitor>"
[     4.226] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[     4.226] (**) |   |-->Device "iGPU"
[     4.226] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     4.226] (==) Automatically adding devices
[     4.226] (==) Automatically enabling devices
[     4.226] (==) Automatically adding GPU devices
[     4.226] (==) Automatically binding GPU devices
[     4.226] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     4.226] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     4.226] 	Entry deleted from font path.
[     4.226] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     4.226] 	Entry deleted from font path.
[     4.226] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     4.226] 	Entry deleted from font path.
[     4.226] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     4.226] 	Entry deleted from font path.
[     4.226] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     4.226] 	Entry deleted from font path.
[     4.226] (==) FontPath set to:
	/usr/share/fonts/TTF
[     4.226] (==) ModulePath set to "/usr/lib/xorg/modules"
[     4.226] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     4.226] (II) Module ABI versions:
[     4.226] 	X.Org ANSI C Emulation: 0.4
[     4.226] 	X.Org Video Driver: 24.1
[     4.226] 	X.Org XInput driver : 24.1
[     4.226] 	X.Org Server Extension : 10.0
[     4.227] (++) using VT number 7

[     4.227] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     4.228] (II) xfree86: Adding drm device (/dev/dri/card1)
[     4.228] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[     4.228] (II) xfree86: Adding drm device (/dev/dri/card0)
[     4.228] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[     4.236] (EE) 
[     4.236] (EE) Backtrace:
[     4.236] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x53) [0x5650baf9dbd3]
[     4.236] (EE) 1: /usr/lib/Xorg (0x5650bae57000+0x151a15) [0x5650bafa8a15]
[     4.236] (EE) 2: /usr/lib/libc.so.6 (0x7fed67cb5000+0x3d6a0) [0x7fed67cf26a0]
[     4.236] (EE) 3: /usr/lib/Xorg (xf86BusProbe+0x1c2) [0x5650bafb2e32]
[     4.236] (EE) 4: /usr/lib/Xorg (InitOutput+0xeaa) [0x5650bafc444a]
[     4.236] (EE) 5: /usr/lib/Xorg (0x5650bae57000+0x39426) [0x5650bae90426]
[     4.236] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7fed67cdd152]
[     4.236] (EE) 7: /usr/lib/Xorg (_start+0x2e) [0x5650bae915ae]
[     4.236] (EE) 
[     4.236] (EE) Segmentation fault at address 0x0
[     4.236] (EE) 
Fatal server error:
[     4.236] (EE) Caught signal 11 (Segmentation fault). Server aborting
[     4.236] (EE) 
[     4.236] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org

Last edited by BottleNeck (2020-10-15 20:57:48)

Offline

#8 2020-12-02 13:17:55

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: seg fault in X causing lightdm to not autologin?

https://wiki.archlinux.org/index.php/NVIDIA :if you want to ensure it's loaded at the earliest possible occasion, or are noticing startup issues you can add nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs according to Mkinitcpio#MODULES.

this seems to have solved it i am guessing the chip has some interlinking with the Nvidia. When all nvidia drivers have been loaded, the intel graphics does not seem to misbehave. I will edit this post if the situation with segfault does show up again as it is rather hard to be sure with one segfault so many reboots.

If this conclusion is not appreciated, sorry for necro-bump.

Offline

#9 2020-12-02 16:09:14

seth
Member
Registered: 2012-09-03
Posts: 52,545

Re: seg fault in X causing lightdm to not autologin?

Sorry, missed your last post.
There's also https://bugs.archlinux.org/task/67831

Offline

#10 2020-12-02 16:18:13

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

Re: seg fault in X causing lightdm to not autologin?

Edit:
Misread previous posts the segfault was fixed in  xorg-server 1.20.9.r21.g5c400cae1-2

Last edited by loqs (2020-12-02 16:19:54)

Offline

#11 2020-12-03 10:00:21

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: seg fault in X causing lightdm to not autologin?

Seth, thanks for your reply. I see your name so often lurking here, really appreciated.

To clear up for whomever might find this post with google, the problem has existed for me for a long time. I think therefor it was not the bug that you indicated. I believe strongly (assuming it's gone now for good) that it has to do with the graphics cards.

i run on a Lenovo Y540. I think the segfault has started (not sure) the moment i went to distributed graphics. My guess is that there is some kind of hardware dependency for the intel graphics chip to run. Perhaps it's integrated into the 1650 that is in here. So the KMS solution that you offered worked like a charm. However, i also needed to preload the modules for Nvidia!

Hope this information will one day help someone out. Thanks again Seth!

Offline

Board footer

Powered by FluxBB