Version: SVN (using Devel) OS: Linux Startgin with Ubuntu 10.10, PTRACE is limited to only direct descendants. Exceptions can be declared on a process-by-process basis using prctl. The attached patch makes sure that drkonqi can still process KDE application crashes. Reproducible: Always Steps to Reproduce: $ kate & ... $ kill -SEGV $(pidof kate) Actual Results: Drkonqi will not show backtraces, and will report gdb errors on stderr. Expected Results: Drkonqi will report backtrace normally. Adding prctl(PR_SET_PTRACER, pid, 0, 0, 0) will fix this in the seg handler.
Created attachment 49426 [details] fix to declare PTRACE relationship Patch attached to fix this. (Note that this is harmless for systems that do not use PTRACE restrictions.)
SVN commit 1206730 by jriddell: Description: declare the process that will be debugging the crashed KDE app. Author: Kees Cook <kees@ubuntu.com> Bug-Ubuntu: https://launchpad.net/bugs/589841 BUG:245529 M +5 -0 kcrash.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1206730
SVN commit 1206732 by jriddell: backport 1206730 Description: declare the process that will be debugging the crashed KDE app. Author: Kees Cook <kees@ubuntu.com> Bug-Ubuntu: https://launchpad.net/bugs/589841 BUG: 245529 M +5 -0 kcrash.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1206732
SVN commit 1206787 by dfaure: Fix compilation on everything else than linux. Instead of a cmake check, we can just say "if linux" for the linux-specific call, this is simpler. CCMAIL: jr@jriddell.org CCBUG: 245529 M +5 -0 kcrash.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1206787