From owner-freebsd-questions@FreeBSD.ORG Mon Jul 18 07:16:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 277CC16A41C for ; Mon, 18 Jul 2005 07:16:21 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD6C543D48 for ; Mon, 18 Jul 2005 07:16:20 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 75BC6893D5; Mon, 18 Jul 2005 09:16:19 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18389-05; Mon, 18 Jul 2005 09:16:14 +0200 (CEST) Received: from firewall.demig (p50838A9E.dip0.t-ipconnect.de [80.131.138.158]) by server.absolute-media.de (Postfix) with ESMTP id 9FDCA86209; Mon, 18 Jul 2005 09:16:14 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j6I7CQAJ019648; Mon, 18 Jul 2005 09:12:26 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "RJ45" , Date: Mon, 18 Jul 2005 10:12:17 +0200 Message-ID: <000301c58b70$69d211e0$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 In-Reply-To: Importance: Normal X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: Subject: RE: daemon program. 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: Mon, 18 Jul 2005 07:16:21 -0000 > Hello, > I did a daemon program which uses sendmail milter. > I would like the program to make a core file when it crashes. > from time to time the daemon dies and I Am not able to find out why. > If I had a core file I could use the debugger. > Is there any way to tell hte program to die with a core dump in FreeBSD ? Why don't you let your program start and then attach gdb to it. Or just make periodic core dumps using gcore(1) to be able to inspect your program's current state. Norbert