Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 16:59:56 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: getting program.core, where and how?
Message-ID:  <20091118155956.GA5297@current.Sisis.de>
In-Reply-To: <4B0413FA.8080506@omnilan.de>
References:  <4B0413FA.8080506@omnilan.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
El día Wednesday, November 18, 2009 a las 04:34:18PM +0100, Harald Schmalzbauer escribió:

> 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.

Core will be written to the working directory and not to the directory
where the binary comes from. With ulimit(1) you can set the core file
size, even to zero, and you can ask for the actual value.

HIH

	matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20091118155956.GA5297>