Matej Habrnal 933436
From 8b0a7a0c8dd7df477c3408298aa1f7126799da65 Mon Sep 17 00:00:00 2001
Matej Habrnal 933436
From: Matej Habrnal <mhabrnal@redhat.com>
Matej Habrnal 933436
Date: Tue, 17 May 2016 12:13:00 +0200
Matej Habrnal 933436
Subject: [PATCH] a-dump-journal-xorg: add '_COMM=gnome-shell' to journal
Matej Habrnal 933436
 filter
Matej Habrnal 933436
Matej Habrnal 933436
'/usr/bin/Xwayland' crashes from gnome-shell are logged to journal with
Matej Habrnal 933436
'_COMM=gnome-shell'.
Matej Habrnal 933436
Matej Habrnal 933436
In case ABRT cannot get executable from journal backtrace (path to binary file
Matej Habrnal 933436
containting substring "bin/X") the default one /usr/bin/X(org) is used instead.
Matej Habrnal 933436
It means if wayland crashes and /usr/bin/Xwayland is not mentioned in
Matej Habrnal 933436
backtrace, the executable is /usr/bin/X(org) even it is a wayland crash.
Matej Habrnal 933436
Matej Habrnal 933436
Tried to figure out how to find out if it is a wayland or xorg crash with
Matej Habrnal 933436
wayland guys on irc and they said there is no easy and reasonable way how to
Matej Habrnal 933436
achieve this.
Matej Habrnal 933436
Matej Habrnal 933436
Because the /usr/bin/Xwayland and the /usr/bin/Xorg executable are placed under
Matej Habrnal 933436
the same xorg-x11-server bugzilla component I decided no to change the default
Matej Habrnal 933436
executable. Also all wayland backtraces I've seen contained /usr/bin/Xwayland
Matej Habrnal 933436
executable so the right executable was used.
Matej Habrnal 933436
Matej Habrnal 933436
Related to: #1336618
Matej Habrnal 933436
Matej Habrnal 933436
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
Matej Habrnal 933436
---
Matej Habrnal 933436
 src/plugins/xorg-utils.c | 2 +-
Matej Habrnal 933436
 src/plugins/xorg.conf    | 2 +-
Matej Habrnal 933436
 2 files changed, 2 insertions(+), 2 deletions(-)
Matej Habrnal 933436
Matej Habrnal 933436
diff --git a/src/plugins/xorg-utils.c b/src/plugins/xorg-utils.c
Matej Habrnal 933436
index 8f121f8..6039acd 100644
Matej Habrnal 933436
--- a/src/plugins/xorg-utils.c
Matej Habrnal 933436
+++ b/src/plugins/xorg-utils.c
Matej Habrnal 933436
@@ -21,7 +21,7 @@
Matej Habrnal 933436
  */
Matej Habrnal 933436
 #define IGNORE_RESULT(func_call) do { if (func_call) /* nothing */; } while (0)
Matej Habrnal 933436
 
Matej Habrnal 933436
-#define DEFAULT_XORG_CRASH_REASON "Xorg server crashed"
Matej Habrnal 933436
+#define DEFAULT_XORG_CRASH_REASON "Display server crashed"
Matej Habrnal 933436
 
Matej Habrnal 933436
 int abrt_xorg_signaled_sleep(int seconds)
Matej Habrnal 933436
 {
Matej Habrnal 933436
diff --git a/src/plugins/xorg.conf b/src/plugins/xorg.conf
Matej Habrnal 933436
index 28f3ee1..8834e23 100644
Matej Habrnal 933436
--- a/src/plugins/xorg.conf
Matej Habrnal 933436
+++ b/src/plugins/xorg.conf
Matej Habrnal 933436
@@ -4,4 +4,4 @@
Matej Habrnal 933436
 BlacklistedXorgModules = nvidia, fglrx, vboxvideo
Matej Habrnal 933436
 
Matej Habrnal 933436
 # List of filters which is used for searching Xorg crashes in jounral
Matej Habrnal 933436
-JournalFilters = _COMM=gdm-x-session
Matej Habrnal 933436
+JournalFilters = _COMM=gdm-x-session, _COMM=gnome-shell
Matej Habrnal 933436
-- 
Matej Habrnal 933436
2.7.4
Matej Habrnal 933436