[Differential] [Request, 12 lines] D2003: Install a signal handler for SIGABRT and SIGSEGV for kwin_wayland
graesslin (Martin Gräßlin)
noreply at phabricator.kde.org
Sat Jun 25 12:51:38 UTC 2016
graesslin created this revision.
graesslin added reviewers: Plasma on Wayland, KWin, bshah.
Restricted Application added subscribers: kwin, plasma-devel.
Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY
kwin_wayland disables ptrace on itself. This has the side effect of
core dumps no longer be created - which we want as DrKonqi doesn't
work for kwin_wayland.
This change introduces a dedicated signal handler for abort and
segfault. The signal handler enables ptrace again, unsets itself as
signal handler and raises the signal again, so that the proper crash,
abort handling can be performed.
TEST PLAN
Added a crash, added an abort and verified that coredumpctl
shows the expected coredump.
REPOSITORY
rKWIN KWin
BRANCH
signal-handler-crash
REVISION DETAIL
https://phabricator.kde.org/D2003
AFFECTED FILES
main_wayland.cpp
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: graesslin, #plasma_on_wayland, #kwin, bshah
Cc: plasma-devel, kwin, hardening, jensreuterberg, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160625/f2c56ab6/attachment.html>
More information about the Plasma-devel
mailing list