Bug 1232786 - gdm crash: xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
Summary: gdm crash: xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: 22
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-17 13:21 UTC by Daniel Peess
Modified: 2016-01-14 13:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-14 13:25:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Xorg.0.log (1.98 KB, application/x-gzip)
2015-06-17 13:21 UTC, Daniel Peess
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 751308 0 None None None Never

Description Daniel Peess 2015-06-17 13:21:44 UTC
Created attachment 1039948 [details]
Xorg.0.log

Description of problem:

gdm crashes right after showing up in the boot sequence.
if manually started afterwards in the command line it works fine.

Version-Release number of selected component (if applicable):

all f22 updates as of 2015-06-17:

$ rpm -qa | grep -i 'gdm\|systemd\|xorg-x11-server' | sort;
gdm-3.16.1.1-1.fc22.x86_64
pulseaudio-gdm-hooks-6.0-2.fc22.x86_64
rpm-plugin-systemd-inhibit-4.12.0.1-9.fc22.x86_64
systemd-219-18.fc22.x86_64
systemd-compat-libs-219-18.fc22.x86_64
systemd-libs-219-18.fc22.x86_64
systemd-python-219-18.fc22.x86_64
systemd-python3-219-18.fc22.x86_64
xorg-x11-server-Xorg-1.17.1-14.fc22.x86_64
xorg-x11-server-Xwayland-1.17.1-14.fc22.x86_64
xorg-x11-server-common-1.17.1-14.fc22.x86_64
xorg-x11-server-utils-7.7-15.fc22.x86_64

$ cat /proc/cmdline;
BOOT_IMAGE=/vmlinuz-4.0.4-303.fc22.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rd.luks.uuid=xxxxxxx rhgb quiet


How reproducible:

reboot system, wait for gdm to show up, 1 second later it crashes.
maybe hardware dependent:
lenovo thinkpad t450s, Intel Core i7-5600U,
switching to inteldrmfb from EFI VGA.


$ systemctl status 'gdm';
* gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2015-06-16 12:27:54 CEST; 2min 8s ago
 Main PID: 1018 (gdm)
   CGroup: /system.slice/gdm.service
           `-1018 /usr/sbin/gdm

Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Unable to kill session worker process
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Child process 6150 was already dead.
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Unable to kill session worker process
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Could not start command '/usr/libexec/gdm-session-worker': Too many open files
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: GLib: g_child_watch_add_full: assertion 'pid > 0' failed
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Child process -6163 was already dead.
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Child process 6159 was already dead.
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Unable to kill session worker process
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Child process 6159 was already dead.
Jun 16 12:28:32 nazgul.tolkien gdm[1018]: Unable to kill session worker process


$ journalctl --all | less;
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (II) modesetting: Driver for Modesetting Kernel Drivers: kms
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (II) FBDEV: driver for framebuffer: fbdev
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (II) VESA: driver for VESA chipsets: vesa
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE)
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: Fatal server error:
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE)
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE)
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: Please consult the Fedora Project support
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: at http://wiki.x.org
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: for help.
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE) Please also check the log file at "/var/lib/gdm/.local/share/xorg/Xorg.0.log" for additional information.
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE)
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (WW) xf86CloseConsole: KDSETMODE failed: Operation not permitted
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (WW) xf86CloseConsole: VT_SETMODE failed: Operation not permitted
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE)
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: FatalError re-entered, aborting
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE) xf86CloseConsole: VT_ACTIVATE failed: Operation not permitted
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: (EE)
Jun 16 12:35:08 nazgul.tolkien audit[1493]: <audit-1701> auid=4294967295 uid=42 gid=42 ses=4294967295 subj=system_u:system_r:xserver_t:s0-s0:c0.c1023 pid=1493 comm="Xorg" exe="/usr/libexec/Xorg" sig=6
Jun 16 12:35:08 nazgul.tolkien gnome-session[1148]: could not connect to wayland server
Jun 16 12:35:08 nazgul.tolkien gnome-session[1148]: (EE)
Jun 16 12:35:08 nazgul.tolkien gnome-session[1148]: Fatal server error:
Jun 16 12:35:08 nazgul.tolkien gnome-session[1148]: (EE) Couldn't add screen
Jun 16 12:35:08 nazgul.tolkien gnome-session[1148]: (EE)
Jun 16 12:35:08 nazgul.tolkien /usr/libexec/gdm-x-session[1491]: Unable to run X server
Jun 16 12:35:08 nazgul.tolkien gdm-launch-environment][1483]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Jun 16 12:35:08 nazgul.tolkien audit[1483]: <audit-1106> pid=1483 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="gdm" exe="/usr/libexec/gdm-session-worker" hostname=? addr=? terminal=/dev/tty1 res=success'
Jun 16 12:35:08 nazgul.tolkien audit[1483]: <audit-1104> pid=1483 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_permit acct="gdm" exe="/usr/libexec/gdm-session-worker" hostname=? addr=? terminal=/dev/tty1 res=success'
Jun 16 12:35:08 nazgul.tolkien gdm[985]: Child process -1491 was already dead.
Jun 16 12:35:08 nazgul.tolkien gdm[985]: Child process 1483 was already dead.
Jun 16 12:35:08 nazgul.tolkien gdm[985]: Unable to kill session worker process
Jun 16 12:35:08 nazgul.tolkien gdm[985]: Child process 1483 was already dead.
Jun 16 12:35:08 nazgul.tolkien gdm[985]: Unable to kill session worker process
Jun 16 12:35:08 nazgul.tolkien systemd-logind[937]: Removed session c2.
...

$ tail -n20 '/var/lib/gdm/.local/share/xorg/Xorg.0.log';
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    54.209] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[    54.210] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[    54.210] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[    54.210] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    54.210] (II) FBDEV: driver for framebuffer: fbdev
[    54.210] (II) VESA: driver for VESA chipsets: vesa
[    54.210] (EE) 
Fatal server error:
[    54.210] (EE) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
[    54.210] (EE) 
[    54.210] (EE) 
Please consult the Fedora Project support 
         at http://wiki.x.org
 for help. 
[    54.210] (EE) Please also check the log file at "/var/lib/gdm/.local/share/xorg/Xorg.0.log" for additional information.
[    54.210] (EE)

Comment 1 Milan Bouchet-Valat 2015-06-22 08:17:49 UTC
I'm experiencing the same bug with an up-to-date F22 (Intel i915 driver, FWIW). I've found the same report against Arch: 
https://bugs.archlinux.org/task/44588

That report indicated that downgrading to GDM 3.16.0.1 fixes the problem. So I built that version on Koji, and indeed that fixes it.

If you want to install it, it's available from here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=10175976

Comment 2 Milan Bouchet-Valat 2016-01-14 13:25:56 UTC
In my case, this bug came from a .rpmnew D-Bus file under /etc which I didn't take into account (see upstream report for details). Tentatively closing, but please reopen if you still experience it.


Note You need to log in before you can comment on or make changes to this bug.