Date: Wed, 20 Jan 2010 15:24:51 -0600 From: "Doug Poland" <doug@polands.org> To: "Chuck Swiger" <cswiger@mac.com> Cc: questions Questions <questions@freebsd.org> Subject: Re: Trouble getting a core dump from clamd Message-ID: <4d9fc381279cee4bebd4b6c745150eef.squirrel@email.polands.org> In-Reply-To: <ED733F36-49ED-4FFA-B0D2-4BE90CDA9FE7@mac.com> References: <db60663b086aed5329984a666b8b7e08.squirrel@email.polands.org> <d36406631001190910g5c56b43en9ca9b87bf244a40d@mail.gmail.com> <a3de0a40551edaedbb49b1d5ac2366a2.squirrel@email.polands.org> <6C738BD4-71EE-4F34-8DB5-ABDB45A06C89@mac.com> <0cc4c74334a73d21b31ad06d41e3779a.squirrel@email.polands.org> <ED733F36-49ED-4FFA-B0D2-4BE90CDA9FE7@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdlib.h>
>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d9fc381279cee4bebd4b6c745150eef.squirrel>
