Generating xorg.conf with nvidia-xconfig as root crashes GDM at startup
Submitted by Cosmin Polifronie
Link to original bug (#795724)
Description
Created attachment 371582 Archive with the configuration files and journalctl outputs
Overview: generating /etc/X11/xorg.conf using nvidia-xconfig 390.48 as root crashes GDM 3.28.1 at startup
Steps to Reproduce: 1) install nvidia package on Arch Linux as root on a fresh install (/etc/X11/xorg.conf shouldn't exist) 2) execute nvidia-xconfig as root 3) reboot the system
Actual Results: GDM crashes and hangs the tty
Expected Results: GDM starts correctly
Build Date & Hardware: 2018-04-18 Gnome 3.28.1 Arch Linux / Lenovo Y520-15IKBN - NVIDIA GeForce 1050 Ti
Additional Information: the /etc/X11/xorg.conf file seems to be generated correctly if there is info in there already (I have made some settings to enable NVIDIA Optimus following the steps in the Arch Linux Wiki page). I have attached the crash journalctl, as well as the 2 xorg.conf files: the one that crashes GDM and the one that doesn't (before and after generation).
I can't reproduce this anymore, but the first time I got this crash I got a segfault (journal-initial). After that, I got only the second part (journal-second).
Attachment 371582, "Archive with the configuration files and journalctl outputs":
gdm-bug-report.7z
Version: 3.28.x