From owner-freebsd-questions@FreeBSD.ORG Wed Jan 20 21:24:54 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 359CE1065698 for ; Wed, 20 Jan 2010 21:24:54 +0000 (UTC) (envelope-from doug@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.123]) by mx1.freebsd.org (Postfix) with ESMTP id C7B4C8FC1B for ; Wed, 20 Jan 2010 21:24:53 +0000 (UTC) X-Authority-Analysis: v=1.0 c=1 a=5-nTKeNrujAA:10 a=5oGaD+IacabtnYYqBVNCkQ==:17 a=eAAL1In8AAAA:8 a=35mfRM1VAkpEMBkUZX0A:9 a=8XlxPU3wZ9grGJKitPAA:7 a=nf_XOMXTH6_SB0g491AUWp40vq0A:4 X-Cloudmark-Score: 0 X-Originating-IP: 75.87.219.217 Received: from [75.87.219.217] ([75.87.219.217:65224] helo=haran.polands.org) by hrndva-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id BF/47-11553-4A4775B4; Wed, 20 Jan 2010 21:24:52 +0000 Received: from email.polands.org (ammon.polands.org [172.16.1.7]) by haran.polands.org (8.14.3/8.14.3) with ESMTP id o0KLOpCg023313; Wed, 20 Jan 2010 15:24:51 -0600 (CST) (envelope-from doug@polands.org) Received: from 209.103.214.34 (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Wed, 20 Jan 2010 15:24:51 -0600 Message-ID: <4d9fc381279cee4bebd4b6c745150eef.squirrel@email.polands.org> In-Reply-To: References: <6C738BD4-71EE-4F34-8DB5-ABDB45A06C89@mac.com> <0cc4c74334a73d21b31ad06d41e3779a.squirrel@email.polands.org> Date: Wed, 20 Jan 2010 15:24:51 -0600 From: "Doug Poland" To: "Chuck Swiger" User-Agent: SquirrelMail/1.4.20-RC2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: questions Questions Subject: Re: Trouble getting a core dump from clamd 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, 20 Jan 2010 21:24:54 -0000 On Wed, January 20, 2010 15:05, Chuck Swiger wrote: > Hi-- > > On Jan 20, 2010, at 12:46 PM, Doug Poland wrote: >> Thanks for the suggestion and the pointer to man 5 core. I >> implemented your suggestions but still get no core dump. Very >> strange... > > Check your default resource limits (shell startup files & > /etc/login.conf) and see whether coredumpsize is set to 0, maybe? > Nope, nothin' % set | grep core | egrep -v grep % env | grep core | egrep -v grep % grep core /etc/login.c* | egrep -v # /etc/login.conf: :coredumpsize=unlimited:\ > If you build and run: > > % cat crash.c > #include > > main() > { > char *bad = NULL; > bad[0] = '1'; > } > % cc -o crash crash.c > % ./crash > [1] 16550 segmentation fault (core dumped) ./crash > % ls /cores > crash.16550.core > > ...do you get this trivial program to dump core? > No, not on the system in question. Just tried it on a plain-vanilla 8.0-RELEASE box I just built and I do get the the core dump there. % echo $SHELL /bin/tcsh % uname -a FreeBSD hostname.domain.com 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Sat Sep 12 11:15:05 CDT 2009 root@hostname.domain.com:/usr/obj/usr/src/sys/GENERIC-SERVER i386 % cat /sys/i386/conf/GENERIC-SERVER ident GENERIC-SERVER include GENERIC options INCLUDE_CONFIG_FILE # Include this file in kernel options QUOTA % sysctl -a | grep core kern.corefile: /var/coredumps/%U/%N.core kern.nodump_coredump: 0 kern.coredump: 1 kern.sugid_coredump: 1 debug.elf32_legacy_coredump: 1 % touch /var/coredumps/file % ll !$ ll /var/coredumps/file -rw-r--r-- 1 doug wheel 0 Jan 20 15:13 /var/coredumps/file -- Regards, Doug