Bug 104322 - [skl] X session crashes when doing certain operations in LibreOffice Writer
Summary: [skl] X session crashes when doing certain operations in LibreOffice Writer
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-18 14:38 UTC by Alexandr
Modified: 2019-09-25 19:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Crash file from /sys/class/drm/card0/error (50.64 KB, text/plain)
2017-12-18 14:38 UTC, Alexandr
Details
Updated GPU crash file (43.46 KB, text/plain)
2017-12-19 18:55 UTC, Alexandr
Details

Description Alexandr 2017-12-18 14:38:11 UTC
Created attachment 136249 [details]
Crash file from /sys/class/drm/card0/error

When doing certain work (text highlight) in LibreOffice writer the following situation consistently happens: the system freezes except for the mouse for several seconds and then the user session unexpectedly terminates (showing SDDM logon screen). The XOrg logs indicate a problem in the in the Intel drm/i915 drivers. Please find attached the Xorg logs, Xorg version and crash file.

$ less less /var/log/Xorg.0.log

[ 1964.877703] [drm] GPU HANG: ecode 4:0:0x54f4e8fb, in Xorg [874], reason: Hang on rcs0, action: reset
[ 1964.877707] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[ 1964.877708] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[ 1964.877709] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[ 1964.877710] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[ 1964.877711] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[ 1964.919361] drm/i915: Resetting chip after gpu hang
[ 1972.939781] drm/i915: Resetting chip after gpu hang
[ 2004.879875] drm/i915: Resetting chip after gpu hang
[ 2258.924142] drm/i915: Resetting chip after gpu hang

$ sudo Xorg -version

X.Org X Server 1.19.5
Release Date: 2017-10-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu
Current Operating System: Linux garaga-Latitude-E7470 4.13.0-19-generic #22-Ubuntu SMP Mon Dec 4 11:58:07 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.13.0-19-generic.efi.signed root=/dev/mapper/kubuntu--vg-root ro quiet splash vt.handoff=7
Build Date: 15 October 2017  05:51:19PM
xorg-server 2:1.19.5-0ubuntu2 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Comment 1 Alexandr 2017-12-18 14:41:56 UTC
Updated XOrg logs:

30845.588702] [drm] GPU HANG: ecode 9:0:0x85dffffb, in Xorg [1842], reason: Hang on rcs0, action: reset
[30845.588704] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[30845.588704] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[30845.588704] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[30845.588705] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[30845.588705] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[30845.588743] drm/i915: Resetting chip after gpu hang
[30845.589261] [drm] RC6 on
[30846.729973] asynchronous wait on fence i915:kwin_x11[5601]/1:3a3c4 timed out
[30853.578536] drm/i915: Resetting chip after gpu hang
[30853.578703] [drm] RC6 on
[30861.578411] drm/i915: Resetting chip after gpu hang
[30861.578564] [drm] RC6 on
[30869.578277] drm/i915: Resetting chip after gpu hang
[30869.578420] [drm] RC6 on
[30877.578156] drm/i915: Resetting chip after gpu hang
[30877.578308] [drm] RC6 on
Comment 2 Alexandr 2017-12-18 14:47:53 UTC
$ uname -a
Linux comp #22-Ubuntu SMP Mon Dec 4 11:58:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Comment 3 Mark Janes 2017-12-18 21:21:42 UTC

*** This bug has been marked as a duplicate of bug 103934 ***
Comment 4 Alexandr 2017-12-19 18:55:07 UTC
Created attachment 136293 [details]
Updated GPU crash file
Comment 5 Alexandr 2017-12-19 18:55:37 UTC
I have updated Mesa to 17.3.0 but the problem is still there. So I guess the problem was not in Mesa.

$ dmesg | less
[24190.002375] [drm] GPU HANG: ecode 9:0:0x85dffffb, in Xorg [1863], reason: Hang on rcs0, action: reset
[24190.002404] drm/i915: Resetting chip after gpu hang
[24190.002582] [drm] RC6 on
[24197.992676] drm/i915: Resetting chip after gpu hang
[24197.992826] [drm] RC6 on
[24205.992640] drm/i915: Resetting chip after gpu hang
[24205.992782] [drm] RC6 on
[24213.992604] drm/i915: Resetting chip after gpu hang
[24213.992916] [drm] RC6 on
[24227.048563] drm/i915: Resetting chip after gpu hang
[24227.048727] [drm] RC6 on

$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 17.3.0 - padoka PPA

$ sudo Xorg -version             

X.Org X Server 1.19.5
Release Date: 2017-10-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu
Current Operating System: Linux garaga-Latitude-E7470 4.13.0-19-generic #22-Ubuntu SMP Mon Dec 4 11:58:07 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.13.0-19-generic.efi.signed root=/dev/mapper/kubuntu--vg-root ro quiet splash vt.handoff=7
Build Date: 15 October 2017  05:51:19PM


I am attaching the new GPU crash file as well.
Comment 6 Elizabeth 2017-12-27 18:14:43 UTC
Is it possible that you get an apitrace for this issue?
http://apitrace.github.io
Comment 7 Andriy Khulap 2018-01-23 09:57:11 UTC
I can't reproduce exact the same issue, but very similar:

