From owner-freebsd-questions@FreeBSD.ORG Wed Nov 18 15:52:26 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 291FA1065672 for ; Wed, 18 Nov 2009 15:52:26 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id F27798FC15 for ; Wed, 18 Nov 2009 15:52:25 +0000 (UTC) Received: by pxi12 with SMTP id 12so852714pxi.3 for ; Wed, 18 Nov 2009 07:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=d6eWqqvNZnVhLohyr4JWeL5iCDHkJviR4cYqco514MA=; b=uILtxrxwE5BHAGnR2gJNCx86SAciWhtmw1rxc5SNMh58jDS5JPylQcl/Q/eIz/slhG fq495hbBH3DDyQQ96JvRGRCTdaSybeQuZNgHyMEdQpisMqo6fe4TMGZsu1RQNp3AYbLs 4F49+U5klP4m62LM43Qf996iiicmBu524lDAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=K8H8ujJNaPlqmCXugCzxuHUPfepga/tYb+S5phlYPO1YLs9MJvuDvQGf5hq+oh5ep+ uDxobnmA5mfj2SHDPoxjaSl50oBkMWRWbFwanxYU7+CReuuThByzGM3ZpnhWoTFYWFOS EBkCBD1Gnl00BIClqm1CGNk/CXXPn0+nnUthg= MIME-Version: 1.0 Received: by 10.142.67.14 with SMTP id p14mr1342320wfa.135.1258559545290; Wed, 18 Nov 2009 07:52:25 -0800 (PST) In-Reply-To: <4B0413FA.8080506@omnilan.de> References: <4B0413FA.8080506@omnilan.de> Date: Wed, 18 Nov 2009 09:52:25 -0600 Message-ID: <6201873e0911180752y1e21fbfcu5300cf77067d0ac5@mail.gmail.com> From: Adam Vande More To: Harald Schmalzbauer Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 15:52:26 -0000 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 -- Adam Vande More