Bug 1397838 - X Server crashes randomly
Summary: X Server crashes randomly
Keywords:
Status: CLOSED DUPLICATE of bug 1384486
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-intel
Version: 25
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 12:41 UTC by Michal Špondr
Modified: 2017-01-26 08:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-26 08:16:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output of gnome-abrt of the crash (7.75 MB, application/octet-stream)
2016-12-06 10:19 UTC, Michal Špondr
no flags Details
Output of intel_reg_dumper (17.62 KB, text/plain)
2016-12-06 11:14 UTC, Michal Špondr
no flags Details
Output of intel_reg_snapshot (2.03 MB, application/octet-stream)
2016-12-06 11:16 UTC, Michal Špondr
no flags Details

Description Michal Špondr 2016-11-23 12:41:18 UTC
Description of problem:
X Server crashes randomly and returns me back to gdm login screen. I am using window manages i3, all packages are updated to latest Fedora 25 version.

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

How reproducible:
Can't reproduce, it's random

Actual results:
X Server crashes

Expected results:
X Server does not crash randomly


Additional info:
/var/log/messages when the crash happened:

Nov 23 13:05:14 localhost audit: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:xserver_t:s0-s0:c0.c1023 pid=2202 comm
="InputThread" exe="/usr/libexec/Xorg" sig=11
Nov 23 13:05:14 localhost abrt-hook-ccpp: Process 2192 (Xorg) of user 1000 killed by SIGSEGV - dumping core
Nov 23 13:05:14 localhost journal: firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Nov 23 13:05:14 localhost journal: gnome-terminal-server: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Nov 23 13:05:14 localhost /usr/libexec/gdm-x-session: [../../i3-4.13/i3bar/src/xcb.c:1074] ERROR: X11 connection was closed unexpectedly - maybe your X server terminated / crashed?
Nov 23 13:05:14 localhost at-spi-bus-launcher: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Nov 23 13:05:14 localhost at-spi-bus-launcher:      after 4627 requests (4627 known processed) with 0 events remaining.
Nov 23 13:05:14 localhost /usr/libexec/gdm-x-session: [libi3] ../../i3-4.13/libi3/font.c Using X font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
Nov 23 13:05:14 localhost systemd: gnome-terminal-server.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 13:05:14 localhost /usr/libexec/gdm-x-session: i3: Cannot open display
Nov 23 13:05:14 localhost systemd: gnome-terminal-server.service: Unit entered failed state.
Nov 23 13:05:14 localhost systemd: gnome-terminal-server.service: Failed with result 'exit-code'.
Nov 23 13:05:15 localhost /usr/libexec/gdm-x-session: Exiting due to signal.
Nov 23 13:05:15 localhost abrt-server: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26-primary
Nov 23 13:05:15 localhost abrt-server: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-27-primary
Nov 23 13:05:15 localhost abrt-server: Deleting problem directory ccpp-2016-11-23-13:05:14-2192 (dup of ccpp-2016-11-23-10:59:08-2215)
Nov 23 13:05:15 localhost dbus-daemon[998]: [system] Activating service name='org.freedesktop.problems' requested by ':1.60' (uid=0 pid=4614 comm="/usr/bin/python3 /usr/bin/abrt-action-notify -d /v" label="system_u:system_r:abrt_t:s0-s0:c0.c1023") (using servicehelper)
Nov 23 13:05:15 localhost dbus-daemon[998]: [system] Successfully activated service 'org.freedesktop.problems'
Nov 23 13:05:16 localhost audit: USER_END pid=2158 uid=0 auid=1000 ses=2 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_selinux,pam_loginuid,pam_selinux,pam_keyinit,pam_namespace,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_gnome_keyring acct="michal" exe="/usr/libexec/gdm-session-worker" hostname=? addr=? terminal=/dev/tty2 res=success'
Nov 23 13:05:16 localhost audit: USER_LOGOUT pid=2158 uid=0 auid=1000 ses=2 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='uid=1000 exe="/usr/libexec/gdm-session-worker" hostname=? addr=? terminal=? res=success'
Nov 23 13:05:16 localhost audit: CRED_DISP pid=2158 uid=0 auid=1000 ses=2 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_unix,pam_gnome_keyring acct="michal" exe="/usr/libexec/gdm-session-worker" hostname=? addr=? terminal=/dev/tty2 res=success'
Nov 23 13:05:16 localhost systemd-logind: Removed session 2.
Nov 23 13:05:16 localhost systemd: Stopping User Manager for UID 1000...
Nov 23 13:05:16 localhost systemd: Stopping Accessibility services bus...
Nov 23 13:05:16 localhost systemd: Stopping Virtual filesystem service...
Nov 23 13:05:16 localhost systemd: Stopping D-Bus User Message Bus...




