From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 6 19:43:31 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 207EF16A500 for ; Wed, 6 Dec 2006 19:43:31 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C79943D9F for ; Wed, 6 Dec 2006 19:33:13 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB6JXZNi004580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Dec 2006 11:33:35 -0800 X-Auth-Received: from [128.208.1.158] (sfrench.cs.washington.edu [128.208.1.158]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB6JXYd5018783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 6 Dec 2006 11:33:35 -0800 Message-ID: <45771B0E.7090907@u.washington.edu> Date: Wed, 06 Dec 2006 11:33:34 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061108) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <457713C8.6020204@u.washington.edu> In-Reply-To: <457713C8.6020204@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.6.111932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Forcing C program to core dump X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2006 19:43:31 -0000 Garrett Cooper wrote: > Hello, > This may be obvious to some, but after some Googling (apparently > with the wrong search terms, perhaps) and reading the gcc/gdb > manpages, I can't seem to find out how to get a program to produce > core dumps. > So I was wondering, is there some simple means to produce core > dumps or a set of conditions that I need to adhere to in order to get > the OS to core dump the progrdam??? > Thanks, > -Garrett > Did a bit more poking around and determined how to do it. It wasn't core dumping because I didn't set the maximum limit for the coredump size to unlimited ("ulimit -c unlimited"). Good page about this topic: . -Garrett