Text highlighting in LibreOffice writer with "Use OpenGL for all rendering" checked (Tools->Options->View) causes Libre office to hang (with unchecked I have no issues):
- No inputs are working except mouse move.
- X continues to operate, messenger and status bar notifications are shown.
- After killing LibreOffice process, system continues to operate normally.

Xorg -version

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu

LibreOffice
Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial2

Ubuntu 16.04 LTS (4.4.0-109-generic)
Intel(R) HD Graphics 530 (Skylake GT2)  (0x191b)
Latest Mesa grom git master (4584c4ef049a)

LibreOffice gdb backtrace:

(gdb) attach 985
Attaching to process 985
[New LWP 987]
[New LWP 989]
[New LWP 990]
[New LWP 991]
[New LWP 992]
[New LWP 993]
[New LWP 997]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fe413c7874d in poll () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) continue 
Continuing.
[New Thread 0x7fe3e89d1700 (LWP 1071)]
[Thread 0x7fe3e89d1700 (LWP 1071) exited]
[New Thread 0x7fe3e89d1700 (LWP 1072)]

Thread 8 "SelectionManage" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fe3df3d9700 (LWP 997)]
0x00007fe4166672b0 in OpenGLProgram::Reuse() () from /usr/lib/libreoffice/program/libmergedlo.so
(gdb) bt
#0  0x00007fe4166672b0 in OpenGLProgram::Reuse() () from /usr/lib/libreoffice/program/libmergedlo.so
#1  0x00007fe4166784f0 in OpenGLContext::UseProgram(rtl::OUString const&, rtl::OUString const&, rtl::OString const&) () from /usr/lib/libreoffice/program/libmergedlo.so
#2  0x00007fe416654176 in OpenGLSalGraphicsImpl::UseProgram(rtl::OUString const&, rtl::OUString const&, rtl::OString const&) () from /usr/lib/libreoffice/program/libmergedlo.so
#3  0x00007fe41665456d in OpenGLSalGraphicsImpl::UseInvert50() () from /usr/lib/libreoffice/program/libmergedlo.so
#4  0x00007fe41665460f in OpenGLSalGraphicsImpl::UseInvert(unsigned short) () from /usr/lib/libreoffice/program/libmergedlo.so
#5  0x00007fe41665fd53 in OpenGLSalGraphicsImpl::invert(long, long, long, long, unsigned short) () from /usr/lib/libreoffice/program/libmergedlo.so
#6  0x00007fe4168f293a in SalGraphics::Invert(long, long, long, long, unsigned short, OutputDevice const*) () from /usr/lib/libreoffice/program/libmergedlo.so
#7  0x00007fe4167ee67b in OutputDevice::Invert(Rectangle const&, InvertFlags) () from /usr/lib/libreoffice/program/libmergedlo.so
#8  0x00007fe4166a9fe3 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#9  0x00007fe4166aa3e2 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#10 0x00007fe4166aa560 in vcl::Cursor::ImplDoShow(bool, bool) () from /usr/lib/libreoffice/program/libmergedlo.so
#11 0x00007fe3dde6b76a in ?? () from /usr/lib/libreoffice/program/../program/libswlo.so
#12 0x00007fe3dde3631a in SwCursorShell::SetVisibleCursor(Point const&) () from /usr/lib/libreoffice/program/../program/libswlo.so
#13 0x00007fe3de54d6de in ?? () from /usr/lib/libreoffice/program/../program/libswlo.so
#14 0x00007fe415c85b6d in DropTargetHelper::DropTargetListener::dragOver(com::sun::star::datatransfer::dnd::DropTargetDragEvent const&) () from /usr/lib/libreoffice/program/libmergedlo.so
#15 0x00007fe4166b6338 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#16 0x00007fe4166b4286 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#17 0x00007fe4166b44f5 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#18 0x00007fe3ff12cefd in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#19 0x00007fe3ff131bf5 in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#20 0x00007fe3ff133f8d in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#21 0x00007fe3ff139713 in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#22 0x00007fe3ff13c59d in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#23 0x00007fe3ff13c8dd in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#24 0x00007fe413f83627 in ?? () from /usr/lib/libreoffice/program/libuno_sal.so.3
#25 0x00007fe4130616ba in start_thread (arg=0x7fe3df3d9700) at pthread_create.c:333
#26 0x00007fe413c8441d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) q

No error in /sys/class/drm/card0/error
Comment 8 Andriy Khulap 2018-01-23 10:44:06 UTC
Upgraded to LibreOffice
Version: 5.4.4.2
Build ID: 2524958677847fb3bb44820e40380acbe820f960

and I can't reproduce my issue any more. Looks like LibreOffice bug in my case.
Comment 9 Elizabeth 2018-01-23 23:17:38 UTC
Thanks for the update Andriy, seems that your issue wasn't the same, but just in case, Alexandr could you try to update libreoffice to the latest version available also? Thank you.
Comment 10 GitLab Migration User 2019-09-25 19:06:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1666.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.