croick created this revision. croick added reviewers: Plasma: Workspaces, Frameworks. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. croick requested review of this revision.
REVISION SUMMARY - In Linux recent kernels only allow attaching of processes to a debugger, if - the right to attach to processes is enabled system-wide - the debugger is a child process of the debuggee - or the debuggee grants access by a call to prctl(PR_SET_PTRACER, debugger_pid, 0, 0, 0); - DrKonqi cannot do this directly, so it will ask the debuggee to do so by a socket connection. - When the debugger has finished, the access is requested back to DrKonqi to allow internal backtraces again. TEST PLAN - try to attach the debugged process to gdb or KDevelop by using the debug button: operation will not be permitted - apply corresponding patches to KCrash and DrKonqi - the process can now be debugged - after detaching the process again, a backtrace can be created using the DrKonqi dialog as usual REPOSITORY R871 DrKonqi BRANCH ptracer REVISION DETAIL https://phabricator.kde.org/D11235 AFFECTED FILES src/CMakeLists.txt src/debuggerlaunchers.cpp src/debuggerlaunchers.h src/queryptrace.cpp src/queryptrace.h src/tests/crashtest/crashtest.cpp To: croick, #plasma_workspaces, #frameworks Cc: plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart