Re: attaching a process in eclipse - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: attaching a process in eclipse
Date
Msg-id 549FE1C4.60002@2ndquadrant.com
Whole thread Raw
In response to attaching a process in eclipse  (Ravi Kiran <ravi.kolanpaka@gmail.com>)
List pgsql-hackers
On 12/28/2014 06:37 PM, Ravi Kiran wrote:
> 
> "Could not attach to process.  If your uid matches the uid of the target
> process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
> again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf"
> 
> how do we rectify this error?

Oh, and if you *are* debugging a PostgreSQL process under the same uid
as your own, adjust the ptrace_scope i the yama security module. Like
the error message above tells you to.

Details here:
http://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process
which I found by *searching for the error message text*.

BTW, in general I recommend that when you're modifying and debugging
PostgreSQL you run it under your normal user account using 'postgres' or
'pg_ctl', rather than messing with an operating system installation.
It's much easier.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: attaching a process in eclipse
Next
From: Michael Paquier
Date:
Subject: Re: [REVIEW] Re: Compression of full-page-writes