https://bugzilla.redhat.com/show_bug.cgi?id=1245759
Bug ID: 1245759
Summary: Attach-process does not work. "ptrace: Operation not
permitted"
Product: Fedora
Version: 22
Component: eclipse-cdt
Assignee: jjohnstn(a)redhat.com
Reporter: lufimtse(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:
As of F22, in Eclipse-CDT, you can't debug via "attach to process".
When you try, nothing happens.
When trying the same thing with GDB, you get an error:
"ptrace: Operation not permitted."
After some troubleshooting, one workaround is:
sudo chmod +s /usr/bin/gdb
The root cause of the issue has been narrowed down to a security hardening in:
https://bugzilla.redhat.com/show_bug.cgi?id=1209492
I tested one potential patch and it fixed the issue.
But at present there is a debate about security in the bug above (50
comments..).
- The Security-hardening argument is that ptrace has the ability to look into
the memory of any process, thus being a security threat.
- The usability argument is that the change is security theater. It only
breaks a lot of applications and doesn't really add much security since there
are other easier ways to do the same (e.g core dumping another application and
reading the dump). As such it's fixing something that isn't broken but causes
breakage in many other apps.
This bug is a tracker bug. It is intended to raise attention that the
security-hardening change (in bug 1209492) breaks Eclipse-cdt's
attach-to-process functionality and imho should be reversed. To me it seems
that this is an unnecessary a big wall that can be easily walked around anyway.
Version-Release number of selected component (if applicable):
F22. Eclipse independent.
How reproducible:
Always
Steps to Reproduce:
- Start a C application. (e.g a JVM).
- From Eclipse, attempt to attach to the process.
Actual results:
- Nothing happens
Expected results:
- Debug session should have started.
Additional info:
--
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=S1A6UfYuFR&a=cc_unsubscribe