https://bugzilla.redhat.com/show_bug.cgi?id=1246467
Bug ID: 1246467
Summary: cdtdebug: in F22, YAMA disallows ptrace, gdb attach
fails and the CDT UI does not report that to user
Product: Fedora
Version: 22
Component: eclipse-cdt
Assignee: jjohnstn(a)redhat.com
Reporter: mstahl(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: akurtako(a)redhat.com,
eclipse-sig(a)lists.fedoraproject.org,
jjohnstn(a)redhat.com, krzysztof.daniel(a)gmail.com,
rgrunber(a)redhat.com
Description of problem:
in Fedora 22, YAMA disallows ptrace, gdb attach fails and the CDT UI does not
report that to user.
Version-Release number of selected component (if applicable):
gdb-7.9.1-17.fc22.x86_64
eclipse-platform-4.4.2-6.fc22.x86_64
eclipse-cdt-parsers-8.6.0-2.fc22.x86_64
eclipse-valgrind-3.2.0-1.fc22.noarch
eclipse-jdt-4.4.2-6.fc22.x86_64
eclipse-cdt-8.6.0-2.fc22.x86_64
eclipse-linuxtools-3.2.0-1.fc22.noarch
How reproducible:
by default in Fedora 22, YAMA disallows ptrace:
cat /proc/sys/kernel/yama/ptrace_scope
1
Steps to Reproduce:
1. run "cdtdebug"
2. hit F11 to debug
3. select some process running under your UID to attach
Actual results:
attaching to process silently fails.
only if you switch to the "GDB traces" console you can see this:
384,219 18-target-attach --thread-group i1 6638
384,220 18^error,msg="ptrace: Operation not permitted."
Expected results:
Qt Creator handles this failure better, it pops up a dialog that says:
ptrace: Operation not permitted.
Could not attach to the process. Make sure no other debugger traces this
process.
If your uid matches the uid
of the target process, check the settings of
/proc/sys/kernel/yama/ptrace_scope
For more details, see /etc/sysctl.d/10-ptrace.conf
Additional info:
there is a bug about the YAMA default setting:
https://bugzilla.redhat.com/show_bug.cgi?id=1209492
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=QDrQ4MorRY&a=cc_unsubscribe