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    
r...@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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to