<div dir="ltr">Nevermind, /home probably means you're on Linux. I think Ubuntu has a similar restriction against ptracing non-child processes. You have to do silly stuff like:<div>echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope</div>
<div><br><div><a href="http://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process">http://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process</a><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Aug 16, 2014 at 4:10 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I've never built lldb on Mac myself, but I think you have to sign the binary, which only works in the XCode build system:<div><a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/docs/code-signing.txt?view=markup" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/docs/code-signing.txt?view=markup</a><br>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sat, Aug 16, 2014 at 2:51 PM, Thiago Farina <span dir="ltr"><<a href="mailto:tfarina@chromium.org" target="_blank">tfarina@chromium.org</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I'm trying to attach to a process but haven't had success until now.</div>

<div><div><br></div><div>Tab 1:</div><div>$ out/Debug/chrome --no-sandbox --renderer-startup-dialog</div>
<div>....</div><div>[3590:3590:0816/003040:ERROR:child_process.cc(132)] Renderer (3590) paused waiting for debugger to attach. Send SIGUSR1 to unpause.</div></div><div><br></div><div><br></div><div>Tab 2:</div><div><div>

$ ls -l ~/llvm/build/bin/lldb</div>
<div>lrwxrwxrwx 1 tfarina tfarina 10 Aug  2 23:44 /home/tfarina/llvm/build/bin/lldb -> lldb-3.6.0</div><div><br></div><div><div>$ ~/llvm/build/bin/lldb --version</div><div>lldb version 3.6.0 (<a href="http://llvm.org/git/lldb.git" target="_blank">http://llvm.org/git/lldb.git</a> revision 3c9eeefb4022614373ca99f4e95cd869e6b965e4)</div>


</div><div><br></div><div><div>$ ~/llvm/build/bin/lldb</div><div>(lldb) attach -p 3590</div><div>error: attach failed: Operation not permitted</div></div><div><br></div><div>How can I fix this?<br></div><div><br></div><div>


Regards,</div><span><font color="#888888"><div><br></div>-- <br><div dir="ltr">Thiago Farina</div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>