Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 16:59:56 +0100
From:      Matthias Apitz <>
To:        Harald Schmalzbauer <>
Subject:   Re: getting program.core, where and how?
Message-ID:  <>
In-Reply-To: <>
References:  <>

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.



Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <> - w
Vote NO to EU The Lisbon Treaty:

Want to link to this message? Use this URL: <>