/var/log/audit.log contains this:
type=ANOM_ABEND msg=audit(1479895148.296:316): auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:xserver_t:s0-s0:c0.c1023 pid=2225 c
omm="InputThread" exe="/usr/libexec/Xorg" sig=11

Comment 1 Michal Špondr 2016-11-23 16:05:35 UTC
Ah, the most important /var/log/Xorg.0.log:

[195330.930] (EE) Backtrace:
[195330.934] (EE) 0: /usr/libexec/Xorg (?+0x0) [0x59ae80]
[195330.935] (EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x7f3bb7130b1f]
[195330.936] (EE) 2: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0xaa38) [0x7f3bb1d3c1a8]
[195330.937] (EE) 3: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0xbe27) [0x7f3bb1d3e9a7]
[195330.938] (EE) 4: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x149ad) [0x7f3bb1d4fffd]
[195330.938] (EE) 5: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x66e79) [0x7f3bb1df49e9]
[195330.939] (EE) 6: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x6904a) [0x7f3bb1df853a]
[195330.940] (EE) 7: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x3eda7) [0x7f3bb1da2f97]
[195330.940] (EE) 8: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x1f7bf) [0x7f3bb1d6589f]
[195330.941] (EE) 9: /usr/lib64/xorg/modules/drivers/intel_drv.so (_init+0x1f9c2) [0x7f3bb1d66082]
[195330.941] (EE) 10: /usr/libexec/Xorg (?+0x1f9c2) [0x5411f2]
[195330.942] (EE) 11: /usr/libexec/Xorg (?+0x1f9c2) [0x4f5672]
[195330.942] (EE) 12: /usr/libexec/Xorg (?+0x1f9c2) [0x4f7222]
[195330.942] (EE) 13: /usr/libexec/Xorg (?+0x1f9c2) [0x4560a2]
[195330.942] (EE) 14: /usr/libexec/Xorg (?+0x1f9c2) [0x459f52]
[195330.943] (EE) 15: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f3bb711c580]
[195330.943] (EE) 16: /usr/libexec/Xorg (?+0xf0) [0x424db0]
[195330.944] (EE) 17: ? (?+0xf0) [0xf0]
[195330.944] (EE) 
[195330.944] (EE) Segmentation fault at address 0x0 
[195330.944] (EE)

Comment 2 Andreas M. Kirchwitz 2016-11-24 01:22:34 UTC
Have you tried disabling graphics acceleration? I've a similar problem with a new F25 Workstation installation, but with Nvidia graphics (nouveau driver). Disabling acceleration (nouveau.noaccel=1 kernel option or "NoAccel true" Xorg configuration option) makes the crashes go away.

Obviously, that's not a permanent solution (now graphics are so slow, the machine is hardly usable for anything), but it narrows down the problem. Had never any problems with F24.

Xorg crashes for me all the time (if acceleration is enabled). F25 is unusable right now except for text console.

