Subject: Re: Problem with gcore and permissions
To: None <tls@rek.tjls.com>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-kern
Date: 01/11/2005 13:22:31
On Tue, 11 Jan 2005 13:06:05 -0500
Thor Lancelot Simon <tls@rek.tjls.com> wrote:
> On Tue, Jan 11, 2005 at 12:35:08PM -0500, D'Arcy J.M. Cain wrote:
> > > gcore: ptrace(PT_DUMPCORE) failed: Permission denied

> Is the process you're trying to core-dump setuid?

Nope:
-rwxr-xr-x  1 root  wheel  2344105 Jan  8 21:50 /usr/pkg/bin/postgres
lrwxr-xr-x  1 root  wheel        8 Jan  8 21:50 /usr/pkg/bin/postmaster
-> postgres

> Is the core size limit, perhaps, set to 0?

Not according to sysctl:
proc.curproc.rlimit.coredumpsize.soft = unlimited
proc.curproc.rlimit.coredumpsize.hard = unlimited

-- 
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/