<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Better error messages when ptrace() fails on linux"
href="https://bugs.llvm.org/show_bug.cgi?id=39166">39166</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Better error messages when ptrace() fails on linux
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I was debugging a Linux lldb bug (on Linux).
I run linux in a VM using parallels, and for some reason lldb wasn't able to
attach to the inferior. The error message was:
"could not attach".
After a bit of scratching my head, I tried to run under gdb and I got the
following:
"Could not attach to process. If your kid matches the kid of the target
process, check the setting of /proc/sys/kerne/yama/ptrace_scope, or try again
as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf.
ptrace: operation not permitted"
Which is much more informative. We might consider emitting better diagnostics
in this case (and similar ones). This is also a good beginner bug for somebody
who wants to get their feet wet and learn lldb.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>