Re: debugger question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: debugger question
Date
Msg-id 27731.1271142541@sss.pgh.pa.us
Whole thread Raw
In response to debugger question  ("Murali M. Krishna" <murali1729@yahoo.com>)
List pgsql-hackers
"Murali M. Krishna" <murali1729@yahoo.com> writes:
> I would like to start using gdb.
> ...
> , but this is what I get.

> gdb) attach 1731
> Attaching to program: /usr/local/pgsql/bin/postgres, process 1731
> ptrace: Operation not permitted.

Try running gdb as the postgres user, ie, su to postgres first.
If that doesn't work, see if it works after disabling selinux
(and if so, file a bug, because selinux shouldn't prevent it).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Naming of new EXCLUDE constraints
Next
From: Koichi Suzuki
Date:
Subject: How to generate specific WAL records?