Re: ataching a process in eclipse

From: Michael Wood <esiotrot(at)gmail(dot)com>
To: Ravi Kiran <ravi(dot)kolanpaka(at)gmail(dot)com>
Cc: PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: ataching a process in eclipse
Date: 2014-12-28 18:04:48
Message-ID: CAP6d-HU6kQhq6HPBDS=h4hU15O_jzXKzEhto49QmwSYHBsOhBg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi

On 28 Dec 2014 12:40 PM, "Ravi Kiran" <ravi(dot)kolanpaka(at)gmail(dot)com> wrote:
>
> hi,
>
> I am working with postgresql 9.4.0 source using eclipse(indigo version)
in ubuntu 14.04. I am facing a problem of attaching a client process to
postgresql server.
>
> I am following the steps given in this link
https://wiki.postgresql.org/wiki/Working_with_Eclipse#Debugging_PostgreSQL_from_Eclipse
>
> In the debug configuration , I have given the following information in
the fields.
>
> C/C++ Application :- src/backend/postgres
> Project :- postgresql-9.4.0
>
> I have found out the process id of the client process using "select
pg_backend_pid()" and used it to attach the server.
>
> But I am getting the following error whenever I do this
>
> "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?

Try running this before attaching:

sudo sysctl -w kernel.yama.ptrace_scope=0

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Scott Robertson 2014-12-29 01:28:19 postgresql 9.4 is not for 32 bit Windows?
Previous Message Ravi Kiran 2014-12-28 10:38:45 ataching a process in eclipse