[lldb-dev] attach: operation not permitted
rnk at google.com
Sat Aug 16 16:15:18 PDT 2014
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:
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
On Sat, Aug 16, 2014 at 4:10 PM, Reid Kleckner <rnk at google.com> wrote:
> 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:
> On Sat, Aug 16, 2014 at 2:51 PM, Thiago Farina <tfarina at chromium.org>
>> I'm trying to attach to a process but haven't had success until now.
>> Tab 1:
>> $ out/Debug/chrome --no-sandbox --renderer-startup-dialog
>> [3590:3590:0816/003040:ERROR:child_process.cc(132)] Renderer (3590)
>> paused waiting for debugger to attach. Send SIGUSR1 to unpause.
>> Tab 2:
>> $ ls -l ~/llvm/build/bin/lldb
>> lrwxrwxrwx 1 tfarina tfarina 10 Aug 2 23:44
>> /home/tfarina/llvm/build/bin/lldb -> lldb-3.6.0
>> $ ~/llvm/build/bin/lldb --version
>> lldb version 3.6.0 (http://llvm.org/git/lldb.git revision
>> $ ~/llvm/build/bin/lldb
>> (lldb) attach -p 3590
>> error: attach failed: Operation not permitted
>> How can I fix this?
>> Thiago Farina
>> lldb-dev mailing list
>> lldb-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev