From owner-freebsd-questions@FreeBSD.ORG Wed Nov 18 15:59:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E06810656A4 for ; Wed, 18 Nov 2009 15:59:58 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 5C1D08FC0C for ; Wed, 18 Nov 2009 15:59:58 +0000 (UTC) Received: from current.Sisis.de (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id BA15918354E95; Wed, 18 Nov 2009 16:59:56 +0100 (CET) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id nAIFxu1Q005331; Wed, 18 Nov 2009 16:59:56 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Wed, 18 Nov 2009 16:59:56 +0100 From: Matthias Apitz To: Harald Schmalzbauer Message-ID: <20091118155956.GA5297@current.Sisis.de> References: <4B0413FA.8080506@omnilan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4B0413FA.8080506@omnilan.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: freebsd-questions@freebsd.org Subject: Re: getting program.core, where and how? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 15:59:58 -0000 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 - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu