Re: attaching a process in eclipse

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Ravi Kiran <ravi(dot)kolanpaka(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: attaching a process in eclipse
Date: 2014-12-28 10:56:04
Message-ID: 549FE1C4.60002@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2014-12-28 13:57:19 Re: [REVIEW] Re: Compression of full-page-writes
Previous Message Craig Ringer 2014-12-28 10:54:12 Re: attaching a process in eclipse