Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 09:52:25 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: getting program.core, where and how?
Message-ID:  <6201873e0911180752y1e21fbfcu5300cf77067d0ac5@mail.gmail.com>
In-Reply-To: <4B0413FA.8080506@omnilan.de>
References:  <4B0413FA.8080506@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 18, 2009 at 9:34 AM, Harald Schmalzbauer <
h.schmalzbauer@omnilan.de> wrote:

> Hello,
>
> I have a daemon (compiled with -g) which is dying frequently, but I can't
> get a core dump.
> The daemon drops privileges and runs as restricted user after startup.
> I gave the restricted user write permission to the directory where the
> binary lives, but that hasn't helped.
> The size should be really small, so I think ulimit is not the problem.
> How can I find out what the working directory of the binary is? I guess the
> problem is missing write permissions there.
>
> Thanks,
>
> -Harry
>
>
procstat -f <pid>


-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6201873e0911180752y1e21fbfcu5300cf77067d0ac5>