getting program.core, where and how?

Matthias Apitz guru at unixarea.de
Wed Nov 18 15:59:58 UTC 2009


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 at unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu


More information about the freebsd-questions mailing list