I have created
Section "ServerFlags" Option "NoTrapSignals" "true" EndSection
It successfully affects my GNOME session if I start a GNOME session which uses X and not Wayland. I have checked this by killing the X server with SIGABRT, and verifying that it does not try to print it's own backtrace by catching the signal.
However the config file doesn't have the effect I really wanted, which is to achieve the same behaviour for the Xwayland instance, which GNOME starts when I start a normal GNOME session with Wayland.
I can't even find the log messages from Xwayland, to see if it mentions anything about where it reads configuration from!
Xorg has a
man page, but
Xwayland does not. None of the options
Xwayland is running with (
-rootless -terminate -core -listen 4 -listen 5 -displayfd 6) are documented in
man Xorg, though to be fair GNOME also passes
Xorg when running a native X session.
Does anyone know how to do this?
- Fedora 27
I have an annoying XWayland crash. I'm having difficulty understanding it from the core dump my system saves. I desperately want to disable the built-in X backtrace generator. It's just getting in the way, the backtrace generator itself is vulnerable to crashes, and most importantly by catching the error signal, I believe it stops Linux from logging the exact cause of the SIGBUS error in the kernel log.
I say this is the correct value for
NoTrapSignals, because it's an inherently fragile feature, and AFAICT it's pointless in an unprivileged Xwayland server. It's not like the bad old days of user mode setting, where the kernel couldn't reset the display to text mode, so you desperately hoped the X server would still be able to do so if it crashed.