Comment 3 Michal Špondr 2016-11-24 08:06:03 UTC
(In reply to Andreas M. Kirchwitz from comment #2)
> Have you tried disabling graphics acceleration? I've a similar problem with
> a new F25 Workstation installation, but with Nvidia graphics (nouveau
> driver). Disabling acceleration (nouveau.noaccel=1 kernel option or "NoAccel
> true" Xorg configuration option) makes the crashes go away.
> 
> Obviously, that's not a permanent solution (now graphics are so slow, the
> machine is hardly usable for anything), but it narrows down the problem. Had
> never any problems with F24.
> 
> Xorg crashes for me all the time (if acceleration is enabled). F25 is
> unusable right now except for text console.

Crashes are not so frequent in my case (3-4-times a day?), so I'd have to test it several days to see the difference. And it's not possible because I need this workstation for daily work.

Comment 4 Olivier Fourdan 2016-11-24 08:13:42 UTC
Could you install the debuginfo packages and/or tell the exact version you're using, otherwise it's impossible to make sense of the addresses in the backtraces.

Comment 5 Michal Špondr 2016-11-24 08:21:33 UTC
(In reply to Olivier Fourdan from comment #4)
> Could you install the debuginfo packages and/or tell the exact version
> you're using, otherwise it's impossible to make sense of the addresses in
> the backtraces.

I have these packages installed:
xorg-x11-drv-intel.x86_64                                              2.99.917-26.20160929.fc25                                     @@commandline 
xorg-x11-drv-intel-debuginfo.x86_64                                    2.99.917-16.20150729.fc23                                     @System       
xorg-x11-server-Xorg.x86_64                                           1.19.0-0.8.rc2.fc25                                             @@commandline
xorg-x11-server-debuginfo.x86_64                                           1.18.0-2.fc23                                                    @System

Don't ask me why there are "fc23" packages, I've just used standard upgrade via dnf from Fedora 23->24->25.
Core dump would be nice, but I haven't found out any.

Comment 6 Olivier Fourdan 2016-11-24 08:26:42 UTC
(In reply to Michal Špondr from comment #5)
> Don't ask me why there are "fc23" packages, I've just used standard upgrade
> via dnf from Fedora 23->24->25.

These are precisely the debuginfo packages. I would suggest to remove those debuginfo packages and reinstall the correct versions with debuginfo-install

> Core dump would be nice, but I haven't found out any.

The X server won't generate a corefile by default, but print a backtrace instead.

Comment 7 Michal Špondr 2016-11-24 08:33:07 UTC
(In reply to Olivier Fourdan from comment #6)
> (In reply to Michal Špondr from comment #5)
> > Don't ask me why there are "fc23" packages, I've just used standard upgrade
> > via dnf from Fedora 23->24->25.
> 
> These are precisely the debuginfo packages. I would suggest to remove those
> debuginfo packages and reinstall the correct versions with debuginfo-install
> 
> > Core dump would be nice, but I haven't found out any.
> 
> The X server won't generate a corefile by default, but print a backtrace
> instead.

OK, I am not familiar with this tool.
I've just perform:

debuginfo-install xorg-x11-server xorg-x11-drv-intel

and now I am waiting for the crash.

Comment 8 Michal Špondr 2016-12-06 10:15:31 UTC
I've found the gnome-abrt utility and get some log files, so here's the stack of Xorg SIGSEGV:

(gdb) bt
#0  sna_set_cursor_position (scrn=<optimized out>, x=2152, y=96) at sna_display.c:6163
#1  0x00000000004bbac2 in xf86MoveCursor ()
#2  0x0000000000585a33 in miPointerMoveNoEvent ()
#3  0x0000000000586834 in miPointerSetPosition ()
#4  0x000000000044d64e in positionSprite.part.7 ()
#5  0x000000000044de53 in fill_pointer_events ()
#6  0x000000000044f6df in GetPointerEvents ()
#7  0x000000000044fc90 in QueuePointerEvents ()
#8  0x00007f0793be3ed7 in EvdevProcessEvent () from /usr/lib64/xorg/modules/input/evdev_drv.so
#9  0x00007f0793be475d in EvdevReadInput () from /usr/lib64/xorg/modules/input/evdev_drv.so
#10 0x000000000059c69c in InputReady ()
#11 0x000000000059ed01 in ospoll_wait ()
#12 0x000000000059c4f6 in InputThreadDoWork ()
#13 0x00007f079ad8e6ca in start_thread (arg=0x7f07935ac700) at pthread_create.c:333
#14 0x00007f079aac8f6f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Comment 9 Michal Špondr 2016-12-06 10:19:00 UTC
Created attachment 1228379 [details]
Output of gnome-abrt of the crash

Comment 10 Michal Špondr 2016-12-06 11:14:55 UTC
Created attachment 1228414 [details]
Output of intel_reg_dumper

Output of intel_reg_dumper I did after X Server crash

Comment 11 Michal Špondr 2016-12-06 11:16:12 UTC
Created attachment 1228415 [details]
Output of intel_reg_snapshot

Output of intel_reg_snapshot I did few seconds after the X Server crash.

Comment 12 Michal Špondr 2017-01-26 07:58:22 UTC
My experience so far:
It crashed in Fluxbox and i3 quite often (several times a day). I had tried Gnome on Wayland and I've had no crash so far.

Comment 13 Olivier Fourdan 2017-01-26 08:09:47 UTC
(In reply to Michal Špondr from comment #8)
> (gdb) bt
> #0  sna_set_cursor_position (scrn=<optimized out>, x=2152, y=96) at
> sna_display.c:6163

Most likely a duplicate of bug 1384486

Comment 14 Michal Špondr 2017-01-26 08:16:49 UTC
(In reply to Olivier Fourdan from comment #13)
> (In reply to Michal Špondr from comment #8)
> > (gdb) bt
> > #0  sna_set_cursor_position (scrn=<optimized out>, x=2152, y=96) at
> > sna_display.c:6163
> 
> Most likely a duplicate of bug 1384486

True. I've read it and I also have rotated displays. I'll mark it as a duplicate then.

*** This bug has been marked as a duplicate of bug 1384486 ***


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